This commit is contained in:
2024-05-09 10:20:54 +08:00
parent 1242d6e633
commit f01cfaec8c
5 changed files with 40 additions and 63 deletions
+8 -26
View File
@@ -10,43 +10,25 @@
<body>
<header>
<a href="home.php" style="font-family: cursive; color:white; font-size: xx-large; text-decoration: none"> Placeholder</a>
<nav>
<table>
<tr>
<th><a href="home.php">
<span></span>
<span></span>
<span></span>
<span></span>Home</a></th>
<th><a href="display.php">
<span></span>
<span></span>
<span></span>
<span></span>Equipment</a></th>
<th><a href="">
<span></span>
<span></span>
<span></span>
<span></span>About Us</a></th>
</tr>
</table>
</nav>
</header>
<?php
session_start();
$ID = $_SESSION['EmployeeID'];
if ($ID == ''){
header("location:index.php");
}
?>
<div class="login-box">
<center><h1 style="color: aliceblue">Display Records</h1></center>
<?php
session_start();
if($_SESSION['EmployeeID'] = ''){
header("location:index.php");
}
$conn = mysqli_connect('localhost','root','','g1_pila');
$command = "select SHIPMENT_ID from shipment";
$result = mysqli_query($conn,$command);
if(mysqli_num_rows($result) > 0){
echo "<table style='color: aliceblue; border: 3px solid deepskyblue; padding: 20px;margin-left: 5%'>";
echo "<table style='color: aliceblue; border: 3px solid deepskyblue; padding: 20px;margin-left: 23%'>";
echo "<tr>";
echo "<th> Shipment ID</th>";
echo "<th>Update?</th>";