This commit is contained in:
2024-05-09 08:32:14 +08:00
parent 9fb08d43d0
commit 1242d6e633
10 changed files with 75 additions and 40 deletions
+30 -3
View File
@@ -9,13 +9,25 @@
</head>
<body>
<header>
<span style="font-family: cursive; color:white; font-size: xx-large;" >Placeholder</span>
<a href="home.php" style="font-family: cursive; color:white; font-size: xx-large; text-decoration: none"> Placeholder</a>
</header>
<div class="login-box">
<h2>Hello, User</h2>
<h2>Hello, <?php
session_start();
$empID = $_SESSION['EmployeeID'];
$connect = mysqli_connect("localhost", "root", "", "g1_pila") or die("Unable to connect");
if($empID == ''){
header("location:index.php");
}
$sql = "SELECT OWNER FROM store WHERE STORE_ID=$empID ";
$result = mysqli_query($connect, $sql);
$row = mysqli_fetch_assoc($result);
echo $row['OWNER'];
?></h2>
<header>
<nav>
<nav style="margin-left: 35%">
<table>
<tr>
<th><a href="display.php">
@@ -24,6 +36,13 @@
<span></span>
<span></span>Display Table</a></th>
</tr>
<tr>
<th><a href="createUser.php">
<span></span>
<span></span>
<span></span>
<span></span>Create User</a></th>
</tr>
<tr>
<th><a href="Insert.php">
<span></span>
@@ -31,6 +50,14 @@
<span></span>
<span></span>Insert</a></th>
</tr>
<tr>
<th><a href="logout.php">
<span></span>
<span></span>
<span></span>
<span></span>Log-off</a></th>
</tr>
</table>
</nav>
</header>