-
Notifications
You must be signed in to change notification settings - Fork 0
/
bayiler-duzenle.php
101 lines (92 loc) · 3.03 KB
/
bayiler-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
<?php
session_start();
if((!isset($_SESSION["login"]))||($_SESSION["yetki"]=="0")){
?>
<meta http-equiv="refresh" content="0;URL=giris.php">
<?php
} else
{
?>
<!-- Giriş KONTROL -->
<?php include("header.php") ?>
<?php include("kontrol/veritabani.php") ?>
<!-- PAGE CONTENT -->
<?php $personelid=$_GET["id"];?>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
Ayarlar
</h1>
<ol class="breadcrumb">
<li class="active"><a href="#"><i class="fa fa-dashboard"></i> Anasayfa</a></li>
<li><a href="#">Bayiler</a></li>
<li>Düzenle</li>
</ol>
</section>
<!-- Main content -->
<section class="content">
<div class="row">
<div class="col-xs-12">
<div class="box">
<div class="box-header">
<h3 class="box-title">Bayi Düzenleme Ekranı</h3>
</div>
<!-- /.box-header -->
<div class="box-body">
<?php
$vericek=$connection->query("select * from bayiler where id='$personelid'")->fetchAll(PDO::FETCH_ASSOC);
foreach ($vericek as $vcek)
{
?>
<form role="form" method="post" enctype="multipart/form-data" action="bayiler-guncelle.php">
<div class="box-body">
<div class="form-group">
<div class="col-md-2">
<input name="adsoyad" type="text" id="adsoyad" class="form-control" placeholder="Ad Soyad Girin" value="<?=$vcek['adsoyad'];?>">
<input name="id" type="text" id="id" hidden="hidden" value="<?=$vcek['id'];?>">
</div>
<div class="col-md-2">
<input name="telefon" type="text" id="telefon" class="form-control" placeholder="Telefon Girin" value="<?=$vcek['telefon'];?>">
</div>
<div class="col-md-2">
<input name="eposta" type="text" id="eposta" class="form-control" placeholder="E-posta Girin" value="<?=$vcek['eposta'];?>">
</div>
<div class="col-md-1">
<input name="kadi" type="text" id="kadi" class="form-control" placeholder="Kullanıcı Adı Girin" value="<?=$vcek['kadi'];?>">
</div>
<div class="col-md-2">
<input name="sifre" type="password" id="sifre" class="form-control" minlenght="4" placeholder="Şifre girmezseniz, şifreniz değişmez.">
</div>
<div class="col-md-1">
<div class="checkbox">
<label>
<input id="yetki" name="yetki" type="checkbox" <?php if($vcek['yetki']=='1'){echo 'checked="checked"';}?>>
Admin?
</label>
</div>
</div>
<div class="col-md-1">
<button type="submit" class="btn btn-primary">Kaydet</button>
</div>
</div>
</div>
</form>
<?php } ?>
</div>
<!-- /.box-body -->
</div>
<!-- /.box -->
</div>
<!-- /.col -->
</div>
<!-- /.row -->
</section>
<!-- /.content -->
</div>
<!-- /.content-wrapper -->
<!-- PAGE CONTENT END -->
<?php include("footer.php") ?>
<!-- Giriş KONTROL -->
<?php } ?>