-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
122 lines (104 loc) · 4.86 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
<!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">
<!-- Bootstrap -->
<!-- CSS only -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap" rel="stylesheet">
<script src="https://kit.fontawesome.com/17f2547a59.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="style.css">
<title>CRUDS Project</title>
</head>
<body>
<div class="container">
<div class="header">
<h1>CRUDS</h1>
<p>Product Mangement System</p>
</div><!-- ./header -->
<div class="productData w-75 mx-auto">
<div class="my-3">
<input type="text" id="titleInput" placeholder="Product Name" class="form-control clr">
</div>
<div class="my-3">
<input onkeyup="getTotal()" type="number" id="priceInput" placeholder="Price" class="form-control clr">
</div>
<div class="prices my-3">
<input onkeyup="getTotal()" type="number" id="taxesInput" placeholder="Taxes"
class="me-3 form-control clr">
<input onkeyup="getTotal()" type="number" id="adsInput" placeholder="ADS" class="mx-3 form-control clr">
<input onkeyup="getTotal()" type="number" id="discountInput" placeholder="Discount"
class="mx-3 form-control clr">
<span class="ms-3" id="totalSpan"></span>
</div><!-- ./prices -->
<div class="my-3">
<input type="number" id="countInput" placeholder="Count" class="form-control clr">
</div>
<div class="my-3">
<input type="text" id="categoryInput" placeholder="Category" class="form-control clr">
</div>
<div class="form-btns">
<button id="submitButton">Create</button>
<button id="clearButton">Clear</button>
<div class="alert alert-danger my-2 d-none w-50 mx-auto text-center" id="btnAlert">
<strong>Please fill product data!</strong>
</div>
</div>
</div><!-- ./inputs -->
<div class="outputs">
<div class="searchContainer">
<div class="my-3 w-75 mx-auto">
<input onkeyup="searchProduct(this.value)" type="text" id="searchInput" placeholder="Search"
class="form-control">
</div>
<div class="btnSearch w-75 mx-auto">
<button onclick="getSearchMood(this.id)" id="searchByTitle">Search by title</button>
<button onclick="getSearchMood(this.id)" id="searchByCategory">Search by Category</button>
</div>
<div id="deleteAllDiv">
</div>
<div class="table-responsive">
<!-- Table -->
<table class="table table-dark table-hover">
<!-- Table Head -->
<thead>
<tr>
<th>#</th>
<th>title</th>
<th>Price</th>
<th>taxes</th>
<th>ads</th>
<th>discount</th>
<th>total</th>
<th>count</th>
<th>category</th>
<th>update</th>
<th>delete</th>
</tr>
</thead>
<!-- Table Body -->
<tbody id="tableBody">
</tbody>
<tr>
</tr>
</table>
</div>
<!-- NO data div -->
<div class="noDataDiv">
<h2>No data</h2>
</div>
</div>
</div><!-- ./outputs -->
</div><!-- ./container -->
<!-- JavaScript Bundle with Popper -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p"
crossorigin="anonymous"></script>
<script src="main.js"></script>
</body>
</html>