-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
293 lines (274 loc) · 9.03 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="assests/css/style.css" />
<link rel="icon" href="/assests/ico/SnapPosIcon.ico" />
<title>SnapPOS</title>
</head>
<body>
<header>
<div class="systemName">SnapPOS</div>
<ul>
<li><a href="#homePage" class="nav-link">Home</a></li>
<li><a href="#CustomerManage" class="nav-link">Customer</a></li>
<li><a href="#ItemManage" class="nav-link">Item</a></li>
<li>
<a href="#OrderManage" class="nav-link orderManageBtn">Orders</a>
</li>
</ul>
</header>
<!------------------- Home section ------------------->
<section id="homePage">
<div>
<div class="carousel">
<div class="carousel-inner">
<div class="carousel-item active">
<img
src="/assests/img/POS-Carousel-Image-1.png"
alt="Food market image"
/>
</div>
<div class="carousel-item">
<img
src="/assests/img/POS-Carousel-Image-2.png"
alt="Customer in the market image"
/>
</div>
<div class="carousel-item">
<img
src="/assests/img/POS-Carousel-Image-3.png"
alt="Grocery items image"
/>
</div>
</div>
<button class="carousel-control prev" onclick="prevSlide()">
❮
</button>
<button class="carousel-control next" onclick="nextSlide()">
❯
</button>
</div>
</div>
</section>
<!------------------- Customer section ------------------->
<section id="CustomerManage">
<div>
<div>
<h1 class="title">Customer Registration</h1>
<form id="customerForm">
<div>
<label for="">Customer Id</label>
<input type="text" class="custId" />
<h5 class="invalidCustId"></h5>
</div>
<div>
<label for="">Customer Name</label>
<input type="text" class="custName" />
<h5 class="invalidCustName"></h5>
</div>
<div>
<label for="">Customer Address</label>
<input type="text" class="custAddress" />
<h5 class="invalidCustAddress"></h5>
</div>
<div>
<label for="">Customer Salary</label>
<input type="number" class="custSalary" />
<h5 class="invalidCustSalary"></h5>
</div>
<div class="buttons">
<button type="submit" class="saveBtn">Save Customer</button>
<button class="removeBtn">Remove</button>
<button class="updateBtn">Update</button>
<button class="searchBtn">GetAll</button>
<button class="clearBtn">Clear All</button>
</div>
</form>
</div>
<div>
<table>
<thead>
<tr>
<th>Customer Id</th>
<th>Customer Name</th>
<th>Customer Address</th>
<th>Customer Salary</th>
</tr>
</thead>
<tbody class="tableRow"></tbody>
</table>
</div>
</div>
</section>
<!------------------- Item section ------------------->
<section id="ItemManage">
<div>
<div>
<h1 class="title">Item Registration</h1>
<form action="" class="inputData" id="ItemForm">
<div>
<label for="">Item Code</label>
<input type="text" class="itemId" />
<h5 class="invalidCode"></h5>
</div>
<div>
<label for="">Item Name</label>
<input type="text" class="itemName" />
<h5 class="invalidName"></h5>
</div>
<div>
<label for="">Item Qty</label>
<input type="number" class="itemQty" />
<h5 class="invalidQty"></h5>
</div>
<div>
<label for="">Item Price</label>
<input type="number" class="itemPrice" />
<h5 class="invalidPrice"></h5>
</div>
<div class="buttons">
<button type="submit" class="saveBtn">Save Item</button>
<button class="deleteBtn">Remove</button>
<button class="updateBtn">Update</button>
<button class="searchBtn">GetAll</button>
<button class="clearBtn">Clear All</button>
</div>
</form>
</div>
<div>
<table>
<thead>
<tr>
<th>Item Code</th>
<th>Item Name</th>
<th>Item Qty</th>
<th>Item Price</th>
</tr>
</thead>
<tbody class="tableRow"></tbody>
</table>
</div>
</div>
</section>
<!------------------- Order section ------------------->
<section id="OrderManage">
<div>
<div class="includeDetails">
<h1>Include Details</h1>
<div>
<form action="">
<div>
<div>
<label for="">Order Id</label>
<input type="text" class="orderId" />
</div>
<div>
<label for="">Order Date</label>
<input type="date" class="orderDate" />
</div>
<div>
<label for="">Customer</label>
<select class="customers" name="" id=""></select>
</div>
<div>
<label for="">Customer ID</label>
<input type="text" class="custId" />
</div>
<div>
<label for="">Customer Name</label>
<input type="text" class="custName" />
</div>
<div>
<label for="">Customer Salary</label>
<input type="number" class="custSalary" />
</div>
</div>
<div>
<label for="">Address</label>
<input type="text" class="custAddress" />
</div>
</form>
</div>
</div>
<div class="ItemSelect">
<h1>Item Select</h1>
<form action="">
<div>
<div>
<label for="">Item</label>
<select name="" id="" class="itemCmb"></select>
</div>
<div>
<label for="">Item Code</label>
<input type="text" class="itemCode" />
</div>
</div>
<div>
<div>
<label for="">Item Name</label>
<input type="text" class="itemName" />
</div>
<div>
<label for="">Item Price</label>
<input type="number" class="itemPrice" />
</div>
<div>
<label for="">Item Qty</label>
<input type="number" class="itemQty" />
</div>
</div>
<div>
<label for="">Order Qty</label>
<input type="number" class="orderQty" />
</div>
</form>
<div>
<button class="addBtn">Add Item</button>
</div>
</div>
<div class="TotalCal">
<h1>Total : <span class="Total">00.0</span> Rs/=</h1>
<h2>Sub Total : <span class="SubTotal">00.0</span> Rs/=</h2>
<form action="">
<div>
<div>
<label for="">Cash</label>
<input type="number" class="Cash" />
</div>
<div>
<label for="">Discount</label>
<input type="number" class="Discount" />
</div>
</div>
<div>
<label for="">Balance</label>
<input type="number" class="Balance" />
</div>
</form>
<div>
<button class="placeOrder">Purchase</button>
</div>
</div>
</div>
<div class="mainTable">
<div class="table">
<div>
<div>Item Code</div>
<div>Item Name</div>
<div>Price</div>
<div>Qty</div>
<div>Total</div>
</div>
</div>
<div class="tableRows"></div>
</div>
</section>
</body>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
<script src="controller/IndexController.js"></script>
<script type="module" src="controller/CustomerController.js"></script>
<script type="module" src="controller/ItemController.js"></script>
<script type="module" src="controller/OrderController.js"></script>
</html>