-
Notifications
You must be signed in to change notification settings - Fork 0
/
urun-duzenle.php
188 lines (119 loc) · 7.18 KB
/
urun-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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
<?php
require_once 'header.php';
islemkontrol();
$urunsor = $db->prepare("SELECT * FROM urun where kullanici_id=:kullanici_id and urun_id=:urun_id order by urun_zaman DESC");
$urunsor->execute(array(
'kullanici_id' => $_SESSION['userkullanici_id'],
'urun_id' => $_GET['urun_id']
));
$uruncek = $urunsor->fetch(PDO::FETCH_ASSOC);
?>
<div class="pagination-area bg-secondary">
<div class="container">
<div class="pagination-wrapper">
</div>
</div>
</div>
<div class="settings-page-area bg-secondary section-space-bottom">
<div class="container">
<div class="row settings-wrapper">
<?php require_once 'hesap-sidebar.php' ?>
<div class="col-lg-9 col-md-9 col-sm-8 col-xs-12">
<?php
if (isset($_GET['durum']) and ($_GET['durum'] == "hata")) { ?>
<div class="alert alert-danger">
<strong>Hata!</strong> İşlem Başarısız
</div>
<?php } elseif (isset($_GET['durum']) and ($_GET['durum'] == "ok")) { ?>
<div class="alert alert-success">
<strong>Bilgi!</strong> Kayıt Başarılı
</div>
<?php } ?>
<form action="nedmin/netting/adminislem.php" method="POST" enctype="multipart/form-data"
class="form-horizontal" id="personal-info-form">
<div class="settings-details tab-content">
<div class="tab-pane fade active in" id="Personal">
<h2 class="title-section">Ürün Düzenle</h2>
<div class="personal-info inner-page-padding">
<div class="form-group">
<label class="col-sm-3 control-label">Mevcut Fotoğraf</label>
<div class="col-sm-9">
<img width="200" src="<?php echo $uruncek['urunfoto_resimyol']; ?>">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">Fotoğraf</label>
<div class="col-sm-9">
<input class="form-control" name="urunfoto_resimyol" id="first-name"
type="file">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">Kategori</label>
<div class="col-sm-9">
<div class="custom-select">
<select name="kategori_id" class='select2'>
<?php
$kategorisor = $db->prepare("SELECT * FROM kategori order by kategori_sira ASC");
$kategorisor->execute();
while ($kategoricek = $kategorisor->fetch(PDO::FETCH_ASSOC)) {
?>
<option value="<?php echo $kategoricek['kategori_id'] ?>"><?php echo $kategoricek['kategori_ad'] ?></option>
<?php } ?>
</select>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">Adı</label>
<div class="col-sm-9">
<input class="form-control" required="" name="urun_ad" id="first-name"
value=" <?php echo $uruncek['urun_ad'] ?> " type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">Açıklama</label>
<div class="col-sm-9">
<textarea class="ckeditor" id="editor1"
name="urun_detay"><?php echo $uruncek['urun_detay'] ?></textarea>
</div>
</div>
<script type="text/javascript">
CKEDITOR.replace('editor1',
{
filebrowserBrowseUrl: 'ckfinder/ckfinder.html',
filebrowserImageBrowseUrl: 'ckfinder/ckfinder.html?type=Images',
filebrowserFlashBrowseUrl: 'ckfinder/ckfinder.html?type=Flash',
filebrowserUploadUrl: 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files',
filebrowserImageUploadUrl: 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images',
filebrowserFlashUploadUrl: 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash',
forcePasteAsPlainText: true
}
);
</script>
<div class="form-group">
<label class="col-sm-3 control-label">Fiyat</label>
<div class="col-sm-9">
<input class="form-control" required="" name="urun_fiyat" id="first-name"
value="<?php echo $uruncek['urun_fiyat'] ?>" type="text">
</div>
</div>
<input type="hidden" value="<?php echo $uruncek['urun_id'] ?>" name="urun_id">
<input type="hidden" value="<?php echo $uruncek['urunfoto_resimyol'] ?>"
name="eski_yol">
<div class="form-group">
<div align="right" class="col-sm-12">
<button class="update-btn" name="magazaurunduzenle" id="login-update">Ürün
Düzenle
</button>
</div>
</div>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
<?php require_once 'footer.php'; ?>