Subversion Repositories SmartDukaan

Rev

Rev 21024 | Blame | Compare with Previous | Last modification | View Log | RSS feed

<script type="text/javascript">
$(function(){
        $('a.mk_activate').on('click', function(){
                this.style.pointerEvents = 'none';
                clickedUserId = $(this).closest('tr').find('input').val();
                if(clickedUserId != ""){
                        window.location="/admin/retailers/activate/" + $(this).data("retailerid") + "/" + clickedUserId;
                } else {
                        alert("User id is required for activation");
                        return false;
                }
        });
});
</script>
<div class="container">
        <div class = "row">
                <div class="col-lg-12 table-responsive">
                        <h2><?php echo __('Pending Retailers'); ?></h2>
        
                                <table cellpadding="0" cellspacing="0" border="1" class="table table-striped" >
                                        <tr>
                                                
                                                <th style="text-align:center">Mobile No.</th>
                                                <th style="text-align:center">Tin</th>
                                                <th style="text-align:center">Address</th>
                                                <th style="text-align:center">City</th>
                                                <th style="text-align:center">State</th>
                                                <th style="text-align:center">Comment</th>
                                                <th style="text-align:center">User ID</th>
                                                <th></th>
                                        </tr>
                                
                                        <?php foreach($pending as $pkey => $pvalue):?>
                                        <tr>
                                                <td style="text-align:center"><?php echo $pvalue['Retailer']['contact1'];?></td>
                                                <td style="text-align:center"><?php echo $pvalue['Retailer']['tinnumber'];?></td>
                                                <td style="text-align:center"><?php echo $pvalue['Retailer']['address'];?></td>
                                                <td style="text-align:center"><?php echo $pvalue['Retailer']['city'];?></td>
                                                <td style="text-align:center"><?php echo $pvalue['Retailer']['state'];?></td>
                                                <td style="text-align:center"><?php echo $pvalue['Retailer']['comments'];?></td>
                                                <td><input type="number"></td>
                                        
                                                <td style="text-align:center">
                                                        <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>
                                                        <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>
                                                </td>
                                        </tr>
                                                
                                        <?php endforeach;?>
                                
                                </table>
                </div>
        </div>
        
</div>