| 21010 |
amit.gupta |
1 |
<script type="text/javascript">
|
|
|
2 |
$(function(){
|
|
|
3 |
$('a.mk_activate').on('click', function(){
|
| 21011 |
amit.gupta |
4 |
this.style.pointerEvents = 'none';
|
| 21022 |
amit.gupta |
5 |
clickedUserId = $(this).closest('td').find('input').val();
|
|
|
6 |
if(clickedUserId != ""){
|
|
|
7 |
window.location="/admin/retailers/activate/" + $(this).data("retailerid") + "/" + clickedUserId;
|
|
|
8 |
this.style.pointerEvents = 'auto';
|
|
|
9 |
} else {
|
|
|
10 |
alert("User id is required for activation");
|
|
|
11 |
}
|
| 21011 |
amit.gupta |
12 |
return false;
|
| 21022 |
amit.gupta |
13 |
}
|
| 21010 |
amit.gupta |
14 |
});
|
|
|
15 |
</script>
|
| 19747 |
naman |
16 |
<div class="container">
|
|
|
17 |
<div class = "row">
|
|
|
18 |
<div class="col-lg-12 table-responsive">
|
|
|
19 |
<h2><?php echo __('Pending Retailers'); ?></h2>
|
|
|
20 |
|
|
|
21 |
<table cellpadding="0" cellspacing="0" border="1" class="table table-striped" >
|
|
|
22 |
<tr>
|
|
|
23 |
|
|
|
24 |
<th style="text-align:center">Mobile No.</th>
|
|
|
25 |
<th style="text-align:center">Tin</th>
|
|
|
26 |
<th style="text-align:center">Address</th>
|
|
|
27 |
<th style="text-align:center">City</th>
|
|
|
28 |
<th style="text-align:center">State</th>
|
| 19769 |
naman |
29 |
<th style="text-align:center">Comment</th>
|
| 21010 |
amit.gupta |
30 |
<th style="text-align:center">User ID</th>
|
| 19747 |
naman |
31 |
<th></th>
|
|
|
32 |
</tr>
|
|
|
33 |
|
|
|
34 |
<?php foreach($pending as $pkey => $pvalue):?>
|
|
|
35 |
<tr>
|
|
|
36 |
<td style="text-align:center"><?php echo $pvalue['Retailer']['contact1'];?></td>
|
|
|
37 |
<td style="text-align:center"><?php echo $pvalue['Retailer']['tinnumber'];?></td>
|
|
|
38 |
<td style="text-align:center"><?php echo $pvalue['Retailer']['address'];?></td>
|
|
|
39 |
<td style="text-align:center"><?php echo $pvalue['Retailer']['city'];?></td>
|
|
|
40 |
<td style="text-align:center"><?php echo $pvalue['Retailer']['state'];?></td>
|
| 19769 |
naman |
41 |
<td style="text-align:center"><?php echo $pvalue['Retailer']['comments'];?></td>
|
| 21010 |
amit.gupta |
42 |
<td><input type="number"></td>
|
| 19747 |
naman |
43 |
|
|
|
44 |
<td style="text-align:center">
|
| 21010 |
amit.gupta |
45 |
<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>
|
| 21019 |
amit.gupta |
46 |
<a class="mk_activate" data-retailerid="<?php echo $pvalue['Retailer']['id'];?>" href="javascript:void(0)"><button type="button" class="btn btn-success btn-xs">Activate</button></a>
|
| 19747 |
naman |
47 |
</td>
|
|
|
48 |
</tr>
|
|
|
49 |
|
|
|
50 |
<?php endforeach;?>
|
|
|
51 |
|
|
|
52 |
</table>
|
|
|
53 |
</div>
|
|
|
54 |
</div>
|
|
|
55 |
|
|
|
56 |
</div>
|