-
Notifications
You must be signed in to change notification settings - Fork 0
/
billing_report.php
92 lines (75 loc) · 2.59 KB
/
billing_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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<?php include 'db.php'; ?>
<?php
// We need to use sessions, so you should always start sessions using the below code.
// If the user is not logged in redirect to the login page...
if (!isset($_SESSION['loggedin'])) {
header('Location: index.php');
exit;
}
?>
<?php
// SELECT QUERY
$query = 'SELECT * FROM billingstatus';
$results = mysqli_query($conn, $query);
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>List of instructors</title>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div class="container">
<header>
<nav class="site-nav">
<ul>
<li><a href="dashboard.php">Add Students</a></li>
<li><a href="report.php">Student List</a></li>
<li><a href="add-instructor.php">Add Instructor</a></li>
<li><a href="instructors.php">Instructor List</a></li>
<li><a href="add-car.php">Add Car</a></li>
<li><a href="cars.php">Car List</a></li>
<li><a href="price.php">Price List</a></li>
<li><a href="billing.php">Billing</a></li>
<li><a href="billing_report.php">Billing Report</a></li>
</ul>
</nav>
<nav class="site-nav-logout">
<ul>
<li><a href="logout.php">Logout</a></li>
</ul>
</nav>
<h2>List of available cars as per time.</h2>
</header>
<section class="instructors-table">
<table class="grocery-list">
<thead>
<tr>
<th class="col-item-name">Student Name</th>
<th class="col-quantity">Instructor Name</th>
<th class="col-price">Car Model</th>
<th class="col-price">Slot</th>
<th class="col-price">Time</th>
<th class="col-price">Fee</th>
<th class="col-price">Fee Status</th>
</tr>
</thead>
<tbody>
<?php while($row = mysqli_fetch_assoc($results)) : ?>
<tr>
<td><?php echo $row['studentname']; ?> </td>
<td><?php echo $row['insname']; ?></td>
<td><?php echo $row['carmodel']; ?></td>
<td><?php echo $row['slot']; ?></td>
<td><?php echo $row['time']; ?></td>
<td><?php echo $row['fee']; ?></td>
<td><?php echo $row['feestatus']; ?></td>
</tr>
<?php endwhile; ?>
</tbody>
</table>
</section>
</div>
</body>
</html>