-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathemployees.php
More file actions
executable file
·42 lines (40 loc) · 1.48 KB
/
employees.php
File metadata and controls
executable file
·42 lines (40 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<!DOCTYPE html>
<html>
<link rel="stylesheet" href="styles.css">
<head>
<title>
Covid Database
</title>
<div class="topnav">
<a href="covid.html">Home</a>
<a href="about.html">About</a>
<a href="vaccine.html">Record a Vaccination</a>
<a href="location.php">Find a Vaccination Location</a>
<a href="status.php">Search Vaccination Status</a>
<a class="active" href="employees.php">Show Employees</a>
</div>
<h1>
Show all Employees Working at a Vaccination Site
</h1>
</head>
<body>
<!-- Go to processEmployees.php to process the user's selection -->
<form action="processEmployees.php" method="post">
<?php
include 'connectDB.php';
// Ask user to select a vaccination site
echo "<p>Please Select a Vaccination Site:</p>";
echo "<div id=\"radio\">";
// Vaccination sites are taken from the VaccinationSite table
$result = $connection->query("select VaxSiteName from VaccinationSite");
while ($row = $result->fetch())
{
echo "<input type=\"radio\" name=\"vaxSite\" value=\"".$row["VaxSiteName"]."\">".$row["VaxSiteName"]."<br>";
}
echo "</div><br>";
?>
<br>
<input type="submit">
</form>
</body>
</html>