-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadmin.php
More file actions
45 lines (37 loc) · 1.56 KB
/
admin.php
File metadata and controls
45 lines (37 loc) · 1.56 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
43
44
45
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Administration Page - Walnut Ridge Wedding Rentals</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-Zenh87qX5JnK2Jl0vWa8Ck2rdkQ2Bzep5IDxbcnCeuOxjzrPF/et3URy9Bv1WTRi" crossorigin="anonymous">
<link rel="stylesheet" href="reserve_styles.css">
<meta name="robots" content="noindex, nofollow">
</head>
<body>
<br>
<h1>Walnut Ridge Administration Page</h1>
<?php
$uname = $_POST["uname"];
$pword = $_POST["password"];
echo '<input type = "hidden" name = "uname" value = "'.$uname.'">';
echo '<input type = "hidden" name = "pword" value = "'.$pword.'">';
// mySQLi -------
// if condition is met (admin login form submits username and username is not empty) display administration page
if(isset($uname) & $uname != "") {
echo "
<center><br><br>
<form action='/clientQuery.php' method='POST' >
<select name = 'view'>
<option value='all'>View All Set Reservations</option>
<option value='layered'>View Layered Arch Set Reservations</option>
<option value='modern'>View Modern Round Set Reservations</option>
<option value='vintage'>View Vintage Mirror Set Reservations</option>
<option value='dark'>View Dark Walnut Set Reservations</option>
<option value='rustic'>View Rustic Wood Set Reservations</option>
</select>
<input type='submit' value='Submit'>
</form>
</center>
</body>
";
}
?>