| Line -... |
Line 1... |
| - |
|
1 |
<script type="text/javascript">
|
| - |
|
2 |
$(function(){
|
| - |
|
3 |
$('a.mk_activate').on('click', function(){
|
| - |
|
4 |
clickedUserId = $(this).closest('th').find('input').val();
|
| - |
|
5 |
if(isNan((Number)clickedUserId)){
|
| - |
|
6 |
alert("User id should be Number");
|
| - |
|
7 |
return false
|
| - |
|
8 |
}else {
|
| - |
|
9 |
window.location=$(this).attr("href") + "/" + clickedUserId;
|
| - |
|
10 |
return true;
|
| - |
|
11 |
}
|
| 1 |
|
12 |
}
|
| - |
|
13 |
});
|
| - |
|
14 |
</script>
|
| 2 |
<div class="container">
|
15 |
<div class="container">
|
| 3 |
<div class = "row">
|
16 |
<div class = "row">
|
| 4 |
<div class="col-lg-12 table-responsive">
|
17 |
<div class="col-lg-12 table-responsive">
|
| 5 |
<h2><?php echo __('Pending Retailers'); ?></h2>
|
18 |
<h2><?php echo __('Pending Retailers'); ?></h2>
|
| 6 |
|
19 |
|
| Line 11... |
Line 24... |
| 11 |
<th style="text-align:center">Tin</th>
|
24 |
<th style="text-align:center">Tin</th>
|
| 12 |
<th style="text-align:center">Address</th>
|
25 |
<th style="text-align:center">Address</th>
|
| 13 |
<th style="text-align:center">City</th>
|
26 |
<th style="text-align:center">City</th>
|
| 14 |
<th style="text-align:center">State</th>
|
27 |
<th style="text-align:center">State</th>
|
| 15 |
<th style="text-align:center">Comment</th>
|
28 |
<th style="text-align:center">Comment</th>
|
| - |
|
29 |
<th style="text-align:center">User ID</th>
|
| 16 |
<th></th>
|
30 |
<th></th>
|
| 17 |
</tr>
|
31 |
</tr>
|
| 18 |
|
32 |
|
| 19 |
<?php foreach($pending as $pkey => $pvalue):?>
|
33 |
<?php foreach($pending as $pkey => $pvalue):?>
|
| 20 |
<tr>
|
34 |
<tr>
|
| Line 22... |
Line 36... |
| 22 |
<td style="text-align:center"><?php echo $pvalue['Retailer']['tinnumber'];?></td>
|
36 |
<td style="text-align:center"><?php echo $pvalue['Retailer']['tinnumber'];?></td>
|
| 23 |
<td style="text-align:center"><?php echo $pvalue['Retailer']['address'];?></td>
|
37 |
<td style="text-align:center"><?php echo $pvalue['Retailer']['address'];?></td>
|
| 24 |
<td style="text-align:center"><?php echo $pvalue['Retailer']['city'];?></td>
|
38 |
<td style="text-align:center"><?php echo $pvalue['Retailer']['city'];?></td>
|
| 25 |
<td style="text-align:center"><?php echo $pvalue['Retailer']['state'];?></td>
|
39 |
<td style="text-align:center"><?php echo $pvalue['Retailer']['state'];?></td>
|
| 26 |
<td style="text-align:center"><?php echo $pvalue['Retailer']['comments'];?></td>
|
40 |
<td style="text-align:center"><?php echo $pvalue['Retailer']['comments'];?></td>
|
| - |
|
41 |
<td><input type="number"></td>
|
| 27 |
|
42 |
|
| 28 |
<td style="text-align:center">
|
43 |
<td style="text-align:center">
|
| 29 |
<?php //if(!empty($pvalue['Retailer']['tinnumber'])):?>
|
- |
|
| 30 |
<a href="/admin/retailers/retailerverify/<?php echo $pvalue['Retailer']['id']."/".$pvalue['Retailer']['tinnumber'];?>"><button type="button" class="btn btn-success btn-xs">Get Store Info</button></a>
|
44 |
<a href="/admin/retailers/retailerverify/<?php echo $pvalue['Retailer']['id']."/".$pvalue['Retailer']['tinnumber'];?>"><button type="button" class="btn btn-success btn-xs">Get Store Info</button></a>
|
| 31 |
<?php //else:?>
|
- |
|
| 32 |
<!-- <a href ="<?php //echo $base_url."admin/retailers/verifycancel/".$pvalue['Retailer']['id'];?>/verify"><button type = "button" class = "btn btn-success btn-xs">Verify</button></a>
|
45 |
<a class="mk_activate" href="/admin/retailers/retaileractivate/<?php echo $pvalue['Retailer']['id'];?>"><button type="button" class="btn btn-success btn-xs">Activate</button></a>
|
| 33 |
<a href ="<?php //echo $base_url."admin/retailers/verifycancel/".$pvalue['Retailer']['id'];?>/cancel"><button type = "button" class = "btn btn-danger btn-xs">Cancel</button></a>-->
|
- |
|
| 34 |
<?php //endif;?>
|
- |
|
| 35 |
</td>
|
46 |
</td>
|
| 36 |
</tr>
|
47 |
</tr>
|
| 37 |
|
48 |
|
| 38 |
<?php endforeach;?>
|
49 |
<?php endforeach;?>
|
| 39 |
|
50 |
|