-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproblem.php
50 lines (45 loc) · 1.35 KB
/
problem.php
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
46
47
48
49
50
<?php
session_start();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title> Halifax Canoe and Kayak</title>
<link rel="stylesheet" href="/problem.css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="icon" href="/image/favicon.ico">
</head>
<body>
<?php include('header.php'); ?>
<div class="logout">
<a href="log-out.php"><button>Log out</button></a>
</div>
<div class ="problem">
<?php
$role = $_POST['role'];
echo "<h2>Hello $role.</h2>";
echo "<h3>How can we help?</h3>";
if ($role == "Admin") {
echo "<ul>";
echo "<li><a href='new-account.php'>Create new account</a></li>";
echo "<li><a href='isnt-working.php'>PC not working</a></li>";
echo "</ul>";
} else if ($role == "Manager") {
echo "<ul>";
echo "<li><a href='lost-password.php'>Lost password</a></li>";
echo "<li><a href='isnt-working.php'>PC not working</a></li>";
echo "</ul>";
} else if ($role == "CEO") {
echo "<ul>";
echo "<li><a href='need-help.php'>Need help</a></li>";
echo "<li><a href='isnt-working.php'>PC not working</a></li>";
echo "</ul>";
}
?>
</div>
<?php include('footer.php'); ?>
</body>
</html>