Subversion Repositories SmartDukaan

Rev

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

<div class="container">
        <div class="row">
                <div class="col-xs-12">
                        <?php echo $this->Form->create('UserSanctions');
                                $searchtype = array(0 => 'Default', 1=> 'Loan Amount');
                                echo $this->Form->input('searchUserBy',array('options'=> $searchtype ));
                                echo $this->Form->end(__('Submit'));?>
                </div>
        </div>

        <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>
                                                        <?php if($userSanction['loan']!=0) {?>
                                                        <td><?php echo $this->Html->link(__(h(explode('_', $userSanction['loan'])[0])), array('action' => 'outstanding/loan', $userSanction['user_id']));?>
                                                        </td>
                                                        <?php }else {?>
                                                        <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>