-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
520 lines (508 loc) · 21.9 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="Asset\Styles\normalize.css" />
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-KK94CHFLLe+nY2dmCWGMq91rCGa5gtU4mk92HdvYe+M/SXH301p5ILy+dN9+nJOZ" crossorigin="anonymous" />
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/js/bootstrap.bundle.min.js"
integrity="sha384-ENjdO4Dr2bkBIFxQpeoTz1HIcje39Wm4jDKdf19U8gI4ddQ3GYNS7NTKfAdVQSZe"
crossorigin="anonymous"></script>
<script src="https://kit.fontawesome.com/045bd16cf0.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="Asset\Styles\style.css" />
<title>Home - Dineth Hardware Store</title>
</head>
<body>
<header>
<nav class="navbar bg-body-tertiary">
<div class="container-fluid">
<a class="navbar-brand" href="#">
<img src="Asset\img\shop.png" alt="Logo" width="35" height="35" class="d-inline-block align-text-center" />
Dineth Hardware
</a>
<div style="left: 53%; position: relative">
<span class="h5"><i class="fa-solid fa-user-tie"></i> <span class="h6">User</span><br />
<label for="" style="margin-top: 5px"> 🕵️♂️ Pathum chinthaka</label>
</span>
</div>
<div class="nav-icons" style="right: 42%; position: relative">
<span><i class="fa-solid fa-bell"></i> Notification</span>
<span><i class="fa-solid fa-envelope"></i> E-mail</span>
<span><i class="fa-solid fa-message"></i> Messages</span>
</div>
</div>
</nav>
<div class="flex-shrink-0 p-3 bg-white" style="width: 280px" id="sidebar-container">
<a id="dashboard-page" href="#"
class="d-flex align-items-center pb-3 mb-3 link-dark text-decoration-none border-bottom">
<svg class="bi me-2" width="30" height="24">
<use xlink:href="#bootstrap" />
</svg>
<span class="fs-5 fw-semibold" style="left: 0"><img src="Asset\img\shop.png" alt="shop-png" /></span><span
class="h4">Dineth Hardware Store</span>
</a>
<ul class="list-unstyled ps-0">
<li class="mb-1">
<button class="btn btn-toggle align-items-center rounded collapsed" data-bs-toggle="collapse"
data-bs-target="#home-collapse" aria-expanded="true">
📜 Order
</button>
<div class="collapse show" id="home-collapse">
<ul class="btn-toggle-nav list-unstyled fw-normal pb-1 small">
<li>
<a id="order-page" href="#" class="link-dark rounded">Place Order</a>
</li>
<li>
<a id="orderDetails-page" href="#" class="link-dark rounded">Order Details</a>
</li>
</ul>
</div>
</li>
<li class="mb-1">
<button class="btn btn-toggle align-items-center rounded collapsed" data-bs-toggle="collapse"
data-bs-target="#dashboard-collapse" aria-expanded="false">
🛠 Item
</button>
<div class="collapse" id="dashboard-collapse">
<ul class="btn-toggle-nav list-unstyled fw-normal pb-1 small">
<li>
<a id="item-page" href="#" class="link-dark rounded">Manage Items</a>
</li>
</ul>
</div>
</li>
<li class="mb-1">
<button class="btn btn-toggle align-items-center rounded collapsed" data-bs-toggle="collapse"
data-bs-target="#orders-collapse" aria-expanded="false">
👨🔧 People
</button>
<div class="collapse" id="orders-collapse">
<ul class="btn-toggle-nav list-unstyled fw-normal pb-1 small">
<li>
<a id="customer-page" href="#" class="link-dark rounded">Customers</a>
</li>
</ul>
</div>
</li>
<li class="border-top my-3"></li>
<div class="account">
<li class="mb-1">
<button class="btn btn-toggle align-items-center rounded collapsed" data-bs-toggle="collapse"
data-bs-target="#account-collapse" aria-expanded="false">
🛡 Account
</button>
<div class="collapse" id="account-collapse">
<ul class="btn-toggle-nav list-unstyled fw-normal pb-1 small">
<li><a href="#" class="link-dark rounded">New...</a></li>
<li><a href="#" class="link-dark rounded">Profile</a></li>
<li><a href="#" class="link-dark rounded">Settings</a></li>
<li><a href="#" class="link-dark rounded">Sign out</a></li>
</ul>
</div>
</li>
</div>
</ul>
</div>
</header>
<main>
<section id="home-content">
<div class="d-flex flex-row" id="box-content">
<div class="p-2 bg-warning display-6">
Customer <br />
100<i style="position: relative; left: 115px; font-size: 60px" class="fa-solid fa-user"></i>
</div>
<div class="p-2 bg-success display-6">
Orders<br />
75
<i style="position: relative; left: 115px; font-size: 60px" class="fa-solid fa-print"></i>
</div>
<div class="p-2 bg-info display-6">
Items <br />
1200
<i style="position: relative; left: 90px; font-size: 57px" class="fa-solid fa-screwdriver-wrench"></i>
</div>
</div>
<div id="carouselExampleAutoplaying" class="carousel slide" data-bs-ride="carousel">
<div class="carousel-inner" style="border-radius: 20px">
<div class="carousel-item active">
<img src="Asset\img\slide 4.jpg" class="d-block w-100" alt="..." />
</div>
<div class="carousel-item">
<img src="Asset\img\slide 4.jpg" class="d-block w-100" alt="..." />
</div>
<div class="carousel-item">
<img src="Asset\img\slide 3.jpg" class="d-block w-100" alt="..." />
</div>
<div class="carousel-item">
<img src="Asset\img\Slide 2.jpg" class="d-block w-100" alt="..." />
</div>
</div>
<button class="carousel-control-prev" type="button" data-bs-target="#carouselExampleAutoplaying"
data-bs-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="visually-hidden">Previous</span>
</button>
<button class="carousel-control-next" type="button" data-bs-target="#carouselExampleAutoplaying"
data-bs-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="visually-hidden">Next</span>
</button>
</div>
</section>
<br />
<!-- order section -->
<section id="order-section" style="overflow: hidden">
<h2 style="position: relative; left: 35px">
Manage Orders <i class="fa-solid fa-print"></i>
</h2>
<div style="position: relative; left: 60%; width: 140px">
<span id="orderId">Ord</span><br /><br>
<span id="date"></span>
</div>
<div class="input-group mb-3" style=" width: 350px; margin-top: 25px; left: 50px;">
<div class="input-group-prepend">
<span class="input-group-text">Order ID</span>
</div>
<input type="text" class="form-control" aria-label="Default" aria-describedby="inputGroup-sizing-default"
id="order_Id" />
</div>
<div class="item-txtfields" style="position: relative; left: 50px; top: 40px; width: 800px">
<div class="col-md-2">
<label class="form-label">Item Code</label>
<select id="cmbItemCode" class="form-select">
<option selected>Choose...</option>
</select>
</div>
<div class="input-group mb-3" style="width: 250px; left: 350px; bottom: 53px">
<div class="input-group-prepend">
<span class="input-group-text">ItemName</span>
</div>
<input type="text" class="form-control" aria-label="Default" aria-describedby="inputGroup-sizing-default"
id="item_Name" />
</div>
<div class="input-group mb-3" style="width: 250px; bottom: 22px">
<div class="input-group-prepend">
<span class="input-group-text">UnitPrice</span>
</div>
<input type="text" class="form-control" aria-label="Default" aria-describedby="inputGroup-sizing-default"
id="item_Price" />
</div>
<div class="input-group mb-3" style="width: 250px; left: 350px; bottom: 80px">
<div class="input-group-prepend">
<span class="input-group-text">Qty</span>
</div>
<input type="text" class="form-control" aria-label="Default" aria-describedby="inputGroup-sizing-default"
id="item_Qty" />
</div>
</div>
<button class="btn btn-dark" id="btn_updateCart" style="
width: 120px;
height: 40px;
position: relative;
left: 61%;
bottom: 35px;
">
UpdateItem
</button>
<button class="btn btn-warning" id="btn_addToCart" style="
width: 120px;
height: 40px;
position: relative;
left: 42%;
bottom: 35px;
">
AddToCart
</button>
<table class="table" style="margin-left: 30px; width: 920px; border: 2px solid gray" id="order_Table">
<thead>
<tr class="table-info">
<th scope="col" class="table-secondary">Order ID</th>
<th scope="col" class="table-secondary">Item ID</th>
<th scope="col" class="table-secondary">Item Name</th>
<th scope="col" class="table-secondary">Unit Price</th>
<th scope="col" class="table-secondary">Qty</th>
<th scope="col" class="table-secondary">Amount</th>
</tr>
</thead>
<tbody id="order_tbody" class="table-info">
<tr>
<!-- <td scope="row"></td>
<td>Hammer</td>
<td>450.00</td>
<td>2</td>
<td>900</td>
<td></td> -->
</tr>
</tbody>
</table>
<div class="content-box-2 p-4 mt-4" style="bottom: 10px">
<span id="total-text">
<h6>Net Amount<h5 id="amount"></h5>
</h6>
</span>
<br /><br />
<!-- <div class="row">
<div class="col-lg-4">
<div class="form-group form-inline">
<label>Cash</label>
<input type="text" class="form-control col-12 col-lg-auto" style="width: 250px; left: 40px" id="cash" />
</div>
</div>
<div class="col-lg-4" style="position: relative; right: 50px;">
<div class="form-group form-inline">
<label>Discount</label>
<input type="text" class="form-control col-12 col-lg-auto"
style="position: relative; right: 7.5em; width: 300px;" id="discount" />
</div>
</div>
<div class="col-lg-4" style="position: relative; right: 250px;">
<div class="form-group form-inline">
<label>Balance</label>
<input type="text" class="form-control col-12 col-lg-auto" style="position: relative; width: 300px;"
id="balance" />
</div>
</div>
</div>
</div> -->
<div class="menu-button-group float-right" style="margin-top: 10px">
<div class="center-on-lg">
<div class="btn-group">
<button type="button" class="btn btn-primary" id="btn-Clear">Delete Item</button>
<button type="button" class="btn btn-secondary" id="btn-Refresh">Refresh</button>
<button type="button" class="btn btn-success" id="btn-PlaceOrder">Place Order</button>
</div>
</div>
</div>
</section>
<br />
<!-- Order details section -->
<section id="orderDetails-section" style="overflow: hidden">
<h2 style="position: relative; left: 10em; top: 1em;">
Order Details <i class="fa-solid fa-print"></i>
</h2>
<table class="table" style="left: 20em; top: 3.8em; width: 920px; border: 2px solid gray;
position: relative;" id="order_Table">
<thead>
<tr class="table-info">
<th scope="col" class="table-secondary">Order ID</th>
<th scope="col" class="table-secondary">Item ID</th>
<th scope="col" class="table-secondary">Item Name</th>
<th scope="col" class="table-secondary">Unit Price</th>
<th scope="col" class="table-secondary">Qty</th>
<th scope="col" class="table-secondary">Amount</th>
<th scope="col" class="table-secondary">NetAmount</th>
</tr>
</thead>
<tbody id="order_tbody" class="table-info">
<tr>
<td scope="row">1</td>
<td>Hammer</td>
<td>450.00</td>
<td>2</td>
<td>900</td>
<td></td>
</tr>
</tbody>
</table>
</section>
<br />
<!-- item section -->
<section id="item-section" style="overflow: hidden">
<h2>Manage Items <i class="fa-solid fa-screwdriver-wrench"></i></h2>
<form style="position: relative; top: 50px; width: 900px">
<!-- 2 column grid layout with text inputs for the first and last names -->
<div class="row mb-4">
<div class="col">
<div class="form-outline">
<label class="form-label" for="form6Example1">Item Code</label>
<input type="text" id="itemCode" class="form-control" />
</div>
</div>
<div class="col">
<div class="form-outline">
<label class="form-label" for="form6Example2">Item Name</label>
<input type="text" id="itemName" class="form-control" />
</div>
</div>
</div>
<div class="row mb-4">
<div class="col">
<div class="form-outline">
<label class="form-label" for="form6Example1">Category</label>
<input type="text" id="itemCategory" class="form-control" />
</div>
</div>
<div class="col">
<div class="form-outline">
<label class="form-label" for="form6Example2">Brand</label>
<input type="text" id="itemBrand" class="form-control" />
</div>
</div>
</div>
<div class="row mb-4">
<div class="col">
<div class="form-outline">
<label class="form-label" for="form6Example1">Unit Price</label>
<input type="text" id="itemPrice" class="form-control" />
</div>
</div>
<div class="col">
<div class="form-outline">
<label class="form-label" for="form6Example2">Quantity</label>
<input type="text" id="itemQty" class="form-control" />
</div>
</div>
</div>
<!-- Submit button -->
<div style="position: relative; left: 63.5%; padding: 10px">
<button type="button" class="btn btn-primary btn-block mb-4" id="btn_AddItem">
Add Item
</button>
<button type="button" class="btn btn-dark btn-block mb-4" id="btn_UpdateItem">
Update Item
</button>
<button type="button" class="btn btn-warning btn-block mb-4" id="btn_DeleteItem">
Delete Item
</button>
</div>
<br />
<h2 id="myid">Item Details</h2>
</form>
<div class="input-group" style="left: 0; margin-top: 80px">
<div class="form-outline">
<input type="search" id="form1" class="form-control" placeholder="Search Item" style="width: 250px" />
</div>
<button type="button" class="btn btn-success" style="height: 40px; width: 110px; right: 10px">
Search
</button>
</div>
<table class="table" id="itemTable" style="margin-top: 40px; width: 920px; border: 2px solid gray">
<thead>
<tr class="table-warning">
<th scope="col" class="table-secondary">Item Code</th>
<th scope="col" class="table-secondary">Item Name</th>
<th scope="col" class="table-secondary">Category</th>
<th scope="col" class="table-secondary">Brand</th>
<th scope="col" class="table-secondary">Unit Price</th>
<th scope="col" class="table-secondary">Qty</th>
</tr>
</thead>
<tbody id="item-tbody" class="table-info">
<tr class="table-info">
<td></td>
</tr>
</tbody>
</table>
</section>
<br />
<!-- customer section -->
<section id="customer-section" style="overflow: hidden">
<h2>Manage Customers <i class="fa-solid fa-user"></i></h2>
<form style="position: relative; top: 50px; width: 900px">
<!-- 2 column grid layout with text inputs for the first and last names -->
<div class="row mb-4">
<div class="col">
<div class="form-outline">
<label class="form-label" for="form6Example1">Customer_Id</label>
<input type="text" id="customer_id" class="form-control" style="width: 150px; margin-bottom: 25px;" />
</div>
</div>
<div class="row mb-4">
<div class="col">
<div class="form-outline">
<label class="form-label" for="form6Example1">First Name</label>
<input type="text" id="customer_first_name" class="form-control" />
</div>
</div>
<div class="col">
<div class="form-outline">
<label class="form-label" for="form6Example2">Last Name</label>
<input type="text" id="customer_last_name" class="form-control" />
</div>
</div>
</div>
<div class="row mb-4">
<div class="col">
<div class="form-outline">
<label class="form-label" for="form6Example1">Address</label>
<input type="text" id="customer_address" class="form-control" />
</div>
</div>
<div class="col">
<div class="form-outline">
<label class="form-label" for="form6Example2">Nic</label>
<input type="text" id="customer_nic" class="form-control" />
</div>
</div>
</div>
<div class="row mb-4">
<div class="col">
<div class="form-outline">
<label class="form-label" for="form6Example1">E-mail</label>
<input type="text" id="customer_email" class="form-control" />
</div>
</div>
<div class="col">
<div class="form-outline">
<label class="form-label" for="form6Example2">Contact Number</label>
<input type="text" id="customer_contact" class="form-control" />
</div>
</div>
</div>
<!-- Submit button -->
<div style="position: relative; left: 56.5%; padding: 10px">
<button type="button" class="btn btn-success btn-block mb-4" id="btn-add">
Add Customer
</button>
<button type="button" class="btn btn-dark btn-block mb-4" id="btn-update">
Update Data
</button>
<button type="button" class="btn btn-danger btn-block mb-4" id="btn-delete">
Delete Data
</button>
</div>
<br />
<h2>Customer Details</h2>
</form>
<div class="input-group" style="left: 0; margin-top: 20px">
<div class="form-outline">
<input type="search" id="form1" class="form-control" placeholder="Search Customer" style="width: 250px" />
</div>
<button type="button" class="btn btn-warning" style="height: 40px; width: 110px; right: 10px">
Search
</button>
</div>
<table class="table" id="customer-table"
style="margin-top: 20px; width: 920px; border: 2px solid gray; background-color:#D1E7DD;">
<thead>
<tr class="table">
<th scope="col" class="table-secondary">Customer ID</th>
<th scope="col" class="table-secondary">First Name</th>
<th scope="col" class="table-secondary">Last Name</th>
<th scope="col" class="table-secondary">Address</th>
<th scope="col" class="table-secondary">Nic</th>
<th scope="col" class="table-secondary">E-mail</th>
<th scope="col" class="table-secondary">Contact</th>
</tr>
</thead>
<tbody id="customer-tbody">
<tr class="table-success">
<td></td>
</tr>
</tbody>
</table>
</section>
</main>
<script src="lib\jquery-3.6.4.min.js"></script>
<script src="Asset\js\index.js"></script>
<script src="controler\customerController.js" type="module"></script>
<script src="controler\itemcontroller.js" type="module"></script>
<script src="controler\ordercontroller.js" type="module"></script>
<script src="controler\orderDetailsController.js" type="module"></script>
<script src="DB\db.js" type="module"></script>
<script>
</script>
</body>
</html>