Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
517 rajveer 1
#set($Integer = 0)
2
#if($defaultAddressId)
3
	#set($defaultid = $Integer.parseInt($defaultAddressId))
4
#else
5
	#set($defaultid = 0)
6
#end
7
 
8
<!-- Add Shipping Detail Start-->
794 rajveer 9
 
10
<div id="registration">
11
  <div class="top">
12
    <div class="left">
13
      <div class="right"> &nbsp; </div>
507 rajveer 14
    </div>
794 rajveer 15
  </div>
16
  <div class="middle">
17
    <div class="mid-inner">
18
 
19
      <!-- Block 1 -->
20
      <div class="padding-top17">
839 vikas 21
				#if(!$errorMsg.isEmpty())
22
                <div id="messageError">
23
                    <span></span>
24
                    <p>
25
                        $errorMsg <br/>
26
                    </p>
27
                </div>
28
                    #end
29
 
794 rajveer 30
        <!-- Block-1 Left-->
31
        <div class="shipping-block1-L">
839 vikas 32
          <div class="ship-address-block">
33
			<h2>Shipping Address</h2>
794 rajveer 34
            <div class="ship-address-inner" style="height:200px; overflow-y:auto;">
35
              <div id="shipAddressContainer">
861 vikas 36
				            #set($shipAddressEmpty = 1)
517 rajveer 37
							#foreach($address in $addresses)
38
							#if($defaultid == $address.getId())
861 vikas 39
							    #set($shipAddressEmpty = 0)
517 rajveer 40
								#if($address.getName())
794 rajveer 41
                <label>$address.getName()</label><br />
517 rajveer 42
								#end
43
								#if($address.getLine1())
794 rajveer 44
                <label>$address.getLine1() </label><br />
517 rajveer 45
								#end	
46
								#if($address.getLine2())
794 rajveer 47
                <label>$address.getLine2()</label><br />
517 rajveer 48
								#end
49
								#if($address.getCity())	
794 rajveer 50
                <label>$address.getCity()</label><br />
517 rajveer 51
								#end
52
								#if($address.getState())
794 rajveer 53
                <label>$address.getState()</label><br />
517 rajveer 54
								#end
55
								#if($address.getPin())	
794 rajveer 56
                <label>Pin: $address.getPin()</label><br />
517 rajveer 57
								#end
58
								#if($address.getPhone())
794 rajveer 59
                <label>Mob: $address.getPhone() </label><br />
517 rajveer 60
								#end			
61
							#end
62
							#end
1201 varun.gupt 63
 
64
					#if($shipAddressEmpty!=0)
65
                  <p>You do not have a shipping address linked to your profile. Please add one.</p>
66
					#end
794 rajveer 67
              </div>
68
              <div class="ship-address-bttn" style="margin-top: 20px;">
69
                <div class="bigImgButton yellow-image">
1201 varun.gupt 70
					#if($shipAddressEmpty!=0)
1187 varun.gupt 71
                  <input type="button" name="addAdrBtn"  id="addAdrBtn" value="Add Shipping Address" class="button" />
72
					#else
794 rajveer 73
                  <input type="button" name="addAdrBtn"  id="addAdrBtn" value="Ship to Another Address" class="button" />
1187 varun.gupt 74
					#end	
794 rajveer 75
                </div>
839 vikas 76
 
794 rajveer 77
              </div>
78
              <div class="clearBoth"></div>     
79
            </div>
517 rajveer 80
 
794 rajveer 81
          </div>
82
 
83
        </div><!-- Block-1 Left End-->
861 vikas 84
 
85
		        <!-- Block-1 Right-->
86
				#if($items)
87
        <div class="shipping-block1-R" style="overflow-y:auto;">
88
          <table cellpadding="0" cellspacing="0" width="100%" class="estimate-table" >
89
            <thead>
90
              <tr>
91
                <th width="36%">Item</th>
92
                <th width="29%">Delivery Estimate</th>
93
                <th width="10%" class="quantity">Qty.</th>
94
                <th width="25%" class="last">Total Price</th>
95
              </tr>
96
            </thead>
97
            <tbody>
98
							#foreach($item in $items)
99
              <tr>
946 vikas 100
                <td>$item.get("ITEM_NAME") </td>
861 vikas 101
                <td>within $item.get("SHIPPING_TIME") business days</td>
946 vikas 102
                <td class="quantity">$item.get("ITEM_QUANTITY") </td>
103
                <td>Rs. $item.get("TOTAL_PRICE") </td>
861 vikas 104
              </tr>
105
							#end
106
              <tr align="right">
107
                <td colspan="4" class="total-amount">Total Amount: Rs. $totalamount</td>
108
              </tr>
109
            </tbody>
110
          </table>
111
          <div align="right" class="proceed-bttn">
112
            <label class="floatLeft" style="margin-top: 3px;">We accept all major credit cards and debit cards &nbsp;</label>
113
			            #if($shipAddressEmpty==1)
114
					        #set($divButtonClass = "imgDisableButton")
115
							#set($disableButton = "disabled=''")
116
            	        #else
117
							#set($divButtonClass = "bigImgButton")
118
							#set($disableButton = "")
119
						#end
120
 
121
			<div class="$divButtonClass floatLeft yellow-image">
122
              <form action="./order" method="post">
123
                <input type="hidden" id="addressid" name="addressid" value="$defaultid" >
124
                <input $disableButton type="submit" name="btnSearch"  id="" value="Proceed to Pay" class="button"/>
125
              </form>
126
 
127
              <div class="clearBoth"></div>
128
            </div>
129
            <div class="clearBoth"></div>
130
          </div> 
131
        </div>
132
				#else
133
        <div class="shipping-block1-R" style="height:225px; overflow-y:auto;">
134
          <label class="floatLeft" style="margin-top: 3px;">Your cart is empty. &nbsp;</label>
135
        </div>	
136
				#end
137
		<!-- Block-1 Right End-->
138
 
805 rajveer 139
		<div class="floatRight" style="font-size: 10px; margin-top: 10px; color: #999999;">By placing order, you agree to Saholic.com's Privacy Policy and Terms &amp; Conditions.</div>
140
 
794 rajveer 141
        <div class="clearBoth"></div>
142
      </div><!-- Block 1 End-->
143
      <div class="clearBoth"></div>
144
      <!-- Block 2 -->	
145
      <div class="padding-top17" style="display: none;" id="newShipAdr">
146
        <!-- Block 2 Right -->
811 rajveer 147
        <div class="shipping-block2-L">
794 rajveer 148
          <h2 class="mid-innerHeading">Other Addresses on Record</h2>
825 rajveer 149
          <div class="shipping-details-scroller">
794 rajveer 150
 
507 rajveer 151
					#foreach($address in $addresses)
825 rajveer 152
            <div class="ship-address-block-address">
794 rajveer 153
              <div class="ship-address-inner">
154
                <div id="shipAddressContainer$address.getId()">
517 rajveer 155
								#if($address.getName())
794 rajveer 156
                  <label>$address.getName()</label><br />
517 rajveer 157
								#end
158
								#if($address.getLine1())
794 rajveer 159
                  <label>$address.getLine1() </label><br />
517 rajveer 160
								#end	
161
								#if($address.getLine1())
794 rajveer 162
                  <label>$address.getLine2()</label><br />
517 rajveer 163
								#end
164
								#if($address.getCity())	
794 rajveer 165
                  <label>$address.getCity()</label><br />
517 rajveer 166
								#end
167
								#if($address.getState())
794 rajveer 168
                  <label>$address.getState()</label><br />
517 rajveer 169
								#end
170
								#if($address.getPin())	
794 rajveer 171
                  <label>Pin: $address.getPin()</label><br />
517 rajveer 172
								#end
173
								#if($address.getPhone())
794 rajveer 174
                  <label>Mob: $address.getPhone() </label><br />
517 rajveer 175
								#end			
794 rajveer 176
 
177
                </div>	
178
                <div class="ship-address-bttn">
179
                  <div class="bigImgButton yellow-image">
180
                    <input type="submit" name="btnSearch" onclick="changeShipAddress('shipAddressContainer$address.getId()')"  id="" value="Ship to this Address" class="button" />
181
                  </div>
182
                </div>
183
                <div class="clearBoth"></div>     
184
              </div>
185
            </div>
507 rajveer 186
					#end
794 rajveer 187
 
188
          </div>	
189
        </div>
190
 
191
 
192
 
193
        <div class="" style="width:424px; float:left;">
194
          <div class="ship-address-block">
195
            <h2>Specify a New Address</h2>
196
            <div class="ship-address-form">
839 vikas 197
              <form name="frmShippingAddress" id="frmShippingAddress" method="post" action="shipping"> <!-- action="./shipping" -->
794 rajveer 198
                <div class="register-row">
839 vikas 199
                  <label><sup>*</sup><span>Name:</span></label>
794 rajveer 200
                  <div class="imgTextBox textbox-image">
201
                    <input type="text" id="shipName" name="name" value="" class="textbox" />
202
                  </div>
203
                  <div class="clearBoth"></div>
507 rajveer 204
                </div>
794 rajveer 205
                <div class="register-row">
839 vikas 206
                  <label><sup>*</sup><span>Address:</span></label>
794 rajveer 207
                  <div class="imgTextBox textbox-image">
208
                    <input type="text" id="shipAddress1" name="line1" value="" class="textbox" />
209
                  </div>
210
                  <div class="clearBoth"></div>
211
                </div>
212
                <div class="register-row">
213
                  <label>&nbsp;</label>
214
                  <div class="imgTextBox textbox-image">
215
                    <input type="text" id="shipAddress2" name="line2" value="" class="textbox" />
216
                  </div>
217
                  <div class="clearBoth"></div>
218
                </div>
219
                <div class="register-row">
839 vikas 220
                  <label for="state"><sup>*</sup><span>State</span></label>
221
				  <div class="select-list imgTextBox">
222
                  <select class="select_state" name="state" id="shipState">
637 rajveer 223
										#include("templates/stateslist.vm")
794 rajveer 224
                  </select>
839 vikas 225
                  </div>
794 rajveer 226
                  <div class="clearBoth"></div>
227
                </div>
228
                <div class="register-row">
229
                  <label><sup>*</sup><span>City:</span></label>
230
                  <div class="imgTextBox textbox-image">
231
                    <input type="text" id="shipCity" name="city" value="" class="textbox"/>
232
                  </div>
233
                  <div class="clearBoth"></div>
234
                </div>
235
                <div class="register-row">
236
                  <label><sup>*</sup><span>Pin Code:</span></label>
237
                  <div class="imgTextBox textbox-image">
238
                    <input type="text" id="shipPin" name="pincode" value="" class="textbox textbox-pincode" style="width: 60px;" />
239
                  </div>
240
                  <div class="clearBoth"></div>
241
                </div>
242
                <div class="register-row">
243
                  <label><sup>*</sup><span>Phone:</span></label>
244
                  <div class="imgTextBox textbox-image">
245
                    <input type="text" id="shipPhone" name="phone" value="" class="textbox" />
246
                  </div>
247
                  <div class="clearBoth"></div>
248
                </div>
249
                <div class="ship-address-bttn">
811 rajveer 250
                  <div class="form-button-outer first">
251
                    <div class="bigImgButton floatLeft yellow-image">
252
                      <input type="hidden" id="" name="action" value="add" >
253
                      <input type="submit" name="submitAddress"  id="submitAddress" value="Ship to this Address" class="button" />
254
                    </div>
794 rajveer 255
                  </div>
811 rajveer 256
                  <div class="form-button-outer last">
257
                    <div class="bigImgButton floatLeft yellow-image">
258
                      <input type="button" name="btnSearch" onclick="resetShipForm();" id="" value="Cancel" class="button button1" />
259
                    </div>
794 rajveer 260
                  </div>
261
                  <div class="clearBoth"></div>
262
 
263
 
264
                </div>
265
                <div class="clearBoth"></div>
266
              </form>
267
            </div>
268
          </div>
269
        </div><!-- Block 2 Right End-->
270
 
271
        <div class="clearBoth"></div>
272
      </div><!-- Block 2 End-->	
273
      <div class="clearBoth"></div>
274
    </div><!-- mid inner end-->
275
  </div>
276
  <div class="bottom">
277
    <div class="left">
278
      <div class="right"> &nbsp; </div>
507 rajveer 279
    </div>
280
  </div>
794 rajveer 281
</div>
282
<!-- /Add Shipping Detail End-->