Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
35 lines (29 sloc) 1.13 KB
<?php
require("../dbCon.php");
require("../commonFunctions.php");
?>
<html>
<head>
<link rel="stylesheet" href="../style.css">
</head>
<body>
<div id="header">
<?php writeMenuAdm('AllOrders.php'); ?>
</div>
<form action = "AddEmployee.php" class="form-group" style='display: block; margin: auto; width: 960px;'>
<input type="submit" value="New Employee">
</form>
<div id='contentwrapper'>
<?php
$sql = "SELECT
EmployeeID, LastName, FirstName, Title, TitleOfCourtesy, BirthDate, HireDate, Address, City, Region, PostalCode, Country, HomePhone, Extension, ReportsTo, Salary
FROM employees";
$result = $con->query($sql);
$trArgs = array("onclick=\"window.document.location='ViewEmployee.php?EmployeeID=%EmployeeID%'\"",
array('%EmployeeID%' => 'EmployeeID')
);
makeTable($result, $trArgs);
?>
</div>
</body>
</html>
You can’t perform that action at this time.