Subversion Repositories SmartDukaan

Rev

Rev 17794 | Rev 17882 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 17794 Rev 17843
Line 1... Line 1...
1
<script>
1
<script>
2
	$(document).ready(function(){
2
	$(document).ready(function(){
3
			
3
			
4
		$("#state").val('<?php echo $getstateval;?>');
4
		$("#state").val('<?php echo $getstateval;?>');
-
 
5
 
-
 
6
		 $('#pin').keyup(function(){
-
 
7
            var pin_val = $(this).val();
-
 
8
            if(pin_val.length == 6){
-
 
9
                $.ajax({
-
 
10
                    method: "GET",
-
 
11
                    url:  "<?php echo $base_url;?>shippings/getstate/"+pin_val,
-
 
12
                },'json')
-
 
13
                .done(function(msg){ 
-
 
14
                	// alert(msg);
-
 
15
                	msg = eval('('+msg+')');
-
 
16
                	if(msg=="{}")                  
-
 
17
                	{
-
 
18
                		$("#cities").empty();
-
 
19
                		$("#state").val("");		
-
 
20
                	}
-
 
21
                	else
-
 
22
                	{
-
 
23
                		// msg = eval('('+msg+')');
-
 
24
                		$("#state").val(msg['state']);
-
 
25
                		$("#cities").empty();
-
 
26
                		for(var i in msg['cities']){
-
 
27
                			var html = "<option value="+msg['cities'][i]+">"+msg['cities'][i]+"</option>"
-
 
28
                			$("#cities").append(html);
-
 
29
                		}	
-
 
30
                	}
-
 
31
                    
-
 
32
                });                     
-
 
33
            } 
-
 
34
            else{
-
 
35
            	$("#cities").empty();
-
 
36
            	$("#state").val("");
-
 
37
            }
-
 
38
        });
-
 
39
 
-
 
40
 
5
		$('#submitdata').click(function(){
41
		$('#submitdata').click(function(){
6
			
42
			
7
			if($('#pin').val().length!=6)
43
			if($('#pin').val().length!=6)
8
			{
44
			{
9
				$("#pin").next().html('Invalid Pin');
45
				$("#pin").next().html('Invalid Pin');
Line 46... Line 82...
46
 
82
 
47
* {
83
* {
48
  padding: 0;
84
  padding: 0;
49
  margin: 0;
85
  margin: 0;
50
}
86
}
51
a {
-
 
52
  text-decoration: none;
-
 
53
  -webkit-tap-highlight-color: rgba(0,0,0,0.1);
-
 
54
  color: #000;
-
 
55
}
-
 
56
input,
-
 
57
select,
-
 
58
a,
-
 
59
div {
-
 
60
  -webkit-tap-highlight-color: rgba(0,0,0,0.2);
-
 
61
}
-
 
62
input:active,
-
 
63
select:active,
-
 
64
a:active,
-
 
65
.btn:active {
-
 
66
  background: rgba(0,0,0,0.2);
-
 
67
}
-
 
68
 
87
 
69
 
88
 
70
input {
-
 
71
  outline: 0;
-
 
72
  -webkit-appearance: none;
-
 
73
  -moz-appearance: none;
-
 
74
  -o-appearance: none;
-
 
75
  appearance: none;
-
 
76
}
-
 
77
 
89
 
78
select {
-
 
79
  -webkit-appearance: none;
-
 
80
  -moz-appearance: none;
-
 
81
  -o-appearance: none;
-
 
82
  appearance: none;
-
 
83
}
-
 
84
 
90
 
85
 
91
 
86
* html .clearfix {
-
 
87
  height: 1px;
-
 
88
}
92
 
89
select::-ms-expand {
-
 
90
  display: none;
-
 
91
  color: #ffffff;
-
 
92
}
-
 
93
select::selection {
-
 
94
  background-color: black;
-
 
95
}
-
 
96
input[type="checkbox"]::-ms-check {
-
 
97
  display: none;
-
 
98
}
-
 
99
 
93
 
100
select {
94
select {
101
  width: 100%;
95
  width: 100%;
102
  appearance: none;
96
  appearance: none;
103
  -webkit-appearance: none;
97
  -webkit-appearance: none;
Line 163... Line 157...
163
  border: #58d936 solid 1px;
157
  border: #58d936 solid 1px;
164
  color: #555;
158
  color: #555;
165
  border-radius: 6px;
159
  border-radius: 6px;
166
  outline: none;
160
  outline: none;
167
  padding: 5px;
161
  padding: 5px;
168
  display: block;
162
  /*display: block;*/
169
  box-sizing: border-box;
163
  box-sizing: border-box;
170
  -webkit-box-sizing: border-box;
164
  -webkit-box-sizing: border-box;
171
  -moz-box-sizing: border-box;
165
  -moz-box-sizing: border-box;
172
  font: normal 1.2em Helvetica, Arial, sans-serif;
166
  font: normal 1.2em Helvetica, Arial, sans-serif;
173
  /*margin: 2px 0 8px 0;*/
167
  /*margin: 2px 0 8px 0;*/
Line 205... Line 199...
205
			<div class="shipping-cont">
199
			<div class="shipping-cont">
206
			<div id="error" class="error_msg" style="display:none">
200
			<div id="error" class="error_msg" style="display:none">
207
       		</div>
201
       		</div>
208
			<form method="post" action="<?php echo $base_url;?>shippings/add" name='form2' id='form2' class="address-form" 
202
			<form method="post" action="<?php echo $base_url;?>shippings/add" name='form2' id='form2' class="address-form" 
209
				<fieldset>
203
				<fieldset>
210
					<legend>Add New Address: <input type="submit" name="submit" value="Save" class='btn btn-success' id='form_submit' style='float:right;'/></legend>
204
					<h4>Add New Address: <input type="submit" name="submit" value="Save" class='btn btn-success' id='form_submit' style='float:right;'/></h4>
-
 
205
 
211
					<label>Name<span>*</span></label>
206
					<!-- <label>Name<span>*</span></label> -->
212
					<input type="text" id="" name="name" placeholder= "<?php echo $_COOKIE['name'];?>"/>
207
					<input type="text" id="" name="name" placeholder="Enter name*" value="<?php echo $_COOKIE['name'];?>" required/>
213
					<label>Address<span>*</span></label>
208
					<!-- <label>Address<span>*</span></label> -->
214
					<textarea rows="2" id="line1" name="line1" required></textarea>
209
					<textarea rows="2" id="line1" name="line1" placeholder="Address*" required></textarea>
215
					<!-- <input type="text" id="line1" name="line1" required/> -->
210
					<!-- <input type="text" id="line1" name="line1" required/> -->
216
 
211
 
217
					<div class='row' style='padding-bottom:5px'> 
212
					<div class='row' style='padding-bottom:5px'> 
218
						<div class='col-xs-6' style='padding:0px 5px 0px 0px ;'>
213
						<div class='col-xs-6' style='padding:0px 5px 0px 0px ;'>
219
							<label>City<span>*</span></label>
214
							<!-- <label>City<span>*</span></label> -->
-
 
215
							<datalist id="cities">
-
 
216
							</datalist>
220
							<input type="text" id="city" name="city" required/>
217
							<input type="text" placeholder="City*" id="city" name="city" list="cities" required/>
221
 
218
 
222
							<label>Phone<span>*</span></label>
219
							<!-- <label>Phone<span>*</span></label> -->
223
							<input type="text" id="phone" name="phone" pattern="\d.{9,9}" required title="Invalid Phone number.."/>
220
							<input type="text" id="phone" placeholder="Contact number*" name="phone" pattern="\d.{9,9}" required title="Invalid Phone number.."/>
224
						</div>
221
						</div>
225
						<div class='col-xs-6' style='padding:0px 0px 0px 5px ;'>
222
						<div class='col-xs-6' style='padding:0px 0px 0px 5px ;'>
226
							<label>State<span>*</span></label>
223
							<!-- <label>State<span>*</span></label> -->
227
							<select id="state" name="state" required>
224
							<select id="state" name="state" required>
228
								<option value="">Select State</option>
225
								<option value="">Select State</option>
229
								<option value="Andaman &amp; Nicobar Island">Andaman &amp; Nicobar Island</option>
226
								<option value="Andaman &amp; Nicobar Island">Andaman &amp; Nicobar Island</option>
230
								<option value="Andhra Pradesh">Andhra Pradesh</option>
227
								<option value="Andhra Pradesh">Andhra Pradesh</option>
231
								<option value="Arunachal Pradesh">Arunachal Pradesh</option>
228
								<option value="Arunachal Pradesh">Arunachal Pradesh</option>
Line 261... Line 258...
261
								<option value="Uttar Pradesh">Uttar Pradesh</option>
258
								<option value="Uttar Pradesh">Uttar Pradesh</option>
262
								<option value="Uttarakhand">Uttarakhand</option>
259
								<option value="Uttarakhand">Uttarakhand</option>
263
								<option value="West Bengal">West Bengal</option>
260
								<option value="West Bengal">West Bengal</option>
264
							</select>
261
							</select>
265
 
262
 
266
							<label>Pincode<span>*</span></label>
263
							<!-- <label>Pincode<span>*</span></label> -->
267
							<input placeholder='<?php echo $_COOKIE['pin'];?>' type="text" id="pin" name="pin" pattern="\d.{5,5}" title="Invalid Pin" />
264
							<input placeholder="Pincode*" required value='<?php echo $_COOKIE['pin'];?>' type="text" id="pin" name="pin" pattern="\d.{5,5}" title="Invalid Pin" />
268
						</div>
265
						</div>
269
					</div>
266
					</div>
270
					
-
 
271
					
-
 
272
					
-
 
273
					
-
 
274
	
-
 
275
					
-
 
276
					<span style='color:red;'></span>
-
 
277
					
-
 
278
				</fieldset>
267
				</fieldset>
279
			</form>
268
			</form>
280
 
269
 
281
 
270
 
282
		</div>
271
		</div>
283
	</div>
272
	</div>
284
 
273
 
285
 
274
 
286
		<div class='row' style='padding:0px;' id='footer'>
275
		<div class='row' style='padding:0px;' id='footer'>
287
			<div class='col-xs-12' style='background-color:white;padding:5px; width:100%;'>
276
			<!-- <div class='col-xs-12' style='background-color:white;padding:5px; width:100%;'> --><div class="col-xs-12 navbar-fixed-bottom pmfooter">
288
				<h4>Total payable Amount: Rs. 1000000/-<br>
277
				<h4>Total payable Amount: Rs. 1000000/-<br>
289
					<a href="#" style='	padding-right:2px;color:blue;font-size:15px;'>Other Pay Option</a>
278
					<a href="#" style='	padding-right:2px;color:blue;font-size:15px;'>Other Pay Option</a>
290
					<button class='btn btn-success' style='float:right;'>Confirm Order via COD</button>
279
					<!-- <button class='btn btn-success' style='float:right;'>Confirm Order via COD</button> -->
-
 
280
					<button type="button" class="btn btn-md pull-right checkout">Confirm Order via COD</button>
291
					
281
					
292
				</div>
282
				</div>
293
			</div>
283
			</div>
294
</div>
284
</div>
295
285