-
Notifications
You must be signed in to change notification settings - Fork 0
/
AdminPortal.php
144 lines (132 loc) · 8.07 KB
/
AdminPortal.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
<?php
session_start();
?>
<html>
<head>
<title> Avocado Medical Centre </title>
<link rel="stylesheet" href="format6.css">
</head>
<body style='background-image: url("Images/bg3.jpg");background-attachment: fixed;'>
<div id="container">
<div id="nav1">
<ul style="font-family: serif;font-size: 14px;font-style: normal;font-weight: normal; position:relative;top:15px">
<li>
<a href="#" style="text-decoration: none; color: white">FAQS</a>
</li>
<li><a href="#" style="text-decoration: none; color: white">About</a></li>
<li><a href="#" style="text-decoration: none; color: white">Contacts</a></li>
<li>
<a href="https://twitter.com"><img style="position: relative; top:5px"src="Images/twitter.png" height="20px" width="20px" ></a>
</li>
<li><a href="https://facebook.com"><img src="Images/facebook.png" height="30px" width="30px" ></a></li>
<li><a href="https://jm.linkedin.com"><img src="Images/linkedIn.png" height="30px" width="30px" ></a></li>
<li><a href="https://plus.google.com"><img src="Images/google.png" height="30px" width="30px" ></a></li>
<li><a href="https://skype.com"><img src="Images/skype.png" height="30px" width="30px" ></a></li>
</ul>
</div>
<div id="nav">
<ul>
<li><a class="" href="<?php
if($_SESSION["CurrentUID"]==""){
echo "login.php";
}
else{
echo "login.php?Chk=1";
}
?>"><?php
if($_SESSION["CurrentUID"]==""){
echo "Log In";
}
else{
echo "Log Out";
}
?></a></li>
<li><a class="active" href="<?php
if($_SESSION["CurrentUID"]==""){
echo "login.php";
}
else{
include("DB_Con.php");
$query="SELECT * from Staff Where StaffID='".$_SESSION["CurrentUID"]."' ";
$result = $conn->query($query);
$row = mysqli_fetch_array($result);
$_SESSION['LType']=$row["Type"];
if( $_SESSION['LType']=="")
{
echo "login.php";
}
else{
switch($_SESSION['LType'])
{
case "Administrator":
echo "AdminPortal.php";
break;
case "Nurse":
echo "NursePortal.php";
break;
case "Doctor":
echo "DoctorsPortal.php";
break;
default:
echo "Error";
}
}
$conn->close();
}
?>">Admin Portal</a></li>
<li><a class="" href="index.php#services">Services</a></li>
<li><a class="" href="Index.php#bmical">Calculate BMI</a></li>
<li><a class="" href="Index.php#makeApp">Make Appointment </a></li>
<li><a class="" href="Index.php">Home</a></li>
<li style="border-bottom: none"><img style="position:absolute; left:80; padding-bottom:3px" src="Images/logo3.png" height="65px" width="350px" > </li>
</ul>
</div>
<div id="addP">
<center>
<table style="z-index:-1" >
<tr colspan=2>
<h1 style="font-size:50px;"> Please select an activity from the options below </h1>
</tr>
<tr><br></tr>
<tr>
<td>
<form method="POST" action="addUser.php">
<button style="width:800px" id="getStarted1"><img src="Images/AaddU.png" align="middle" alt="facebook logo" width="100" height="100" style=" z-index: 1000; right:0" >
Add User Account</button>
</form>
</td>
</tr>
<tr>
<td colspan="2">
<form method="POST" action="EditStaff.php">
<button style="width:800px" id="getStarted1"><img src="Images/AEditU.png" align="middle" alt="facebook logo" width="100" height="100" style=" z-index: 1000; right:0" >Edit User Accounts</button>
</form>
</td>
</tr>
<tr>
<td colspan="2">
<form method="POST" action="deleteUser.php">
<button style="width:800px" id="getStarted1"><img src="Images/AdeleteU.png" align="middle" alt="facebook logo" width="100" height="100" style=" z-index: 1000; right:0" >Delete User Account</button>
</form>
</td>
</tr>
</table>
</center>
</div>
<div id="footer">
<center>
<p style="padding-top:2px;margin:0px">© Copyright 2019. All Rights Reserved. | This website was designed by French Corp.</p>
</center>
</div>
</div>
</body>
</html>