Subversion Repositories SmartDukaan

Rev

Rev 19061 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
18899 naman 1
<style>
2
	td:first-child { background-color: #F9FCF7; border:1px solid white;}
3
	td{
4
	padding:2px;
5
    border:1px solid #e6e6e6;
6
}
18949 naman 7
 
8
#pindet,#citydet,#phonedet{
9
  width: 100%;
10
  appearance: none;
11
  -webkit-appearance: none;
12
  -moz-appearance: none;
13
  border: #58d936 solid 1px;
14
  color: #555;
15
  border-radius: 6px;
16
  outline: none;
17
  padding: 2px;
18
  /*display: block;*/
19
  box-sizing: border-box;
20
  -webkit-box-sizing: border-box;
21
  -moz-box-sizing: border-box;
22
  font: 15px Helvetica, Arial, sans-serif;
23
  /*margin: 2px 0 8px 0;*/
24
   margin: 2px 0 0px 0;
25
}
18899 naman 26
</style>
18956 naman 27
 
18971 naman 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']){
19061 naman 50
        			var html = '<option value="'+msg['cities'][i]+'"></option>';
18971 naman 51
        			$("#cities").append(html);
52
        		}	
53
        	}
54
 
55
        });   
56
	}                  
57
});
58
</script>
59
<input type="hidden" value = "<?php echo $pincheck;?>" id="pincheck">
18956 naman 60
 
18997 naman 61
<?php //debug($tinres);?>
18971 naman 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 -->
71
 
18916 naman 72
<?php //debug($tinres);?>
18899 naman 73
<?php if(isset($tinres['isError']) && $tinres['isError']== false):?>
74
	<div class='row card'>
75
		<div class='col-xs-12' style="padding:0px;">
76
 
18916 naman 77
				<table cellpadding="1" cellspacing="1" width="100%">
18899 naman 78
					<tr width="100%"> 
79
					      <td width="100%" colspan="2" style="border:1px solid #58d936;">
80
					      	<div align="center">
81
					      		<strong>Retailer details by TIN : <?php echo $tin_num; ?></strong>
82
					      	</div>
83
					      </td>
84
	    			</tr>
85
 
86
					<?php if(isset($tinres['counter_name']) && !empty($tinres['counter_name'])):?>
87
						<tr>
88
							<td><strong>Counter Name</strong></td><td><?php echo $tinres['counter_name'];?></td>
89
						</tr>
90
					<?php endif;?>
91
					<?php if(isset($tinres['counter_address']) && !empty($tinres['counter_address'])):?>
92
						<tr>
93
							<td><strong>Counter Address</strong></td><td><?php echo $tinres['counter_address'];?></td>
94
						</tr>
95
					<?php endif;?>
96
					<?php if(isset($tinres['state']) && !empty($tinres['state'])):?>
97
						<tr>
18971 naman 98
							<td><strong>State</strong></td><td id="tinstate"><?php echo $tinres['state'];?></td>
18899 naman 99
						</tr>
100
					<?php endif;?>
101
					<?php if(isset($tinres['pan']) && !empty($tinres['pan'])):?>
102
						<tr>
103
							<td><strong>PAN</strong></td><td><?php echo $tinres['pan'];?></td>
104
						</tr>
105
					<?php endif;?>
106
					<?php if(isset($tinres['registered_on']) && !empty($tinres['registered_on'])):?>
107
						<tr>
108
							<td><strong>Date of Registration</strong></td><td><?php echo $tinres['registered_on'];?></td>
109
						</tr>
110
					<?php endif;?>
111
 
112
				</table>
18949 naman 113
 
114
				<datalist id="cities"></datalist>
115
				<div class= "row" style="padding:5px 0px;">
116
					<div class="col-xs-6" style='padding:0px 5px 0px 0px ;'>
18956 naman 117
 
19063 naman 118
						<input type="text" id="pindet" placeholder="Enter your pin*" autocomplete="off" value = "<?php if(isset($tinres['pin_required']) && $tinres['pin_required'] == false):?><?php echo $tinres['pin'];?><?php endif;?>" class="<?php if(isset($tinres['pin_required']) && $tinres['pin_required'] == false):?>hidden<?php endif;?>">
18956 naman 119
 
120
						<input type="text" id="phonedet" placeholder="Enter your phone*" autocomplete="off" value = "<?php echo $phone_number;?>">
18949 naman 121
					</div>
122
 
123
					<div class="col-xs-6" style='padding:0px 0px 0px 5px ;'>
18956 naman 124
						<input type="text" placeholder="Select city*" id="citydet" name="city" list="cities" class="<?php if(isset($tinres['pin_required']) && $tinres['pin_required'] == true):?>hidden<?php endif;?>" autocomplete="off"/>
18949 naman 125
						<input type="hidden" id="tinres" <?php printf('data-tinres = "%s"',htmlspecialchars(json_encode($tinres), ENT_QUOTES, 'UTF-8'));?>>
126
					</div>
127
				</div>
128
 
18899 naman 129
				<div class="row">
130
 
131
					<?php if(isset($tinres['state']) && !empty($tinres['state'])):?>
18910 naman 132
						<div style="border:1px solid #58d936; padding:2px;margin-bottom:5px;font-size:12px;">
18899 naman 133
							<?php if(trim($tinres['state']) == "Delhi"):?>	
18910 naman 134
								<div style="line-height: 15px;">
18956 naman 135
									<b>*</b> You will get tax invoice for orders shipped to counter address mentioned above.<br>
136
									<b>*</b> Available only on purchase through ProfitMandi and billed by Saholic.com.
18910 naman 137
								</div>
138
								<div style="line-height: 15px;margin-top: 4px;">
18974 naman 139
									<b>*</b> आपको उपरोक्त काउंटर के पते पर दिए गए ऑर्डरों पर ही आपको टैक्स बिल मिलेगा।<br> 
18956 naman 140
									<b>*</b>ProfitMandi से खरीदने पर और Saholic.com द्वारा बिलिंग पर उपलब्ध  है ।
18910 naman 141
								</div>
18899 naman 142
							<?php else:?>
18910 naman 143
								<div style="line-height: 15px;">
144
									<b>*</b> <span style="color:red;">Tax invoice is only available in Delhi</span>. We will get back to you when tax invoice is available in <?php echo $tinres['state'];?>.
145
								</div>
146
								<div style="line-height: 15px;margin-top: 4px;">				
18975 naman 147
									<b>*</b> <span style="color:red;">टैक्स बिल केवल दिल्ली में उपलब्ध है</span>।<?php echo $tinres['state'];?> में टैक्स बिल उपलब्ध होते ही आपसे संपर्क किया जाएगा। 
18910 naman 148
								</div>	
18899 naman 149
							<?php endif;?>
150
						</div>
151
					<?php endif;?>
152
 
18910 naman 153
					<div class= "col-xs-12 text-center" style="margin-bottom: 5px;">
18916 naman 154
					<?php $query = http_build_query(array('aParam' => $tinres)); ?>
155
					<?php //debug($query);?>
18899 naman 156
						<!--  <button type="button" class="btn btn-sm" style="background-color:#58d936;color:white;float:right;">Not OK</button>-->	
18949 naman 157
						<!--<a href="<?php //echo $base_url;?>tins/confirm/?<?php //echo $query;?>">-->
158
							<button type="button" class="btn btn-sm" style="background-color:#58d936;color:white;" id="submit_det">
18899 naman 159
							<?php if(isset($tinres['state']) && !empty($tinres['state']) && trim($tinres['state']) == "Delhi"):?>	
160
								Confirm to get tax invoice
161
							<?php else:?>
162
								Confirm your tax details
163
							<?php endif;?>
164
							</button>	
18949 naman 165
						<!--</a>-->
18910 naman 166
					</div>				
167
				</div>				
18899 naman 168
		</div>
169
 
170
	</div>
171
 
172
	<div class="row card" style="padding:0px;">
18910 naman 173
			<div class="col-xs-12" style="padding: 5px;font-size:12px;">
174
				<div style="line-height: 15px;">
175
					<b>#</b> In case your tax details are incorrect or you want to change your shipping address, send your TIN RC copy to <b>help@profitmandi.com</b> from your registered email 
176
					<?php if(isset($user_email) && !empty($user_email)){
177
						echo "<b>".$user_email."</b>";
178
					}?>
179
					.
180
				</div>
181
				<div style="line-height:15px;margin-top: 4px;">
182
					<b>#</b> अगर आपका विवरण गलत है या आप अपना शिपिंग पता बदलवाना चाहते है तो अपनी टिन आर सी की प्रतिलिपि  <b>help@profitmandi.com</b> पर अपने रजिस्टर्ड ईमेल 
183
					<?php if(isset($user_email) && !empty($user_email)){
184
						echo "<b>".$user_email."</b> ";
185
					}?>
186
					से भेजे। 
187
				</div>
18899 naman 188
			</div>
189
	</div>
190
 
191
	<?php else: ?>
192
				<br>
193
				<div class = "card" style="text-align:center;padding-bottom:5px;"><?php echo $tinres['errorMsg'];?></div>
194
				<br><br>
18949 naman 195
	<?php endif; ?>