-
Notifications
You must be signed in to change notification settings - Fork 0
/
admin.php
398 lines (379 loc) · 12.3 KB
/
admin.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
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
<!DOCTYPE html>
<?php
session_start();
?>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<title>Page Admin | E-Shopper</title>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/font-awesome.min.css" rel="stylesheet">
<link href="css/prettyPhoto.css" rel="stylesheet">
<link href="css/price-range.css" rel="stylesheet">
<link href="css/animate.css" rel="stylesheet">
<link href="css/main.css" rel="stylesheet">
<link href="css/responsive.css" rel="stylesheet">
<!--[if lt IE 9]>
<script src="js/html5shiv.js"></script>
<script src="js/respond.min.js"></script>
<![endif]-->
<link rel="shortcut icon" href="images/ico/favicon.ico">
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="images/ico/apple-touch-icon-144-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="images/ico/apple-touch-icon-114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="images/ico/apple-touch-icon-72-precomposed.png">
<link rel="apple-touch-icon-precomposed" href="images/ico/apple-touch-icon-57-precomposed.png">
</head><!--/head-->
<body>
<header id="header"><!--header-->
<div class="header_top"><!--header_top-->
<div class="container">
<div class="row">
<div class="col-sm-6">
<div class="contactinfo">
<ul class="nav nav-pills">
<li><a href="#"><i class="fa fa-phone"></i> 0984 12 34 56</a></li>
<li><a href="#"><i class="fa fa-envelope"></i> [email protected]</a></li>
</ul>
</div>
</div>
</div>
</div>
</div><!--/header_top-->
<div class="header-middle"><!--header-middle-->
<div class="container">
<div class="row">
<div class="col-sm-4">
<div class="logo pull-left">
<a href="index.php"><img src="images/home/logo.png" alt="" /></a>
</div>
<div class="btn-group pull-right">
</div>
</div>
<div class="col-sm-8">
<div class="shop-menu pull-right">
<ul class="nav navbar-nav">
<li><a href="#"><i class="fa fa-user"></i> Admin</a></li>
<li><a href="#" onclick="logOut()"><i class="fa fa-lock"></i> Log out</a></li>
</ul>
</div>
</div>
</div>
</div>
</div><!--/header-middle-->
</header><!--/header-->
<section>
<div class="container">
<div class="row">
<ul class="nav nav-pills">
<li class="active"><a data-toggle="pill" href="#update">Cập nhật thông tin sản phẩm</a></li>
<li><a data-toggle="pill" href="#billInfo">Cập nhật thông tin các đơn hàng</a></li>
</ul>
<div class="tab-content">
<div id="update" class="tab-pane fade in active">
<br>
<br>
<div class="col-sm-8">
<h3> Danh sách Các Sản Phẩm của E-Shop </h3>
</div>
<div class="col-sm-4">
<button type="button" class="btn btn-success" data-toggle="modal" data-target="#addProduct">Thêm Sản Phẩm Mới</button>
</div>
<br> <br> <br> <br> <br> <br>
<table class="table table-hover" >
<thead>
<tr>
<th width="15%">Mã Sản Phẩm</th>
<th width="20%">Tên Sản Phẩm</th>
<th width="20%">Mô tả</th>
<th width="20%">Giá Bán (VNĐ)</th>
<th width="25%" class="center"> Thao tác</th>
</tr>
</thead>
<tbody>
<tr>
<td>SS01</td>
<td>SamSung Note 7</td>
<td>Cấu hình....bla bla</td>
<td>13000000</td>
<td >
<div class="col-sm-1" ></div>
<div class="col-sm-3">
<button type="button" class="btn btn-danger">Xóa</button>
</div
<div class="col-sm-3">
<button type="button" class="btn btn-success" >Chỉnh Sửa</button>
</div>
</td>
</tr>
<tr>
<td>IP01</td>
<td>Iphone 7 Plus</td>
<td>Cấu hình ...bla</td>
<td>19000000</td>
<td >
<div class="col-sm-1" ></div>
<div class="col-sm-3">
<button type="button" class="btn btn-danger">Xóa</button>
</div
<div class="col-sm-3">
<button type="button" class="btn btn-success" >Chỉnh Sửa</button>
</div>
</td>
</tr>
<tr>
<td>IP02</td>
<td>Iphone 6 Plus</td>
<td>Cấu hình ...bla</td>
<td>16000000</td>
<td >
<div class="col-sm-1" ></div>
<div class="col-sm-3">
<button type="button" class="btn btn-danger">Xóa</button>
</div
<div class="col-sm-3">
<button type="button" class="btn btn-success" >Chỉnh Sửa</button>
</div>
</td>
</tr>
<tr>
<td>IP03</td>
<td>Iphone 5s</td>
<td>Cấu hình ...bla</td>
<td>10000000</td>
<td >
<div class="col-sm-1" ></div>
<div class="col-sm-3">
<button type="button" class="btn btn-danger">Xóa</button>
</div
<div class="col-sm-3">
<button type="button" class="btn btn-success" >Chỉnh Sửa</button>
</div>
</td>
</tr>
</tbody>
</table>
<ul class="pagination pagination " style="padding-top:100px ; padding-left:400px">
<li><a href="#"><</a></li>
<li><a href="#">1</a></li>
<li><a href="#">2</a></li>
<li><a href="#">3</a></li>
<li><a href="#">4</a></li>
<li><a href="#">5</a></li>
<li><a href="#">></a></li>
</ul>
</div>
<div id="billInfo" class="tab-pane fade">
<br>
<br>
<div class="col-sm-8">
<h3> Danh sách Các Đơn Hàng Chưa Duyệt </h3>
</div>
<br> <br> <br> <br> <br> <br>
<table class="table table-hover" >
<thead>
<tr>
<th width="15%">Mã Đơn Hàng</th>
<th width="20%">Tên Sản Phẩm</th>
<th width="20%">Ngày Đặt Hàng </th>
<th width="30%">Thông tin</th>
<th width="15%" class="center"> Thao tác</th>
</tr>
</thead>
<tbody>
<tr>
<td>SS01</td>
<td>SamSung Note 7</td>
<td>4/12/2016</td>
<td>bla bla</td>
<td >
<div class="col-sm-1" ></div>
<div class="col-sm-3">
<button type="button" class="btn btn-success">Duyệt</button>
</div
</td>
</tr>
<tr>
<td>SS01</td>
<td>SamSung Note 7</td>
<td>4/12/2016</td>
<td>bla bla</td>
<td >
<div class="col-sm-1" ></div>
<div class="col-sm-3">
<button type="button" class="btn btn-success">Duyệt</button>
</div
</td>
</tr>
<tr>
<td>SS01</td>
<td>SamSung Note 7</td>
<td>4/12/2016</td>
<td>bla bla</td>
<td >
<div class="col-sm-1" ></div>
<div class="col-sm-3">
<button type="button" class="btn btn-success">Duyệt</button>
</div
</td>
</tr>
</tbody>
</table>
<ul class="pagination pagination " style="padding-top:100px ; padding-left:400px">
<li><a href="#"><</a></li>
<li><a href="#">1</a></li>
<li><a href="#">2</a></li>
<li><a href="#">3</a></li>
<li><a href="#">4</a></li>
<li><a href="#">5</a></li>
<li><a href="#">></a></li>
</ul>
</div>
</div>
</div>
<!-- Modal -->
<div class="modal fade" id="addProduct" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h3 class="modal-title text-center">Cập nhật sản phẩm mới</h3>
</div>
<div class="modal-body">
<label for="nameProduct">Tên Sản Phẩm</label>
<input type="text" class="form-control" id="nameProduct">
<br>
<label for="trade">Thương Hiệu:</label>
<select class="form-control" id="trade">
<option>None</option>
<option>Iphone</option>
<option>SamSung</option>
<option>HTC</option>
<option>Nokia</option>
</select>
<br>
<label for="sale">Giá Bán</label>
<input type="text" class="form-control" id="sale">
<br>
<label for="info">Mô tả</label>
<textarea class="form-control" rows="5" id="info"></textarea>
<br>
<label for="input-image">Upload hình</label>
<input id="input-image" name="input-image" type="file" class="file-loading" accept="image/*">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-success" >Thêm</button>
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancel</button>
</div>
</div>
</div>
</div>
</div>
</section
<footer id="footer"><!--Footer-->
<div class="footer-top">
<div class="container">
<div class="row">
<div class="col-sm-2">
<div class="companyinfo">
<h2><span>e</span>-shopper</h2>
<p>This is a web that only sells phone</p>
</div>
</div>
<div class="col-sm-7">
<div class="col-sm-3">
<div class="video-gallery text-center">
<a href="#">
<div class="iframe-img">
<img src="images/home/iframe1.png" alt="" />
</div>
<div class="overlay-icon">
<i class="fa fa-play-circle-o"></i>
</div>
</a>
<p>Circle of Hands</p>
<h2>24 DEC 2014</h2>
</div>
</div>
<div class="col-sm-3">
<div class="video-gallery text-center">
<a href="#">
<div class="iframe-img">
<img src="images/home/iframe2.png" alt="" />
</div>
<div class="overlay-icon">
<i class="fa fa-play-circle-o"></i>
</div>
</a>
<p>Circle of Hands</p>
<h2>24 DEC 2014</h2>
</div>
</div>
<div class="col-sm-3">
<div class="video-gallery text-center">
<a href="#">
<div class="iframe-img">
<img src="images/home/iframe3.png" alt="" />
</div>
<div class="overlay-icon">
<i class="fa fa-play-circle-o"></i>
</div>
</a>
<p>Circle of Hands</p>
<h2>24 DEC 2014</h2>
</div>
</div>
<div class="col-sm-3">
<div class="video-gallery text-center">
<a href="#">
<div class="iframe-img">
<img src="images/home/iframe4.png" alt="" />
</div>
<div class="overlay-icon">
<i class="fa fa-play-circle-o"></i>
</div>
</a>
<p>Circle of Hands</p>
<h2>24 DEC 2014</h2>
</div>
</div>
</div>
<div class="col-sm-3">
<div class="address">
<img src="images/home/map.png" alt="" />
<p>297, Ly Thuong Kiet, Ward 7, District 10</p>
</div>
</div>
</div>
</div>
</div>
<div class="footer-bottom">
<div class="container">
<div class="row">
<p class="pull-left">Copyright © 2016 E-SHOPPER Inc. All rights reserved.</p>
<p class="pull-right">Designed by <span><a target="_blank" href="http://www.themeum.com">Team 6</a></span></p>
</div>
</div>
</div>
</footer><!--/Footer-->
<script type="text/javascript">
function logOut() {
$.ajax({
url: 'action/logout.php',
type: 'get'
}).done(function() {
window.location.href = 'index.php';
});
}
</script>
<script src="js/jquery.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.scrollUp.min.js"></script>
<script src="js/price-range.js"></script>
<script src="js/jquery.prettyPhoto.js"></script>
<script src="js/main.js"></script>
</body>
</html>