Subversion Repositories SmartDukaan

Rev

Rev 18791 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<div class="container">
        <div class="row">
                <div class="col-lg-12 table-responsive">
                        <h3>List of User Sanctions</h3>
                        <table class="table table-striped">
                                <thead>
                                        <tr>
                                                <th><?php echo ('UserId');?></th>
                                                <th><?php echo ('UserName');?></th>
                                                <th><?php echo ('Creditor_Id');?></th>
                                                <th><?php echo ('Credit_limit');?></th>
                                                <th><?php echo ('Credit_blocked');?></th>
                                                <th><?php echo ('Loan');?></th>
                                                <th><?php echo ('Credit_available');?></th>
                                                <th><?php echo ('Status');?></th>
                                                <th><?php echo ('Created');?></th>
                                                <th><?php echo ('Updated');?></th>
                                                <th><?php echo ('Ticket_Size');?></th>
                                        </tr>
                                </thead>
                                <tbody>
                                        <?php foreach($userSanctions AS $userSanction):?>
                                                <tr>
                                                        <td><?php echo $usersMap[$userSanction['user_id']];?></td>
                                                        <td><?php echo $usersName[$userSanction['user_id']];?></td>
                                                        <td><?php echo $userSanction['creditor_id'];?></td>
                                                        <td><?php echo $userSanction['credit_limit'];?></td>
                                                        <td><?php echo $userSanction['credit_blocked'];?></td>
                                                        <td><?php echo $userSanction['loan'];?></td>
                                                        <td><?php echo intval($userSanction['credit_limit'])-(intval($userSanction['credit_blocked'])+intval($userSanction['loan']));?></td>
                                                        <td><?php echo $userSanction['active'];?></td>
                                                        <td><?php echo date("d/m/Y H:i:s", intval($userSanction['created'])/1000);?></td>
                                                        <td><?php echo date("d/m/Y H:i:s", intval($userSanction['updated'])/1000);?></td>
                                                        <td><?php echo $userSanction['ticket_size'];?></td>
                                                </tr>
                                        <?php endforeach;?>
                                </tbody>
                        </table>
                </div>
        </div>
</div>