78 lines
2.3 KiB
PHP
78 lines
2.3 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset='utf-8'>
|
|
<title>Placeholder Register</title>
|
|
<meta name='viewport' content='width=device-width, initial-scale=1'>
|
|
<link rel='stylesheet' type='text/css' media='screen' href='style.css'>
|
|
</head>
|
|
<body>
|
|
<header>
|
|
<a href="home.php" style="font-family: cursive; color:white; font-size: xx-large; text-decoration: none"> Placeholder</a>
|
|
|
|
</header>
|
|
<div class="login-box">
|
|
<?php
|
|
session_start();
|
|
if (!isset($_SESSION['EmployeeID'])){
|
|
header("location:index.php");
|
|
}
|
|
?>
|
|
|
|
<h2>Hello, <?php
|
|
$empID = $_SESSION['EmployeeID'];
|
|
$connect = mysqli_connect("localhost", "root", "", "g1_pila") or die("Unable to connect");
|
|
|
|
$sql = "SELECT OWNER FROM store WHERE STORE_ID=$empID ";
|
|
try{
|
|
$result = mysqli_query($connect, $sql);
|
|
}catch (Exception $ex){
|
|
echo "<script>alert('Sum Ting Wong'); window.location='index.php';</script>";
|
|
}
|
|
$row = mysqli_fetch_assoc($result);
|
|
echo $row['OWNER'];
|
|
?></h2>
|
|
<header>
|
|
<nav style="margin-left: 35%">
|
|
<table>
|
|
<tr>
|
|
<th><a href="display.php">
|
|
<span></span>
|
|
<span></span>
|
|
<span></span>
|
|
<span></span>Display Table</a></th>
|
|
</tr>
|
|
<tr>
|
|
<th><a href="createUser.php">
|
|
<span></span>
|
|
<span></span>
|
|
<span></span>
|
|
<span></span>Create Store</a></th>
|
|
</tr>
|
|
<tr>
|
|
<th><a href="Insert.php">
|
|
<span></span>
|
|
<span></span>
|
|
<span></span>
|
|
<span></span>Insert Shipment</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>
|
|
</div>
|
|
</body>
|
|
</html>
|
|
|
|
|
|
|
|
|
|
<?php
|