-
Notifications
You must be signed in to change notification settings - Fork 0
/
income_report.php
64 lines (39 loc) · 1.97 KB
/
income_report.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
<?php require_once("top.php"); ?>
<?php require_once("connection.php"); ?>
<?php
$income = mysqli_query($con, "SELECT * ,(SELECT total_amount from invoice WHERE invoice_id = maintable.invoice_id ) AS total_amount FROM income AS maintable INNER JOIN bank ON bank.bank_id=maintable.bank_id");
$row_income = mysqli_fetch_assoc($income);
?>
<div class="card card-body mt-3">
<div class="card card-header text-success">
<?php require_once("print.php"); ?>
<h1> Income Report </h1>
</div>
<div class="card card-body">
<table class="table table-striped table-hover">
<thead>
<tr>
<th class="text-center" >Invoice ID</th>
<th class="text-center" >Bank </th>
<th class="text-center" >Receipt Year</th>
<th class="text-center" >Receipt Month</th>
<th class="text-center" >Receipt Day</th>
<th class="text-center" >Total Price</th>
</tr>
</thead>
<tbody>
<?php do { ?>
<tr>
<td class="text-center" ><?php echo $row_income["invoice_id"]; ?> </td>
<td class="text-center" ><?php echo $row_income["bank_name"]; ?> </td>
<td class="text-center" ><?php echo $row_income["receipt_year"]; ?> </td>
<td class="text-center" ><?php echo $row_income["receipt_month"]; ?> </td>
<td class="text-center" ><?php echo $row_income["receipt_day"]; ?> </td>
<td class="text-center" ><?php echo $row_income["total_amount"] . "<small> - AFS </small>"; ?> </td>
</tr>
<?php } while ($row_income = mysqli_fetch_assoc($income)); ?>
</tbody>
</table>
</div>
</div>
<?php require_once("footer.php"); ?>