-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
57 lines (50 loc) · 1.81 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
<html>
<head>
<link rel="stylesheet" href="css/bootstrap.min.css">
<title>crud project</title>
</head>
<body>
<div class="container py-5">
<div class="form-group">
<label>productName:</label>
<input class="form-control" type="text" id="productNameInput">
<div class="alert alert-danger mt-2 text-center d-none" id="productNameAlert">
productName must be required start:uppercase:at least:3char small
</div>
</div>
<div class="form-group">
<label>productPrice:</label>
<input class="form-control" type="number" id="productPriceInput">
</div>
<div class="form-group">
<label>productCategory:</label>
<input class="form-control" type="text" id="productCategoryInput">
</div>
<div class="form-group">
<label>productdesc:</label>
<textarea class="form-control" type="text" id="productdescInput"></textarea>
</div>
<button class="btn btn-info" id="submitBtn">add product</button>
</div>
<div class="container py-4">
<input onkeyup="searchProduct();" id="searchInput" class="form-control w-50 mx-auto my-4" placeholder="search..">
</div>
<div class="container py-5">
<table class="table text-center">
<thead>
<th> index</th>
<th> Product Name</th>
<th> Producr Price</th>
<th> Product Category</th>
<th> product Desc</th>
<th>update</th>
<th> delete</th>
</thead>
<tbody id="tableBody">
</tbody>
</table>
</div>
<h1 id="test"></h1>
<script src="session.js"></script>
</body>
</html>