-
Notifications
You must be signed in to change notification settings - Fork 0
/
createorder1.html
159 lines (151 loc) · 6.5 KB
/
createorder1.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
{% extends "layout.html" %}
{% block body %}
<main class="row">
<h2> Create an Order </h2>
<form action="/createorder1" method="POST">
<div class="row">
<div class="col-lg-12 col-md-12">
<table class="table borderless ">
<tr>
<th colspan="4"><h4> Product details</h4> </th>
</tr>
<tr>
<td>
<h4>1 <img src="static/images/p1.JPG" alt="delete" width="50px"></h4>
</td>
<td>
<label for ="Product_ID">Product ID</label><br>
<input type ="number" name= "Product_ID" id="Product_ID" max=12 min=1 required>
</td>
<td>
<label for ="Quantity">Quantity</label><br>
<input type ="number" name= "Quantity" id="Quantity" max=10 min=0 required>
</td>
<td>
<label for ="OrdDet_ID">Order Details ID</label>
<input type ="integer" name= "OrdDet_ID" id="OrdDet_ID" required>
</td>
</tr>
<tr>
<td>
<h4>2 <img src="static/images/p2.JPG" alt="delete" width="50px"></h4>
</td>
<td>
<label for ="Product_ID2">Product ID</label><br>
<input type ="number" name= "Product_ID2" id="Product_ID2" max=12 min=1>
</td>
<td>
<label for ="Quantity2">Quantity</label><br>
<input type ="number" name= "Quantity2" id="Quantity2" max=10 min=0>
</td>
<td>
<label for ="OrdDet_ID2">Order Details ID</label>
<input type ="integer" name= "OrdDet_ID2" id="OrdDet_ID2" value=0>
</td>
</tr>
<tr>
<td>
<h4>3 <img src="static/images/p1.JPG" alt="delete" width="50px"></h4>
</td>
<td>
<label for ="Product_ID3">Product ID</label><br>
<input type ="number" name= "Product_ID3" id="Product_ID3" max=12 min=1>
</td>
<td>
<label for ="Quantity3">Quantity</label><br>
<input type ="number" name= "Quantity3" id="Quantity3" max=10 min=0>
</td>
<td>
<label for ="OrdDet_ID3">Order Details ID</label>
<input type ="integer" name= "OrdDet_ID3" id="OrdDet_ID3" value=0>
</td>
</tr>
<tr>
<td>
<h4>4 <img src="static/images/p1.JPG" alt="delete" width="50px"></h4>
</td>
<td>
<label for ="Product_ID4">Product ID</label><br>
<input type ="number" name= "Product_ID4" id="Product_ID4" max=12 min=1>
</td>
<td>
<label for ="Quantity4">Quantity</label><br>
<input type ="number" name= "Quantity4" id="Quantity4" max=10 min=0>
</td>
<td>
<label for ="OrdDet_ID4">Order Details ID</label>
<input type ="integer" name= "OrdDet_ID4" id="OrdDet_ID4" value=0>
</td>
</tr>
<tr>
<td>
<h4>5 <img src="static/images/p1.JPG" alt="delete" width="50px"></h4>
</td>
<td>
<label for ="Product_ID5">Product ID</label><br>
<input type ="number" name= "Product_ID5" id="Product_ID5" max=12 min=1 >
</td>
<td>
<label for ="Quantity5">Quantity</label><br>
<input type ="number" name= "Quantity5" id="Quantity5" max=10 min=0 >
</td>
<td>
<label for ="OrdDet_ID5">Order Details ID</label>
<input type ="integer" name= "OrdDet_ID5" id="OrdDet_ID5" value=0>
</td>
</tr>
<tr>
<th colspan="4"><h4> Additional details</h4> </th>
</tr>
<tr>
<td>
<label for ="OrderID">Order ID</label>
<input type ="integer" name= "OrderID" id="OrderID" required>
</td>
<td>
<label for ="OrderDate">Order Date</label>
<input type ="text" name= "OrderDate" id="OrderDate" value="dd-mm-yy" required>
</td>
<td>
<label for ="CustomerID">Customer ID</label>
<input type ="integer" name= "CustomerID" id="CustomerID" required>
</td>
<td></td>
</tr>
<tr>
<td>
<label for ="OrderType">Order Type</label>
<input type ="text" name= "OrderType" id="OrderType" required>
</td>
<td>
<label for ="SalesPerson">Sales Person</label>
<input type ="integer" name= "SalesPerson" id="SalesPerson" required>
</td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td>
<input class="btn btn-primary" type="submit" name="ordercreate" id="ordercreate" value ="Create Order">
</td>
</tr>
</table>
</div>
<!--<ol>-->
<!-- {% for d in message %}-->
<!-- <li>-->
<!-- {{d.OrdDet_ID}}-->
<!-- {{d.Product_ID}}-->
<!-- {{d.OrderID}}-->
<!-- {{d.Quantity}}-->
<!-- {% endfor %}-->
<!-- </li>-->
<!--</ol>-->
</form>
</div>
</div>
</main>
{% endblock %}