Subversion Repositories SmartDukaan

Rev

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

Rev 18956 Rev 18971
Line 23... Line 23...
23
  /*margin: 2px 0 8px 0;*/
23
  /*margin: 2px 0 8px 0;*/
24
   margin: 2px 0 0px 0;
24
   margin: 2px 0 0px 0;
25
}
25
}
26
</style>
26
</style>
27
 
27
 
-
 
28
<script>
-
 
29
$(document).ready(function(){
-
 
30
	var checkpin ="<?php echo $pincheck;?>";	
-
 
31
	console.log(checkpin);
-
 
32
	if(checkpin != "nothing"){
-
 
33
		console.log("Hello");
-
 
34
        $.ajax({
-
 
35
            method: "GET",
-
 
36
            url:  "<?php echo $base_url;?>shippings/getstate/"+checkpin,
-
 
37
        },'json')
-
 
38
        .done(function(msg){ 
-
 
39
        	msg = eval('('+msg+')');
-
 
40
        	if(msg=="{}")                  
-
 
41
        	{
-
 
42
        		$("#cities").empty();
-
 
43
//         		$("#state").val("");		
-
 
44
        	}
-
 
45
        	else
-
 
46
        	{
-
 
47
//         		$("#state").val(msg['state']);
-
 
48
        		$("#cities").empty();
-
 
49
        		for(var i in msg['cities']){
-
 
50
        			var html = "<option value="+msg['cities'][i]+">"+msg['cities'][i]+"</option>"
-
 
51
        			$("#cities").append(html);
-
 
52
        		}	
-
 
53
        	}
-
 
54
            
-
 
55
        });   
-
 
56
	}                  
-
 
57
});
-
 
58
</script>
-
 
59
<input type="hidden" value = "<?php echo $pincheck;?>" id="pincheck">
-
 
60
 
-
 
61
<?php debug($tinres);?>
-
 
62
<div class="modal fade" id="tinModal">
-
 
63
  <div class="modal-dialog">
-
 
64
    <div class="modal-content" style="background-color: #f0f0f0;color: #555;border:2px solid #58d936;">
-
 
65
      <div class="modal-body">
-
 
66
        <p id="tin_response" style="color:#555;" class="text-center"></p>
-
 
67
      </div>
-
 
68
    </div><!-- /.modal-content -->
-
 
69
  </div><!-- /.modal-dialog -->
-
 
70
</div><!-- /.modal -->
28
 
71
 
29
<?php //debug($tinres);?>
72
<?php //debug($tinres);?>
30
<?php if(isset($tinres['isError']) && $tinres['isError']== false):?>
73
<?php if(isset($tinres['isError']) && $tinres['isError']== false):?>
31
	<div class='row card'>
74
	<div class='row card'>
32
		<div class='col-xs-12' style="padding:0px;">
75
		<div class='col-xs-12' style="padding:0px;">
Line 50... Line 93...
50
							<td><strong>Counter Address</strong></td><td><?php echo $tinres['counter_address'];?></td>
93
							<td><strong>Counter Address</strong></td><td><?php echo $tinres['counter_address'];?></td>
51
						</tr>
94
						</tr>
52
					<?php endif;?>
95
					<?php endif;?>
53
					<?php if(isset($tinres['state']) && !empty($tinres['state'])):?>
96
					<?php if(isset($tinres['state']) && !empty($tinres['state'])):?>
54
						<tr>
97
						<tr>
55
							<td><strong>State</strong></td><td><?php echo $tinres['state'];?></td>
98
							<td><strong>State</strong></td><td id="tinstate"><?php echo $tinres['state'];?></td>
56
						</tr>
99
						</tr>
57
					<?php endif;?>
100
					<?php endif;?>
58
					<?php if(isset($tinres['pan']) && !empty($tinres['pan'])):?>
101
					<?php if(isset($tinres['pan']) && !empty($tinres['pan'])):?>
59
						<tr>
102
						<tr>
60
							<td><strong>PAN</strong></td><td><?php echo $tinres['pan'];?></td>
103
							<td><strong>PAN</strong></td><td><?php echo $tinres['pan'];?></td>