-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpersonel-duzenle.php
122 lines (89 loc) · 2.54 KB
/
personel-duzenle.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<?php
session_start();
if(!isset($_SESSION["login"])){
?>
<meta http-equiv="refresh" content="0;URL=giris.php">
<?php
} else
{
?>
<!-- GİRİŞ KONTROL -->
<?php include("kafa.php") ?>
<?php include("menu.php") ?>
<?php include("kontrol/veritabani.php") ?>
<nav id="secondary">
<ul>
<li class="current"><a href="personel.php">Personel</a></li>
<li ><a href="personel-ekle.php">Personel Ekle</a></li>
</ul>
</nav>
<?php
$id=$_GET['id'];
$vericek=$connection->query("select * from personel where id='$id'")->fetchAll(PDO::FETCH_ASSOC);
foreach ($vericek as $vcek)
{
?>
<section id="content">
<h2><?=$vcek['ad'];?> <?=$vcek['soyad'];?> adlı personel düzenleniyor.</h2>
<form class="wymupdate" action="personel-duzenle-kontrol.php" enctype="multipart/form-data" method="post" >
<div class="column left">
<section>
<label for="label">
Adı
</label>
<div>
<input id="ad" minlength="1" name="ad" value="<?=$vcek['ad'];?>" type="text" />
<input type="hidden" name="id" value="<?=$vcek['id'];?>" />
</div>
</section>
<section>
<label for="label">
Soyadı
</label>
<div>
<input id="soyad" name="soyad" value="<?=$vcek['soyad'];?>" type="text" class="required" minlength="1" />
</div>
</section>
<section>
<label for="username">
TC Numarası
</label>
<div>
<input type="text" id="tcno" name="tcno" value="<?=$vcek['tcno'];?>" class="required" minlength="11" />
</div>
</section>
</div>
<div class="column right">
<section>
<label for="username">
Maaşı
</label>
<div>
<input type="text" id="maas" name="maas" value="<?=$vcek['maas'];?>" class="required" />
</div>
</section>
<section>
<label for="username">
Başlama Tarihi
</label>
<div>
<input type="text" id="baslamatarihi" name="baslamatarihi" value="<?=$vcek['baslamatarihi'];?>" class="required" />
</div>
</section>
<section>
<label for="not">Adres</label>
<div>
<textarea style="resize: none;" class="required" id="adres" name="adres"><?=$vcek['adres'];?></textarea></div>
</section>
</div>
<div class="clear">
</div>
<h2> </h2>
<br />
<p><input type="submit" class="button primary submit" value="Güncelle" /></p>
</form>
<?php } ?>
</section>
<!-- GİRİŞ KONTROL -->
<?php include("ayak.php"); ?>
<?php } ?>