-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathreports.php
47 lines (41 loc) · 1.2 KB
/
reports.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
<?php include 'include/head.php';?>
<?php include 'include/nav.php';?>
<div class="content container">
<div class="tableBox" >
<table id="dataTable" class="table table-responsive table-hover">
<thead>
<th>#</th>
<th>Name</th>
<th>Contact</th>
<th>Disc</th>
<th>Qty</th>
<th>Amount</th>
<th>Staff</th>
<th>Date</th>
</thead>
<tbody>
<?php $i=0;
$array = $con->query("select * from sold ORDER BY date DESC");
while ($row = $array->fetch_assoc())
{
$i=$i+1;
$id = $row['id'];
?>
<tr>
<td><?php echo $i; ?></td>
<td><?php echo $row['name']; ?></td>
<td><?php echo $row['contact']; ?></td>
<td><?php echo $row['discount']; ?></td>
<td><?php echo $row['item']; ?></td>
<td><?php echo $row['amount']; ?></td>
<td><?php echo getAdminName($row['userId']); ?></td>
<td><?php echo $row['date']; ?></td>
</tr>
<?php
}
?>
</tbody>
</table>
</div>
</div>
<?php include 'include/footer.php';?>