68 lines
2.0 KiB
PHP
68 lines
2.0 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset='utf-8'>
|
|
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
|
|
<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>
|
|
<span style="font-family: cursive; color:white; font-size: xx-large;" >Placeholder</span>
|
|
<nav>
|
|
<table>
|
|
<tr>
|
|
<th><a href="index.html">
|
|
<span></span>
|
|
<span></span>
|
|
<span></span>
|
|
<span></span>Home</a></th>
|
|
<th><a href="Equipment.html">
|
|
<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>
|
|
<div class="login-box">
|
|
<table>
|
|
<tr>
|
|
<th> Full Name </th>
|
|
<th>Update?</th>
|
|
<th>Delete?</th>
|
|
</tr>
|
|
|
|
|
|
<?php
|
|
session_start();
|
|
if($_SESSION['EmployeeID'] = ''){
|
|
header("location:index.php");
|
|
}
|
|
$conn = mysqli_connect('localhost','root','','g1_pila');
|
|
$command = "select CONCAT(FIRST_NAME, ' ',LAST_NAME) as name from employee";
|
|
$result = mysqli_query($conn,$command);
|
|
|
|
while ($row = mysqli_fetch_array($result)){
|
|
echo "<tr>";
|
|
echo "<th> $row[0] </th>";
|
|
echo "<th><a href = 'update.php'>Update</a></th>";
|
|
echo "<th><a href = 'delete.php'>Delete</a></th>";
|
|
echo "</tr>";
|
|
}
|
|
?>
|
|
</table>
|
|
</div>
|
|
</body>
|
|
</html>
|
|
|
|
|
|
<?php
|