-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLab6.html
123 lines (120 loc) · 5.31 KB
/
Lab6.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
<html>
<head>
<!-- https://www.w3schools.com/bootstrap/bootstrap_get_started.asp -->
<title>Shopping List Application</title>
<!-- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="css/shoppingstyle.css"> -->
<script type="text/javascript" src="lab6.js"></script>
</head>
<body>
<div class="container">
<div class="panel panel-default col-md-12">
<div class="panel-body">
<div class="row form-inline">
<div class="form-group">
<label for="itemname">Item Name</label>
<input type=text class="form-control" name="itemname" id=itemname />
</div>
<div class="form-group">
<label for="qty">Quantity</label>
<select name="quantity" id="qty" class="form-control">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
</select>
</div>
<div class="form-group">
<label for="priority">Priority</label>
<select name="priority" id="priority" class="form-control">
<option value="low">low</option>
<option value="medium">medium</option>
<option value="high">high</option>
</select>
</div>
</div>
<div class="row form-inline" style="margin-top: 20px; margin-bottom: 20px;">
<div class="form-group">
<label for="store">Store Name</label>
<select name="store" id="store" class="form-control">
<option value="Fareway">
Amazon
</option>
<option value="Ace Hardware">
Subway
</option>
<option value="Caseys">
Flipkart
</option>
<option value="The Hatchery">
Cereal King
</option>
<option value="Amundsens">
Big Basket
</option>
</select>
</div>
<div class="form-group">
<label for="category">Store Section</label>
<select name="category" id="category" class="form-control">
<option value="Produce">
Produce
</option>
<option value="Meats">
Meats
</option>
<option value="Cereal">
Cereal
</option>
<option value="Canned Goods">
Canned Goods
</option>
<option value="Frozen Foods">
Frozen Foods
</option>
<option value="Dairy">
Dairy
</option>
<option value="Liquor">
Liquor
</option>
<option value="Tools">
Tools
</option>
<option value="Clothing">
Clothing
</option>
</select>
</div>
<div class="form-group">
<label for="price">Price</label>
<input type="text" name="price" id="price" class="form-control">
</div>
</div>
<div class="form-inline" style="float: right;">
<button onclick="clickedon()" class="btn btn-primary" id=gobutt>Add Item</button>
</div>
</div>
</div>
<div class="col-md-12">
<table class="table table-bordered">
<thead>
<tr>
<th></th><th>Item</th><th>Quantity</th><th>Store</th><th>Section</th><th>Price</th>
</tr>
</thead>
<tbody id="shoppinglist"></tbody>
</table>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="shopping.js?x=2" type=text/javascript></script>
</body>
</html>