-
Notifications
You must be signed in to change notification settings - Fork 0
/
urun-ekle.php
166 lines (104 loc) · 6.18 KB
/
urun-ekle.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
<?php
require_once 'header.php';
islemkontrol();
?>
<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 Ekleme</h2>
<div class="personal-info inner-page-padding">
<div class="form-group">
<label class="col-sm-3 control-label">Fotoğraf</label>
<div class="col-sm-9">
<input class="form-control" required="" 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"
placeholder="Ürün 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"
placeholder="Ürün Açıklaması..."></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"
placeholder="Ürün Fiyat..." type="text">
</div>
</div>
<div class="form-group">
<div align="right" class="col-sm-12">
<button class="update-btn" name="magazaurunekle" id="login-update">Ürün Ekle
</button>
</div>
</div>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
<?php require_once 'footer.php'; ?>