Subversion Repositories SmartDukaan

Rev

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

<div class="container">
        <div class="row">
                <div class="col-lg-12 table-responsive">
                        <h3>Credit History Transactions</h3>
                        <table class="table table-striped">
                                <thead>
                                        <tr>
                                                <th><?php echo ('Id');?></th>
                                                <th><?php echo ('UserId');?></th>
                                                <th><?php echo ('UserName');?></th>
                                                <th><?php echo ('Creditor_Id');?></th>
                                                <th><?php echo ('Payment_id');?></th>
                                                <th><?php echo ('Amount');?></th>
                                                <th><?php echo ('Transaction_type');?></th>
                                                <th><?php echo ('Created');?></th>
                                                <th><?php echo ('Shipping_id');?></th>
                                        </tr>
                                </thead>
                                <tbody>
                                        <?php foreach($creditHistory AS $creditH):?>
                                                <tr>
                                                        <td><?php echo $creditH['id'];?></td>
                                                        <td>
                                                        <?php echo $this->Html->link($usersMap[$creditH['user_id']], array('controller' => 'users', 'action' => 'credithistory',$usersMap[$creditH['user_id']])); ?>
                                                        <?php //echo $usersMap[$creditH['user_id']];?>                                                  
                                                        </td>
                                                        <td><?php echo $usersName[$creditH['user_id']];?></td>
                                                        <td><?php echo $creditH['creditor_id'];?></td>
                                                        <td><?php echo $creditH['payment_id'];?></td>
                                                        <td><?php echo $creditH['amount'];?></td>
                                                        <td><?php echo $creditH['credit_type'];?></td>
                                                        <td><?php echo $creditH['created'];?></td>
                                                        <td><?php echo $creditH['shipping_id'];?></td>
                                                </tr>
                                        <?php endforeach;?>
                                </tbody>
                        </table>
                </div>
        </div>
        <ul class="pager">
                <?php if($page>1):?>
                <li><a href="?page=<?php echo $page-1;?>">Previous</a></li>
                <?php endif;?>
                <?php if($hasMore == true):?>
                <li><a href="?page=<?php echo $page+1;?>">Next</a></li>
            <?php endif;?>
        </ul>
</div>