Subversion Repositories SmartDukaan

Rev

Rev 22245 | Rev 22255 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
21987 kshitij.so 1
<style>
2
.row{
3
	margin:0 auto;
4
}
5
.modal-content{
6
		background : white;
7
	}
8
	.modelHeaderCustom{
9
		font-size:14px;
10
		font-weight:bold;
11
	}
12
	.border-highlight{
13
		border : 3px solid red;
14
	}
15
	hr{
16
		background-color:#007aff;
17
		border:none;
18
		height:1px;
19
		background:#007aff;
20
	}
21
	.control-label {
22
		margin-top: 0;
23
    	margin-bottom: 0;
24
    	padding-top: 7px;
25
    	font-weight:bold;
26
    	font-size:14px;
27
	}
28
	.form-group{
29
		border-bottom: 1px solid #eff2f7;
30
    	padding-bottom: 15px;
31
    	margin-bottom: 15px;
32
	}
33
	.right{
34
		float:right;
35
	}
36
	.form-control{
37
		color:black;
38
		text-transform:uppercase;
39
	}
22219 ashik.ali 40
.table-align-center{
41
	text-align:center;
21987 kshitij.so 42
}
43
</style>
22245 ashik.ali 44
 
45
<script type="text/javascript">
46
	var cartItemIndex = 0;
47
</script>
48
 
21987 kshitij.so 49
<section class="wrapper">
50
<div class="row">
51
		<div class="col-lg-12">
52
			<h3 class="page-header"><i class="icon_table"></i>Order</h3>
53
			<ol class="breadcrumb">
22116 amit.gupta 54
				<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
21987 kshitij.so 55
				<li><i class="icon_table"></i>ORDER</li>						  	
56
			</ol>
57
		</div>
58
</div>
59
<form id="cd">
22245 ashik.ali 60
 
21987 kshitij.so 61
<div id="order-details" style="background:white;background-color:white;">
62
#if($cartObj.size()==0)
63
	<div class="card row"
64
		<p>Your Cart is Empty.</p>	
65
	</div>
66
#else
67
<h4 class="modelHeaderCustom" style="text-align:center;font-size:22px;margin-bottom:3%;">Product Information</h4>
22219 ashik.ali 68
	<div class = "row">
69
		<div class="table-responsive">
70
	  		<table class="table">
71
	    		<tr>
72
	    			<td><h4 class="grnProductInfo modelHeaderCustom table-align-center">Description</h4></td>
73
	    			<td><h4 class="grnProductInfo modelHeaderCustom table-align-center">Quantity</h4></dt>
74
	    			<td><h4 class="grnProductInfo modelHeaderCustom">Serial Number</h4></td>
75
	    			<td><h4 class="grnProductInfo modelHeaderCustom">Insurance Amount</h4></td>
76
	    			<td><h4 class="grnProductInfo modelHeaderCustom table-align-center">Unit Price</h4></td>
77
	    			<td><h4 class="grnProductInfo modelHeaderCustom table-align-center">Total Price</h4></td>
78
	    		</tr>
22245 ashik.ali 79
 
22219 ashik.ali 80
	    		#foreach ($cartItem in $cartObj)
81
	    			#if($cartItem.getQuantity() == 1)
82
	    				<tr>
83
	    					<td>$cartItem.getDisplayName()</td>
84
	    					<td class = "table-align-center">1</td>
85
	    					#if($cartItem.getItemType() =="SERIALIZED")
22245 ashik.ali 86
	    						<td class = "table-align-center"><div class="input-group"><input type="text" itemId="$cartItem.getItemId()" itemType="$cartItem.getItemType()" name="serialNumber" class="serialNumber form-control"></div></td>
87
	    						<td class = "table-align-center"><div class="input-group"><input type="number" itemId="$cartItem.getItemId()" placeholder="" id="insuranceAmount" name="insuranceAmount"  class="insuranceAmount form-control"></div></td>
22219 ashik.ali 88
	    					#else
22245 ashik.ali 89
	    						<td class = "table-align-center"><div class="input-group"><input type="text" name="serialNumber" itemType="$cartItem.getItemType()" class="serialNumber form-control" readonly></div></td>
90
	    						<td class = "table-align-center"><div class="input-group"><input type="number" itemId="$cartItem.getItemId()" value = "0" name="insuranceAmount" class="insuranceAmount form-control" readonly></div></td>
22219 ashik.ali 91
	    					#end
22250 ashik.ali 92
	    					#set ($mopPrice = 0)
93
	    					#if($mopPriceMap.get($cartItem.getItemId()) != null)
94
	    						#set ($mopPrice = $mopPriceMap.get($cartItem.getItemId()))
95
	    					#end
96
	    					<td class = "table-align-center"><input type="number" class="unitPrice form-control" name="unitPrice" id = "unitPrice" quantity="$cartItem.getQuantity()" itemId="$cartItem.getItemId()" placeholder="$mopPrice - MRP"></td>
22245 ashik.ali 97
							<td class = "table-align-center"><input name="totalPrice" class="totalPrice form-control" itemId="$cartItem.getItemId()" type="number" value="0" readonly></td>	    				
22219 ashik.ali 98
						</tr>
99
					#else
22245 ashik.ali 100
						#if($cartItem.getItemType() =="SERIALIZED")
101
							#set($start = 1)
102
							#set($end   = $cartItem.getQuantity())
103
							#set($range = [$start..$end])
104
 
105
							#foreach ($index in $range)
106
								<tr>
107
									<td>$cartItem.getDisplayName()</td>
108
		    						<td class = "table-align-center">1</td>
109
	    							<td class = "table-align-center"><div class="input-group"><input type="text" itemId="$cartItem.getItemId()" itemType="$cartItem.getItemType()" name="serialNumber" class="serialNumber form-control"></div></td>
110
	    							<td class = "table-align-center"><div class="input-group"><input type="number" itemId="$cartItem.getItemId()" placeholder="" name="insuranceAmount" class="insuranceAmount form-control"></div></td>
22250 ashik.ali 111
	    							#set ($mopPrice = 0)
112
	    							#if($mopPriceMap.get($cartItem.getItemId()) != null)
113
	    								#set ($mopPrice = $mopPriceMap.get($cartItem.getItemId()))
114
	    							#end
115
	    							<td class = "table-align-center"><input type="number" class="unitPrice" name="unitPrice" quantity="1" value="0" itemId="$cartItem.getItemId()" placeholder="$mopPrice - MRP"></td>
22245 ashik.ali 116
									<td class = "table-align-center"><input name="totalPrice" class="totalPrice" itemId="$cartItem.getItemId()" type="number" value="0" readonly></td>
117
								</tr>
118
							#end
119
						#else
120
							<td>$cartItem.getDisplayName()</td>
121
		    				<td class = "table-align-center">$cartItem.getQuantity()</td>
122
							<td class = "table-align-center"><div class="input-group"><input type="text" itemId="$cartItem.getItemId()" name="serialNumber" itemType="$cartItem.getItemType()" class="serialNumber form-control" readonly></div></td>
123
	    					<td class = "table-align-center"><div class="input-group"><input type="number" itemId="$cartItem.getItemId()" value = "0" name="insuranceAmount" class="insuranceAmount form-control" readonly></div></td>
22250 ashik.ali 124
	    					#set ($mopPrice = 0)
125
	    					#if($mopPriceMap.get($cartItem.getItemId()) != null)
126
	    						#set ($mopPrice = $mopPriceMap.get($cartItem.getItemId()))
127
	    					#end
128
	    					<td class = "table-align-center"><input type="number" class="unitPrice" name="unitPrice" quantity="$cartItem.getQuantity()" value="0" itemId="$cartItem.getItemId()" placeholder="$mopPrice - MRP"></td>
22245 ashik.ali 129
							<td class = "table-align-center"><input name="totalPrice" class="totalPrice" itemId="$cartItem.getItemId()" type="number" value="0" readonly></td>
22219 ashik.ali 130
						#end
131
	    			#end
132
	    		#end
133
	  		</table>
21987 kshitij.so 134
		</div>
22219 ashik.ali 135
	</div>
136
 
21987 kshitij.so 137
</div>
138
#end
22245 ashik.ali 139
<div id="customer-details" style="background:white;background-color:white;padding:1%;">
140
	<h4 class="modelHeaderCustom" style="text-align:center;font-size:22px;margin-bottom:3%;">Customer Information</h4>
141
	<div>
142
		<div class = "row">
143
			<div class="col-lg-2 form-group">
144
			   	<input placeholder="First Name" id="name" name="firstName" type="text" value="" class="form-control">
145
			</div>
146
			<div class="col-lg-2 form-group">
147
			   	<input placeholder="Last Name" id="name" name="lastName" type="text" value="" class="form-control">
148
			</div>
149
			<div class="col-lg-3 form-group">
150
				<input placeholder="Email" id="email" name="email" type="text" value="" class="form-control">
151
			</div>
152
			<div class="col-lg-3 form-group">
153
				<input placeholder = "Phone Number" id="phone" name="phone" type="text" value="" class="form-control">
154
			</div>
155
			<div class="col-lg-2 form-group">
156
				<input placeholder = "Date Of Birth" id="dateOfBirth" name="dateOfBirth" type="date" value="" class="form-control">
157
			</div>
158
 
159
		</div>
160
		<div class = "row">
161
			<div class="col-lg-4 form-group">
162
				<input placeholder="Alternate Phone Number" id="alternatePhone" name="alternatePhone" type="text"  value="" class="form-control">
163
			</div>
164
			<div class="col-lg-4 form-group">
165
			 	<input placeholder="Address Line 1" id="line1" name="line1" type="text" size="50" value="" class="form-control">
166
			</div>
167
			<div class="col-lg-4 form-group">
168
				<input placeholder="Address Line 2" id="line2" name="line2" type="text" value="" class="form-control">
169
			</div>
170
		</div>
171
		<div class = "row">
172
			<div class="col-lg-3 form-group">
173
				<input placeholder="Landmark" id="landmark" name="landmark" type="text" value="" class="form-control">
174
			</div>
175
			<div class="col-lg-2 form-group">
176
				<input placeholder="Pin Code" id="pinCode" name="pinCode" type="number" value="" class="form-control">
177
			</div>
178
			<div class="col-lg-3 form-group">
179
				<input placeholder="City" id="city" name="city" type="text" value="" class="form-control">
180
			</div>
181
			<div class="col-lg-4 form-group">
182
				<select class="form-control" name = "state" placeholder="State">
183
             		<option value="Andaman and Nicobar Islands">Andaman and Nicobar Islands</option>
184
                    <option value="Andhra Pradesh">Andhra Pradesh</option>
185
                    <option value="Arunachal Pradesh">Arunachal Pradesh</option>
186
                    <option value="Assam">Assam</option>
187
                    <option value="Bihar">Bihar</option>
188
                    <option value="Chandigarh">Chandigarh</option>
189
                    <option value="Chhattisgarh">Chhattisgarh</option>
190
                    <option value="Dadra and Nagar Haveli">Dadra and Nagar Haveli</option>
191
                    <option value="Daman and Diu">Daman and Diu</option>
192
                    <option value="Delhi">Delhi</option>
193
                    <option value="Goa">Goa</option>
194
                    <option value="Gujarat">Gujarat</option>
195
                    <option value="Haryana">Haryana</option>
196
                    <option value="Himachal Pradesh">Himachal Pradesh</option>
197
                    <option value="Jammu and Kashmir">Jammu and Kashmir</option>
198
                    <option value="Jharkhand">Jharkhand</option>
199
                    <option value="Karnataka">Karnataka</option>
200
                    <option value="Kerala">Kerala</option>
201
                    <option value="Lakshadweep">Lakshadweep</option>
202
                    <option value="Madhya Pradesh">Madhya Pradesh</option>
203
                    <option value="Maharashtra">Maharashtra</option>
204
                    <option value="Manipur">Manipur</option>
205
                    <option value="Meghalaya">Meghalaya</option>
206
                    <option value="Mizoram">Mizoram</option>
207
                    <option value="Nagaland">Nagaland</option>
208
                    <option value="Orissa">Orissa</option>
209
                    <option value="Pondicherry">Pondicherry</option>
210
                    <option value="Punjab">Punjab</option>
211
                    <option value="Rajasthan">Rajasthan</option>
212
                    <option value="Sikkim">Sikkim</option>
213
                    <option value="Tamil Nadu">Tamil Nadu</option>
214
                    <option value="Tripura">Tripura</option>
215
                    <option value="Telangana">Telangana</option>
216
                    <option value="Uttaranchal">Uttaranchal</option>
217
                    <option value="Uttar Pradesh">Uttar Pradesh</option>
218
                    <option value="West Bengal">West Bengal</option>
219
                </select>
220
			</div>
221
     	</div>
222
</div>
21987 kshitij.so 223
<div id="payment-details" style="background:white;background-color:white;">
224
	<div class="row">
225
		<div class="col-lg-6 right">
226
			<div class="col-lg-6">
227
				<h4 class="grnProductInfo modelHeaderCustom right">Net Payable Amount :</h4>
228
			</div>
229
			<div class="col-lg-6">
230
				<input type="number" class="netPayableAmount form-control" name="" value="0" readonly class="form-control">
231
			</div>
232
		</div>
233
	</div>
234
	<p></p>
235
	<div class="row">
236
		<div class="col-lg-6 right">
237
			<div class="col-lg-6">
238
				<h4 class="grnProductInfo modelHeaderCustom right">Cash Amount:</h4>
239
			</div>
240
			<div class="col-lg-6">
241
				<input type="number" name="CASH" class="form-control cashAmount amount" value="0">
242
			</div>
243
		</div>
244
	</div>
245
	<p></p>
246
	<div class="row">
247
		<div class="col-lg-6 right">
248
			<div class="col-lg-6">
249
				<h4 class="grnProductInfo modelHeaderCustom right">Debit/Credit Card Amount:</h4>
250
			</div>
251
			<div class="col-lg-6">
252
				<input type="number" name="CARD" class="form-control cardAmount amount" value="0">
253
			</div>
254
		</div>
255
	</div>
256
	<p></p>
257
	<div class="row">
258
		<div class="col-lg-6 right">
259
			<div class="col-lg-6">
260
				<h4 class="grnProductInfo modelHeaderCustom right">PayTm Amount:</h4>
261
			</div>
262
			<div class="col-lg-6">
263
				<input type="number" name="PAYTM" class="form-control walletAmount amount" value="0">
264
			</div>
265
		</div>
266
	</div>
267
	</div>
268
</div>
269
<div id="create-order" style="padding:10px;">
270
	<div class="row">
271
		<div class="col-xs-3" style="float:right;">
272
			<button class="btn btn-primary order-checkout" type="submit" style="width:100%;border-radius:0px;">Create Order</button>	
273
		</div>
274
	</div>
275
</div>
276
</form>
277
</section>
22245 ashik.ali 278
<script type="text/javascript" src="${rc.contextPath}/resources/js/order.js"></script>