Subversion Repositories SmartDukaan

Rev

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

<div class="container">
        <div class="row">
                <div class="col-lg-12 table-responsive">
                        <h3>Loan Outstanding Payments</h3>
                        <table class="table table-striped">
                                <thead>
                                        <tr>
                                                <th><?php echo ('User Name');?></th>
                                                <th><?php echo ('Email Id');?></th>
                                                <th><?php echo ('Counter Name');?></th>
                                                <th><?php echo ('Creditor Id');?></th>
                                                <th><?php echo ('Payment Id');?></th>
                                                <th><?php echo ('Total Amount');?></th>
                                                <th><?php echo ('Due Date');?></th>
                                                <th><?php echo ('Repayment Date');?></th>
                                                <th><?php echo ('Amount To Be Paid');?></th>
                                        </tr>
                                </thead>
                                <tbody>
                                        <?php foreach($outstandingPayments AS $loanH):?>
                                                <tr>
                                                        <td><?php echo $usersName[$loanH['user_id']];?></td>
                                                        <td><?php echo $usersMap[$loanH['user_id']]; ?></td>
                                                        <td><?php echo $loanH['counter_name'];?></td>
                                                        <td><?php echo $loanH['creditor_id'];?></td>
                                                        <td><?php echo $loanH['payment_id'];?></td>
                                                        <td><?php echo $loanH['totalAmount'];?></td>
                                                        <td><?php echo date('Y-m-d H:i:s', $loanH['created']/1000);?></td>
                                                        <form action="/admin/users/marksettlement" method="POST" id="MarkSettlementForm">
                                                        <input type="hidden" value=<?php echo $loanH['payment_id']?> name=data[payment_id] />
                                                        <input type="hidden" value=<?php echo $loanH['user_id']?> name=data[userId]"/> 
                                                        <td style='width: 20px'><input type="date" name=data[repayment_date] value="Date"/></td>
                                                        <td style='width: 20px'><input type="number" name=data[amount] value="amount"/></td>
                                                        <td><input type="submit" value="Mark as Settled"/></td>
                                                        </form>
                                                </tr>
                                        <?php endforeach;?>
                                </tbody>
                        </table>
                </div>
        </div>
</div>