-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathA_Fuel_Price_Management.php
112 lines (105 loc) · 4.05 KB
/
A_Fuel_Price_Management.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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<?php require_once('connection.php');
session_start();
/**
* @author Yasiru
* contact me : https://linktr.ee/yasiruchamuditha for more information.
*/
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Admin Panel-Vehicle Token Management</title>
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<meta content="Fuel Up" name="keywords">
<meta content="Fuel Status" name="description">
<!-- Favicon -->
<link href="img/favicon.ico" rel="icon">
<!-- Google Web Fonts -->
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Rubik&display=swap" rel="stylesheet">
<!-- Font Awesome -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.0/css/all.min.css" rel="stylesheet">
<!-- Libraries Stylesheet -->
<link href="lib/owlcarousel/assets/owl.carousel.min.css" rel="stylesheet">
<link href="lib/tempusdominus/css/tempusdominus-bootstrap-4.min.css" rel="stylesheet" />
<!-- Customized Bootstrap Stylesheet -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<!-- css Stylesheet -->
<link href="css/styles.css" rel="stylesheet">
<link href="css/styleAdmin.css" rel="stylesheet">
</head>
<body>
<?php require('A_Navigation_Bar.php');?>
<div class="container">
<h1>Admin Panel - Fuel Price Management </h1>
<p class="header">Fuel Price Details</p>
<table class="table">
<thead>
<tr class="table-info " style="height: 50px; overflow:auto;">
<th scope="col">Supplier Type</th>
<th scope="col">Updated Date</th>
<th scope="col">Updated Time</th>
<th scope="col">Petrol 92</th>
<th scope="col">Petrol 95</th>
<th scope="col">Diesel</th>
<th scope="col">Super Diesel</th>
<th scope="col">Kerosine Oil</th>
<th scope="col">Industrial Kerosine Oil</th>
<th scope="col">Fuel Oil</th>
<th scope="col">Operation</th>
</tr>
</thead>
<tbody>
<?php
$sql="SELECT * FROM fuel_price";
$ret= mysqli_query($con, $sql);
if ($ret)
{
while($row=mysqli_fetch_assoc($ret))
{
$Supplier_Type=$row['Supplier_Type'];
$Updated_Date=$row['Updated_Date'];
$Updated_Time=$row['Updated_Time'];
$Petrol_92=$row['Petrol_92'];
$Petrol_95=$row['Petrol_95'];
$Diesel=$row['Diesel'];
$Super_Diesel=$row['Super_Diesel'];
$Kerosine_Oil=$row['Kerosine_Oil'];
$Industrial_Kerosine_Oil=$row['Industrial_Kerosine_Oil'];
$Fuel_Oil=$row['Fuel_Oil'];
echo'<tr style="height: 65px; overflow:auto;">
<th scope="row">'.$Supplier_Type.'</th>
<td>'.$Updated_Date.'</td>
<td>'.$Updated_Time.'</td>
<td>'.$Petrol_92.'</td>
<td>'.$Petrol_95.'</td>
<td>'.$Diesel.'</td>
<td>'.$Super_Diesel.'</td>
<td>'.$Kerosine_Oil.'</td>
<td>'.$Industrial_Kerosine_Oil.'</td>
<td>'.$Fuel_Oil.'</td>
<td><button class="btn btn-info" name="btnupdate"><a href="A_Fuel_Price_Update.php" class="text-light">Update</a></button></td>
</tr>';
}
}
?>
</tbody>
</table>
</div>
<?php require('A_Footer.php');?>
<!-- JavaScript Libraries -->
<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.bundle.min.js"></script>
<script src="lib/easing/easing.min.js"></script>
<script src="lib/waypoints/waypoints.min.js"></script>
<script src="lib/owlcarousel/owl.carousel.min.js"></script>
<script src="lib/tempusdominus/js/moment.min.js"></script>
<script src="lib/tempusdominus/js/moment-timezone.min.js"></script>
<script src="lib/tempusdominus/js/tempusdominus-bootstrap-4.min.js"></script>
<!-- Template Javascript -->
<script src="js/main.js"></script>
</body>
</html>