-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAll Admin.html
More file actions
639 lines (552 loc) · 40.8 KB
/
All Admin.html
File metadata and controls
639 lines (552 loc) · 40.8 KB
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
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="assets/icons8-microsoft-admin-30.png" type="image/x-icon">
<title>Admin Section</title>
<link rel="stylesheet" href="style.css">
<script src="https://cdn.tailwindcss.com"></script>
<link href='https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css' rel='stylesheet'>
<link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
</head>
<body>
<div class="top-container">
<div class="nav buttom-line">
<div class="logo">
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAACXBIWXMAAAsTAAALEwEAmpwYAAABUklEQVR4nO2VzyuEQRzGh2zrIrk68BdwdCJJSi0X5U9wc7O1bvLjTlL+BXLl5qbk5OTox4GslfaIiI8mj9r0tr7v7Ggu+9RcZp7v85n37TszzrWVWsAgUAIqwC5wBFwAN0AdeNOoa86vHcpbUe1AHuAscE88+aySBXyXI7QA9OnvDGvTi8AWcAzU5Lu1gM0yZHVbvS4yuJgKXEgF7koF7kwF7sgDfv2Hrn62gGsRwf2yVi3g04jgSVlPLOAdmdcNXqu2LeAZmS8jgqedsSEeVTAaAex7pvgnWIFrKjrzR6JF8IoJqsDehu5eaAFcBXrMYIXOqfgFGAkEz+eCZnT4AzCUsd5Mmy5UfN+1Bwp6AsaM4D1fGwxueFN/4O/Asn91tJalfXMXGy/7DeBT4efA1C/gB7Da7BQEC5gArjO+8goYD082SBdMWTA/lvycpbYtl0JfmNEFAAxYCEgAAAAASUVORK5CYII=" alt="microsoft-admin--v1">
<!-- <i class=''></i> --> <!--use svg if you want it set up-->
<a href="index.html"><span>ABC</span>Cinema</a>
</div>
<div class="nav-links">
<a href="index.html">Dashboard</a>
<a href="Movies.html">Movies</a>
<a href="Resevation.html">Resevetion</a>
<!-- <a href="#">Accounts</a> -->
<a href="Setting.html">Settings</a>
</div>
<div class="right-section">
<i class='bx bx-bell'></i> <!--TODO: Send The Notifiction For Every CURD Operation And Save it TO the data Base-->
<i class='bx bx-search'></i> <!--TODO: Click the Serch and show the serch Bar, Get the Input From Search Bar and Send it to the data base and get the Output -->
<div class="profile">
<div class="info">
<img src="assets/profile.png">
<div>
<a href="#">Admin</a>
<p>Full Name</p>
</div><!--TODO: Admin & Name Base on the Registation Get the Input From Data Base-->
</div>
<i class='bx bx-chevron-down' id="AdminSection"></i> <!--TODO: Admin Drop down menu and link it to the relevent page-->
<div class="dropdown-menu" id="dropdown-menu2">
<ul>
<li>
<a href="#" style="display: inline-flex ;">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" style="fill: rgba(255, 255, 255, 1);">
<path d="M21 2H6a2 2 0 0 0-2 2v3H2v2h2v2H2v2h2v2H2v2h2v3a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1zm-8 2.999c1.648 0 3 1.351 3 3A3.012 3.012 0 0 1 13 11c-1.647 0-3-1.353-3-3.001 0-1.649 1.353-3 3-3zM19 18H7v-.75c0-2.219 2.705-4.5 6-4.5s6 2.281 6 4.5V18z"></path>
</svg>My Profile
</a>
</li>
<li>
<a href="#" style="display: inline-flex ;">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" style="fill: rgba(255, 255, 255, 1);">\
<path d="M12 2a5 5 0 1 0 5 5 5 5 0 0 0-5-5zm0 8a3 3 0 1 1 3-3 3 3 0 0 1-3 3zm9 11v-1a7 7 0 0 0-7-7h-4a7 7 0 0 0-7 7v1h2v-1a5 5 0 0 1 5-5h4a5 5 0 0 1 5 5v1z"></path>
</svg>My Contacts
</a>
</li>
<li>
<a href="#" style="display: inline-flex ;">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" style="fill: rgba(255, 255, 255, 1);">
<path d="m2.344 15.271 2 3.46a1 1 0 0 0 1.366.365l1.396-.806c.58.457 1.221.832 1.895 1.112V21a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1v-1.598a8.094 8.094 0 0 0 1.895-1.112l1.396.806c.477.275 1.091.11 1.366-.365l2-3.46a1.004 1.004 0 0 0-.365-1.366l-1.372-.793a7.683 7.683 0 0 0-.002-2.224l1.372-.793c.476-.275.641-.89.365-1.366l-2-3.46a1 1 0 0 0-1.366-.365l-1.396.806A8.034 8.034 0 0 0 15 4.598V3a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v1.598A8.094 8.094 0 0 0 7.105 5.71L5.71 4.904a.999.999 0 0 0-1.366.365l-2 3.46a1.004 1.004 0 0 0 .365 1.366l1.372.793a7.683 7.683 0 0 0 0 2.224l-1.372.793c-.476.275-.641.89-.365 1.366zM12 8c2.206 0 4 1.794 4 4s-1.794 4-4 4-4-1.794-4-4 1.794-4 4-4z"></path>
</svg>Account Settings
</a>
</li>
<li>
<a href="#" style="display: inline-flex ;">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" style="fill: rgba(255, 255, 255, 1);">
<path d="M16 13v-2H7V8l-5 4 5 4v-3z"></path><path d="M20 3h-9c-1.103 0-2 .897-2 2v4h2V5h9v14h-9v-4H9v4c0 1.103.897 2 2 2h9c1.103 0 2-.897 2-2V5c0-1.103-.897-2-2-2z"></path>
</svg>Log Out
</a>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="bottom-container">
<div class="prog-status Prog-Movie-list">
<div class="header">
<h4>Admin </h4>
<div class="tabs">
<button class="active" id="AddMovie">Add Admin <i class='bx bx-plus-circle'></i> </button>
</div>
</div> <!--TODO: When the user click the "Add Movies" The Input form will come form popup and get the all details and send to the data base , also get the data form the data base and update the tabel -->
<div class="details">
<div class="item">
<h2>Admin Section</h2>
<p>All Admin and The Their Privilage</p>
</div>
</div>
<div class="overflow-x-auto bg-white shadow-md rounded-lg">
<table class="min-w-full divide-y divide-gray-200">
<thead class="bg-gray-50">
<tr>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Name</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Email</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Possition</th>
<th class="px-6 py-3"></th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<!-- Row 1 -->
<tr>
<td class="px-6 py-4 flex items-center space-x-4">
<img src="assets/profile.png" alt="" class="w-10 h-10 rounded-full">
<div>
<div class="text-sm font-medium text-gray-900">Full Name</div>
<div class="text-sm text-gray-500">Username</div>
</div>
</td>
<td class="px-6 py-4">
<span class="inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-green-100 text-green-800">
Active
</span>
</td>
<td class="px-6 py-4">
<div class="text-sm text-gray-900">examplemail@gmail.com</div>
</td>
<td class="px-6 py-4 text-sm text-gray-500">Admin</td>
<td class="px-6 py-4 text-right text-sm font-medium">
<button href="#" class="text-red-600 hover:text-red-600 hover:underline ">Delete <i class='bx bx-trash'></i> </button>
</td>
</tr>
<!-- Row 2 -->
<tr>
<td class="px-6 py-4 flex items-center space-x-4">
<img src="assets/profile.png" alt="" class="w-10 h-10 rounded-full">
<div>
<div class="text-sm font-medium text-gray-900">Full Name</div>
<div class="text-sm text-gray-500">Username</div>
</div>
</td>
<td class="px-6 py-4">
<span class="inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-green-100 text-green-800">
Active
</span>
</td>
<td class="px-6 py-4">
<div class="text-sm text-gray-900">examplemail@gmail.com</div>
</td>
<td class="px-6 py-4 text-sm text-gray-500">Admin</td>
<td class="px-6 py-4 text-right text-sm font-medium">
<button href="#" class="text-red-600 hover:text-red-600 hover:underline ">Delete <i class='bx bx-trash'></i> </button>
</td>
</tr>
<!-- Row 3 -->
<tr>
<td class="px-6 py-4 flex items-center space-x-4">
<img src="assets/profile.png" alt="" class="w-10 h-10 rounded-full">
<div>
<div class="text-sm font-medium text-gray-900">Full Name</div>
<div class="text-sm text-gray-500">Username</div>
</div>
</td>
<td class="px-6 py-4">
<span class="inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-green-100 text-green-800">
Active
</span>
</td>
<td class="px-6 py-4">
<div class="text-sm text-gray-900">examplemail@gmail.com</div>
</td>
<td class="px-6 py-4 text-sm text-gray-500">Admin</td>
<td class="px-6 py-4 text-right text-sm font-medium">
<button href="#" class="text-red-600 hover:text-red-600 hover:underline ">Delete <i class='bx bx-trash'></i> </button>
</td>
</tr>
<!-- Row 4 -->
<tr>
<td class="px-6 py-4 flex items-center space-x-4">
<img src="assets/profile.png" alt="" class="w-10 h-10 rounded-full">
<div>
<div class="text-sm font-medium text-gray-900">Full Name</div>
<div class="text-sm text-gray-500">Username</div>
</div>
</td>
<td class="px-6 py-4">
<span class="inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-green-100 text-green-800">
Active
</span>
</td>
<td class="px-6 py-4">
<div class="text-sm text-gray-900">examplemail@gmail.com</div>
</td>
<td class="px-6 py-4 text-sm text-gray-500">Admin</td>
<td class="px-6 py-4 text-right text-sm font-medium">
<button href="#" class="text-red-600 hover:text-red-600 hover:underline ">Delete <i class='bx bx-trash'></i> </button>
</td>
</tr>
</tbody> <!--TODO: Funtion Edit Buttone with popup form , Get the Input From Data Base and Fill The Output-->
</table>
</div>
</div>
</div>
<!--
<div class="flex h-screen bg-gray-100">
<div class="m-auto">
<div>
<button type="button" class="relative w-full flex justify-center items-center px-5 py-2.5 font-medium tracking-wide text-white capitalize bg-black rounded-md hover:bg-gray-900 focus:outline-none transition duration-300 transform active:scale-95 ease-in-out">
<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="24px" viewBox="0 0 24 24" width="24px" fill="#FFFFFF">
<g>
<rect fill="none" height="24" width="24"></rect>
</g>
<g>
<g>
<path d="M19,13h-6v6h-2v-6H5v-2h6V5h2v6h6V13z"></path>
</g>
</g>
</svg>
<span class="pl-2 mx-1">Create new shipping label</span>
</button>
<div class="mt-5 bg-white rounded-lg shadow">
<div class="flex">
<div class="flex-1 py-5 pl-5 overflow-hidden">
<svg class="inline align-text-top" height="24px" viewBox="0 0 24 24" width="24px" xmlns="http://www.w3.org/2000/svg" fill="#000000">
<g>
<path d="m4.88889,2.07407l14.22222,0l0,20l-14.22222,0l0,-20z" fill="none" id="svg_1" stroke="null"></path>
<path d="m7.07935,0.05664c-3.87,0 -7,3.13 -7,7c0,5.25 7,13 7,13s7,-7.75 7,-13c0,-3.87 -3.13,-7 -7,-7zm-5,7c0,-2.76 2.24,-5 5,-5s5,2.24 5,5c0,2.88 -2.88,7.19 -5,9.88c-2.08,-2.67 -5,-7.03 -5,-9.88z" id="svg_2"></path>
<circle cx="7.04807" cy="6.97256" r="2.5" id="svg_3"></circle>
</g>
</svg>
<h1 class="inline text-2xl font-semibold leading-none">Sender</h1>
</div>
</div>
<div class="px-5 pb-5">
<input placeholder="Name" class=" text-black placeholder-gray-600 w-full px-4 py-2.5 mt-2 text-base transition duration-500 ease-in-out transform border-transparent rounded-lg bg-gray-200 focus:border-blueGray-500 focus:bg-white dark:focus:bg-gray-800 focus:outline-none focus:shadow-outline focus:ring-2 ring-offset-current ring-offset-2 ring-gray-400"><input placeholder="Address" class=" text-black placeholder-gray-600 w-full px-4 py-2.5 mt-2 text-base transition duration-500 ease-in-out transform border-transparent rounded-lg bg-gray-200 focus:border-blueGray-500 focus:bg-white dark:focus:bg-gray-800 focus:outline-none focus:shadow-outline focus:ring-2 ring-offset-current ring-offset-2 ring-gray-400">
<div class="flex">
<div class="flex-grow w-1/4 pr-2"><input placeholder="PLZ" class=" text-black placeholder-gray-600 w-full px-4 py-2.5 mt-2 text-base transition duration-500 ease-in-out transform border-transparent rounded-lg bg-gray-200 focus:border-blueGray-500 focus:bg-white dark:focus:bg-gray-800 focus:outline-none focus:shadow-outline focus:ring-2 ring-offset-current ring-offset-2 ring-gray-400"></div>
<div class="flex-grow"><input placeholder="City" class=" text-black placeholder-gray-600 w-full px-4 py-2.5 mt-2 text-base transition duration-500 ease-in-out transform border-transparent rounded-lg bg-gray-200 focus:border-blueGray-500 focus:bg-white dark:focus:bg-gray-800 focus:outline-none focus:shadow-outline focus:ring-2 ring-offset-current ring-offset-2 ring-gray-400"></div>
</div>
<div class="flex items-center pt-3"><input type="checkbox" class="w-4 h-4 text-black bg-gray-300 border-none rounded-md focus:ring-transparent"><label for="safeAdress" class="block ml-2 text-sm text-gray-900">Save as default address</label></div>
</div>
<div class="flex">
<div class="flex-1 py-5 pl-5 overflow-hidden">
<svg class="inline align-text-top" width="21" height="20.5" xmlns="http://www.w3.org/2000/svg" fill="#000000">
<g>
<path d="m4.88889,2.07407l14.22222,0l0,20l-14.22222,0l0,-20z" fill="none" id="svg_1" stroke="null"></path>
<path d="m7.07935,0.05664c-3.87,0 -7,3.13 -7,7c0,5.25 7,13 7,13s7,-7.75 7,-13c0,-3.87 -3.13,-7 -7,-7zm-5,7c0,-2.76 2.24,-5 5,-5s5,2.24 5,5c0,2.88 -2.88,7.19 -5,9.88c-2.08,-2.67 -5,-7.03 -5,-9.88z" id="svg_2"></path>
<circle cx="7.04807" cy="6.97256" r="2.5" id="svg_3"></circle>
</g>
</svg>
<h1 class="inline text-2xl font-semibold leading-none">Receiver</h1>
</div>
<div class="flex-none pt-2.5 pr-2.5 pl-1"></div>
</div>
<div class="px-5 pb-5">
<input placeholder="Name" class=" text-black placeholder-gray-600 w-full px-4 py-2.5 mt-2 text-base transition duration-500 ease-in-out transform border-transparent rounded-lg bg-gray-200 focus:border-blueGray-500 focus:bg-white dark:focus:bg-gray-800 focus:outline-none focus:shadow-outline focus:ring-2 ring-offset-current ring-offset-2 ring-gray-400"><input placeholder="Address" class=" text-black placeholder-gray-600 w-full px-4 py-2.5 mt-2 text-base transition duration-500 ease-in-out transform border-transparent rounded-lg bg-gray-200 focus:border-blueGray-500 focus:bg-white dark:focus:bg-gray-800 focus:outline-none focus:shadow-outline focus:ring-2 ring-offset-current ring-offset-2 ring-gray-400">
<div class="flex">
<div class="flex-grow w-1/4 pr-2"><input placeholder="PLZ" class=" text-black placeholder-gray-600 w-full px-4 py-2.5 mt-2 text-base transition duration-500 ease-in-out transform border-transparent rounded-lg bg-gray-200 focus:border-blueGray-500 focus:bg-white dark:focus:bg-gray-800 focus:outline-none focus:shadow-outline focus:ring-2 ring-offset-current ring-offset-2 ring-gray-400"></div>
<div class="flex-grow"><input placeholder="City" class=" text-black placeholder-gray-600 w-full px-4 py-2.5 mt-2 text-base transition duration-500 ease-in-out transform border-transparent rounded-lg bg-gray-200 focus:border-blueGray-500 focus:bg-white dark:focus:bg-gray-800 focus:outline-none focus:shadow-outline focus:ring-2 ring-offset-current ring-offset-2 ring-gray-400"></div>
</div>
</div>
<hr class="mt-4">
<div class="flex flex-row-reverse p-3">
<div class="flex-initial pl-3">
<button type="button" class="flex items-center px-5 py-2.5 font-medium tracking-wide text-white capitalize bg-black rounded-md hover:bg-gray-800 focus:outline-none focus:bg-gray-900 transition duration-300 transform active:scale-95 ease-in-out">
<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#FFFFFF">
<path d="M0 0h24v24H0V0z" fill="none"></path>
<path d="M5 5v14h14V7.83L16.17 5H5zm7 13c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-8H6V6h9v4z" opacity=".3"></path>
<path d="M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7l-4-4zm2 16H5V5h11.17L19 7.83V19zm-7-7c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3zM6 6h9v4H6z"></path>
</svg>
<span class="pl-2 mx-1">Save</span>
</button>
</div>
<div class="flex-initial">
<button type="button" class="flex items-center px-5 py-2.5 font-medium tracking-wide text-black capitalize rounded-md hover:bg-red-200 hover:fill-current hover:text-red-600 focus:outline-none transition duration-300 transform active:scale-95 ease-in-out">
<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px">
<path d="M0 0h24v24H0V0z" fill="none"></path>
<path d="M8 9h8v10H8z" opacity=".3"></path>
<path d="M15.5 4l-1-1h-5l-1 1H5v2h14V4zM6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM8 9h8v10H8V9z"></path>
</svg>
<span class="pl-2 mx-1">Delete</span>
</button>
</div>
</div>
</div>
</div>
</div>
</div> -->
<div id="popupModal" class="relative min-h-screen z-50 flex items-center justify-center bg-center bg-transparent py-12 px-4 sm:px-6 lg:px-8 bg-gray-500 bg-no-repeat bg-cover relative items-center">
<div class="absolute bg-black opacity-20 inset-0 z-0">
</div>
<div class=" my-5 max-w-md w-full space-y-8 p-10 bg-white rounded-xl shadow-lg z-10">
<div class="grid gap-8 grid-cols-1">
<div class="flex flex-col ">
<div class="flex flex-col sm:flex-row items-center mb-5">
<h2 class="font-semibold text-lg mr-auto">Do you want to Change ?</h2>
</div>
<div>
<div class="form" id="popupForm">
<div class="md:space-y-2 mb-5">
<div class="flex items-center space-x-4">
<!-- Clickable Image -->
<div class="w-24 h-24 rounded-xl border overflow-hidden cursor-pointer" onclick="triggerFileInput()">
<img id="previewImage" class="object-cover w-full h-full"
src="https://via.placeholder.com/100"
alt="Click to upload">
</div>
<!-- Hidden File Input -->
<input type="file" id="fileInput" required="required" class="hidden" onchange="previewFile()">
</div>
</div>
<div class="md:flex flex-row md:space-x-4 w-full text-xs">
<div class="mb-3 space-y-2 w-full text-xs">
<label class="font-semibold text-gray-600 py-2 ">Movie Name
<abbr class="text-red-700">*</abbr>
</label>
<input placeholder="Movie Name" class="appearance-none block w-full bg-grey-lighter text-grey-darker border border-grey-lighter rounded-lg h-10 px-4" required="required" type="text" id="Movie Name">
</div>
</div>
<div class="md:flex flex-row md:space-x-4 w-full text-xs">
<div class="w-full flex flex-col mb-3">
<label class="font-semibold text-gray-600 py-2">Movie Type
<abbr class="text-red-800">*</abbr>
</label>
<select class="block w-full bg-transparent text-gray-600 border border-grey-lighter rounded-lg h-10 px-4 md:w-full " required="required" id="MovieType">
<option value="null">Selete Type</option>
<option value="2D">2D</option>
<option value="3D">3D</option>
<option value="IMAX">IMAX</option>
<option value="4DX">4DX</option>
<option value="Dolby Cinema">Dolby Cinema</option>
<option value="ScreenX">ScreenX</option>
</select>
</div>
</div>
<div class="md:flex flex-row md:space-x-4 w-full text-xs">
<div class="w-full flex flex-col mb-3">
<label class="font-semibold text-gray-600 py-2">Movie Status
</label>
<select class="block w-full bg-transparent text-gray-600 border border-grey-lighter rounded-lg h-10 px-4 md:w-full " required="required" id="MovieStatus">
<option value="Active">Active</option>
<option value="Deactive">Deactive</option>
</select>
</div>
</div>
<div class="md:flex flex-row md:space-x-4 w-full text-xs">
<div class="mb-3 space-y-2 w-full text-xs">
<label class="font-semibold text-gray-600 py-2 ">Ticket Price
<abbr class="text-red-700">*</abbr>
</label>
<input placeholder="Ticket Price" class="appearance-none block w-full bg-grey-lighter text-grey-darker border border-grey-lighter rounded-lg h-10 px-4" required="required" type="number" id="TicketPrice">
</div>
</div>
<div class="md:flex flex-row md:space-x-4 w-full text-xs">
<div class="mb-3 space-y-2 w-full text-xs">
<label class="font-semibold text-gray-600 py-2 ">Casting Time
<abbr class="text-red-700">*</abbr>
</label>
<input placeholder="Casting Time" class="appearance-none block w-full bg-grey-lighter text-grey-darker border border-grey-lighter rounded-lg h-10 px-4" required="required" type="text" id="Casting Time">
</div>
</div>
<div class="flex-auto w-full mb-1 text-xs space-y-2">
<label class="font-semibold text-gray-600 py-2">Description</label>
<textarea required="required" name="message" id="MovieDescription" class="w-full min-h-[100px] max-h-[300px] h-28 appearance-none block w-full bg-grey-lighter text-grey-darker border border-grey-lighter rounded-lg py-4 px-4" placeholder="Movie Description" spellcheck="true">
</textarea>
</div>
<div class="mt-5 text-right md:space-x-3 md:block flex flex-col-reverse">
<button type="button" id="closePopup" class="mb-2 md:mb-0 bg-red-400 px-5 py-2 text-sm shadow-sm font-medium tracking-wider text-white rounded-full hover:shadow-lg hover:bg-red-500">Cancel</button>
<button type="submit" class="mb-2 md:mb-0 bg-green-400 px-5 py-2 text-sm shadow-sm font-medium tracking-wider text-white rounded-full hover:shadow-lg hover:bg-green-500">Save</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="popupModal1" class="relative min-h-screen z-50 flex items-center justify-center bg-center bg-transparent py-12 px-4 sm:px-6 lg:px-8 bg-gray-500 bg-no-repeat bg-cover relative items-center">
<div class="absolute bg-black opacity-20 inset-0 z-0">
</div>
<div class=" my-5 max-w-md w-full space-y-8 p-10 bg-white rounded-xl shadow-lg z-10">
<div class="grid gap-8 grid-cols-1">
<div class="flex flex-col ">
<div class="flex flex-col sm:flex-row items-center mb-5">
<h2 class="font-semibold text-lg mr-auto">Do you want to Change ?</h2>
</div>
<div>
<div class="form" id="popupForm1">
<div class="md:space-y-2 mb-5">
<div class="flex items-center space-x-4">
<!-- Clickable Image -->
<div class="w-24 h-24 rounded-xl border overflow-hidden cursor-pointer" onclick="triggerFileInput1()">
<img id="previewImage1" class="object-cover w-full h-full"
src="https://via.placeholder.com/100"
alt="Click to upload">
</div>
<!-- Hidden File Input -->
<input type="file" id="fileInput1" required="required" class="hidden" onchange="previewFile1()">
</div>
</div>
<div class="md:flex flex-row md:space-x-4 w-full text-xs">
<div class="mb-3 space-y-2 w-full text-xs">
<label class="font-semibold text-gray-600 py-2 ">Movie Name
<abbr class="text-red-700">*</abbr>
</label>
<input placeholder="Movie Name" class="appearance-none block w-full bg-grey-lighter text-grey-darker border border-grey-lighter rounded-lg h-10 px-4" required="required" type="text" id="Movie Name1">
</div>
</div>
<div class="md:flex flex-row md:space-x-4 w-full text-xs">
<div class="w-full flex flex-col mb-3">
<label class="font-semibold text-gray-600 py-2">Movie Type
<abbr class="text-red-800">*</abbr>
</label>
<select class="block w-full bg-transparent text-gray-600 border border-grey-lighter rounded-lg h-10 px-4 md:w-full " required="required" id="MovieType1">
<option value="null">Selete Type</option>
<option value="2D">2D</option>
<option value="3D">3D</option>
<option value="IMAX">IMAX</option>
<option value="4DX">4DX</option>
<option value="Dolby Cinema">Dolby Cinema</option>
<option value="ScreenX">ScreenX</option>
</select>
</div>
</div>
<div class="md:flex flex-row md:space-x-4 w-full text-xs">
<div class="w-full flex flex-col mb-3">
<label class="font-semibold text-gray-600 py-2">Movie Status
</label>
<select class="block w-full bg-transparent text-gray-600 border border-grey-lighter rounded-lg h-10 px-4 md:w-full " required="required" id="MovieStatus1">
<option value="Active">Active</option>
<option value="Deactive">Deactive</option>
</select>
</div>
</div>
<div class="md:flex flex-row md:space-x-4 w-full text-xs">
<div class="mb-3 space-y-2 w-full text-xs">
<label class="font-semibold text-gray-600 py-2 ">Ticket Price
<abbr class="text-red-700">*</abbr>
</label>
<input placeholder="Ticket Price" class="appearance-none block w-full bg-grey-lighter text-grey-darker border border-grey-lighter rounded-lg h-10 px-4" required="required" type="number" id="TicketPrice1">
</div>
</div>
<div class="md:flex flex-row md:space-x-4 w-full text-xs">
<div class="mb-3 space-y-2 w-full text-xs">
<label class="font-semibold text-gray-600 py-2 ">Casting Time
<abbr class="text-red-700">*</abbr>
</label>
<input placeholder="Casting Time" class="appearance-none block w-full bg-grey-lighter text-grey-darker border border-grey-lighter rounded-lg h-10 px-4" required="required" type="text" id="Casting Time1">
</div>
</div>
<div class="flex-auto w-full mb-1 text-xs space-y-2">
<label class="font-semibold text-gray-600 py-2">Description</label>
<textarea required="required" name="message" id="MovieDescription1" class="w-full min-h-[100px] max-h-[300px] h-28 appearance-none block w-full bg-grey-lighter text-grey-darker border border-grey-lighter rounded-lg py-4 px-4" placeholder="Movie Description" spellcheck="true">
</textarea>
</div>
<div class="mt-5 text-right md:space-x-3 md:block flex flex-col-reverse">
<button type="button" id="closePopup1" class="mb-2 md:mb-0 bg-red-400 px-5 py-2 text-sm shadow-sm font-medium tracking-wider text-white rounded-full hover:shadow-lg hover:bg-red-500">Cancel</button>
<button type="submit" class="mb-2 md:mb-0 bg-green-400 px-5 py-2 text-sm shadow-sm font-medium tracking-wider text-white rounded-full hover:shadow-lg hover:bg-green-500">Save</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script>
const AddMovie = document.getElementById('AddMovie');
const Close = document.getElementById('closePopup1');
const popupForm = document.getElementById('popupForm1');
AddMovie.addEventListener('click',() => {
document.getElementById('popupModal1').classList.add('active');
});
Close.addEventListener('click', () => {
document.getElementById('popupModal1').classList.remove('active');
});
popupForm.addEventListener('submit', (e) => {
e.preventDefault();
const movieName = document.getElementById('Movie Name1').value;
const movieType = document.getElementById('MovieType1').value;
const movieStatus = document.getElementById('MovieStatus1').value;
const description = document.getElementById('MovieDescription1').value;
const CastingTime = document.getElementById('Casting Time1').value;
const TicketPrice = document.getElementById('TicketPrice1').value;
console.log('Movie Name:', movieName);
console.log('Movie Type:', movieType);
console.log('Movie Status:', movieStatus);
console.log('Description:', description);
console.log('Ticket Price', TicketPrice);
console.log('Casting Time', CastingTime);
document.getElementById('popupModal1').classList.remove('active');
});
function triggerFileInput1() {
document.getElementById('fileInput1').click();
}
function previewFile1() {
const fileInput = document.getElementById('fileInput1');
const previewImage = document.getElementById('previewImage1');
const file = fileInput.files[0];
if (file) {
const reader = new FileReader();
reader.onload = function(e) {
previewImage.src = e.target.result;
};
reader.readAsDataURL(file);
}
}
document.querySelectorAll('.Button-Edit').forEach((button, index) => {
button.addEventListener('click', () => {
console.log(`Button ${index} was clicked`);
document.getElementById('popupModal').classList.add('active');
});
});
document.getElementById('closePopup').addEventListener('click', () => {
document.getElementById('popupModal').classList.remove('active');
});
document.getElementById('popupForm').addEventListener('submit', (e) => {
e.preventDefault();
const movieName = document.getElementById('Movie Name').value;
const movieType = document.getElementById('MovieType').value;
const movieStatus = document.getElementById('MovieStatus').value;
const description = document.getElementById('MovieDescription').value;
const CastingTime = document.getElementById('Casting Time').value;
const TicketPrice = document.getElementById('TicketPrice').value;
console.log('Movie Name:', movieName);
console.log('Movie Type:', movieType);
console.log('Movie Status:', movieStatus);
console.log('Description:', description);
console.log('Ticket Price', TicketPrice);
console.log('Casting Time', CastingTime);
document.getElementById('popupModal').classList.remove('active');
});
function triggerFileInput() {
document.getElementById('fileInput').click();
}
function previewFile() {
const fileInput = document.getElementById('fileInput');
const previewImage = document.getElementById('previewImage');
const file = fileInput.files[0];
if (file) {
const reader = new FileReader();
reader.onload = function(e) {
previewImage.src = e.target.result;
};
reader.readAsDataURL(file);
}
}
let OpenOrNot = false;
dropdownMenu2 =document.getElementById('dropdown-menu2');
AdminSection = document.getElementById('AdminSection');
AdminSection.addEventListener('click', () => {
if(!OpenOrNot){
dropdownMenu2.style.visibility = 'visible';
OpenOrNot = true;
}
else{
dropdownMenu2.style.visibility = 'hidden';
OpenOrNot = false;
}
});
</script>
</body>
</html>