-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathloan_status.php
66 lines (60 loc) · 2.01 KB
/
loan_status.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?php
include_once "inc/header.php";
include_once "inc/sidebar.php";
?>
<div class="card">
<div class="card-header">
ALl loan Details
</div>
<div class="card-body">
<h5 class="card-title">Loan details</h5>
<table id="example" class="table table-striped table-bordered table-hover" cellspacing="0" width="100%">
<thead>
<tr>
<th>Name</th>
<th>Nid</th>
<th>Total loan</th>
<th>Insts</th>
<th>EMI</th>
<th>Amount Paid</th>
<th>Remaining amount</th>
<th>Total Fine</th>
<th>Current inst.</th>
<th>Remaining inst.</th>
<th>Next pay date</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<?php
$all = $ml->viewLoanApplication();
if ($all) {
$i = 1;
while ($row = $all->fetch_assoc()) {
$i++;
?>
<tr>
<td><?php echo $row['name']; ?></td>
<td><?php echo $row['nid']; ?></td>
<td><?php echo $row['total_loan']; ?> tk</td>
<td><?php echo $row['installments']; ?></td>
<td><?php echo $row['emi_loan']; ?> tk/month</td>
<td><?php echo $row['amount_paid']; ?> tk</td>
<td><?php echo $row['amount_remain']; ?> tk</td>
<td><?php //echo $row['fine']; ?> tk</td>
<td><?php echo $row['current_inst']; ?></td>
<td><?php echo $row['remain_inst']; ?></td>
<td><?php //echo $row['next_date']; ?></td>
<td><div><a class="btn btn-info" href="individual_loan.php?loan_id=<?php echo $row['id']; ?>&b_id=<?php echo $row['b_id'];?>">view</a></div></td>
</tr>
<?php
}
}
?>
</tbody>
</table>
</div>
</div>
<?php
include_once "inc/footer.php";
?>