-
Notifications
You must be signed in to change notification settings - Fork 0
/
menu.php
319 lines (308 loc) · 8.27 KB
/
menu.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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
<?php
session_start();
?>
<style>
#mmenu, #mmenu ul {
margin: 0;
padding: 0;
list-style: none;
}
#mmenu {
width: 100%;
/*margin: 60px auto;*/
border: 1px solid #222;
background-color: #111;
background-image: -moz-linear-gradient(#444, #111);
background-image: -webkit-gradient(linear, left top, left bottom, from(#444), to(#111));
background-image: -webkit-linear-gradient(#444, #111);
background-image: -o-linear-gradient(#444, #111);
background-image: -ms-linear-gradient(#444, #111);
background-image: linear-gradient(#444, #111);
-moz-border-radius: 6px;
-webkit-border-radius: 6px;
border-radius: 6px;
-moz-box-shadow: 0 1px 1px #777, 0 1px 0 #666 inset;
-webkit-box-shadow: 0 1px 1px #777, 0 1px 0 #666 inset;
box-shadow: 0 1px 1px #777, 0 1px 0 #666 inset;
}
#mmenu:before,
#mmenu:after {
content: "";
display: table;
}
#mmenu:after {
clear: both;
}
#mmenu {
zoom:1;
}
#mmenu li {
float: left;
border-right: 1px solid #222;
-moz-box-shadow: 1px 0 0 #444;
-webkit-box-shadow: 1px 0 0 #444;
box-shadow: 1px 0 0 #444;
position: relative;
}
#mmenu a {
float: left;
padding: 12px 30px;
color: #999;
text-transform: uppercase;
font: bold 12px Arial, Helvetica;
text-decoration: none;
text-shadow: 0 1px 0 #000;
}
#mmenu li:hover > a {
color: #fafafa;
}
*html #mmenu li a:hover { /* IE6 only */
color: #fafafa;
}
#mmenu ul {
margin: 20px 0 0 0;
_margin: 0; /*IE6 only*/
opacity: 0;
visibility: hidden;
position: absolute;
top: 38px;
left: 0;
z-index: 9999;
background: #444;
background: -moz-linear-gradient(#444, #111);
background-image: -webkit-gradient(linear, left top, left bottom, from(#444), to(#111));
background: -webkit-linear-gradient(#444, #111);
background: -o-linear-gradient(#444, #111);
background: -ms-linear-gradient(#444, #111);
background: linear-gradient(#444, #111);
-moz-box-shadow: 0 -1px rgba(255,255,255,.3);
-webkit-box-shadow: 0 -1px 0 rgba(255,255,255,.3);
box-shadow: 0 -1px 0 rgba(255,255,255,.3);
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
-webkit-transition: all .2s ease-in-out;
-moz-transition: all .2s ease-in-out;
-ms-transition: all .2s ease-in-out;
-o-transition: all .2s ease-in-out;
transition: all .2s ease-in-out;
}
#mmenu li:hover > ul {
opacity: 1;
visibility: visible;
margin: 0;
}
#mmenu ul ul {
top: 0;
left: 150px;
margin: 0 0 0 20px;
_margin: 0; /*IE6 only*/
-moz-box-shadow: -1px 0 0 rgba(255,255,255,.3);
-webkit-box-shadow: -1px 0 0 rgba(255,255,255,.3);
box-shadow: -1px 0 0 rgba(255,255,255,.3);
}
#mmenu ul li {
float: none;
display: block;
border: 0;
_line-height: 0; /*IE6 only*/
-moz-box-shadow: 0 1px 0 #111, 0 2px 0 #666;
-webkit-box-shadow: 0 1px 0 #111, 0 2px 0 #666;
box-shadow: 0 1px 0 #111, 0 2px 0 #666;
}
#mmenu ul li:last-child {
-moz-box-shadow: none;
-webkit-box-shadow: none;
box-shadow: none;
}
#mmenu ul a {
padding: 10px;
width: 130px;
_height: 10px; /*IE6 only*/
display: block;
white-space: nowrap;
float: none;
text-transform: none;
}
#mmenu ul a:hover {
background-color: #0186ba;
background-image: -moz-linear-gradient(#04acec, #0186ba);
background-image: -webkit-gradient(linear, left top, left bottom, from(#04acec), to(#0186ba));
background-image: -webkit-linear-gradient(#04acec, #0186ba);
background-image: -o-linear-gradient(#04acec, #0186ba);
background-image: -ms-linear-gradient(#04acec, #0186ba);
background-image: linear-gradient(#04acec, #0186ba);
}
#mmenu ul li:first-child > a {
-moz-border-radius: 3px 3px 0 0;
-webkit-border-radius: 3px 3px 0 0;
border-radius: 3px 3px 0 0;
}
#mmenu ul li:first-child > a:after {
content: '';
position: absolute;
left: 40px;
top: -6px;
border-left: 6px solid transparent;
border-right: 6px solid transparent;
border-bottom: 6px solid #444;
}
#mmenu ul ul li:first-child a:after {
left: -6px;
top: 50%;
margin-top: -6px;
border-left: 0;
border-bottom: 6px solid transparent;
border-top: 6px solid transparent;
border-right: 6px solid #3b3b3b;
}
#mmenu ul li:first-child a:hover:after {
border-bottom-color: #04acec;
}
#mmenu ul ul li:first-child a:hover:after {
border-right-color: #0299d3;
border-bottom-color: transparent;
}
#mmenu ul li:last-child > a {
-moz-border-radius: 0 0 3px 3px;
-webkit-border-radius: 0 0 3px 3px;
border-radius: 0 0 3px 3px;
}
</style>
<?php
if(isset($_SESSION['adminid']))
{
?>
<div id="mmenu">
<li><a href="adminaccount.php">Account</a></li>
<li>
<a href=" ######### ">Profile</a>
<ul>
<li><a href="adminprofile.php">Admin Profile</a></li>
<li><a href="adminchangepassword.php">Change Password</a></li>
<li><a href="admin.php" style="width:150px;">Add Admin</a></li>
</ul>
</li>
<li><a href=" ######### ">Patient</a>
<ul>
<li><a href="patient.php">Add Patient</a></li>
<li><a href="viewpatient.php">View Patient Records</a></li>
</ul>
</li>
<li>
<a href=" ######### ">Appointment</a>
<ul>
<li><a href="appointment.php" style="width:200px;">New Appointment</a></li>
<li><a href="viewappointmentpending.php" style="width:200px;">View Pending Appointments</a></li>
<li><a href="viewappointmentapproved.php" style="width:200px;">View Approved Appointments</a></li>
</ul>
</li>
<li><a href="viewtreatmentrecord.php">Treatment</a></li>
<li>
<a href=" ######### ">Doctor</a>
<ul>
<li><a href="doctor.php">Add Doctor</a></li>
<li><a href="Viewdoctor.php">View Doctor</a></li>
<li><a href="doctortimings.php">Add Doctor Timings</a></li>
<li><a href="viewdoctortimings.php">View Doctor Timings</a></li>
</ul>
</li>
<li>
<a href=" ######### ">Settings</a>
<ul>
<li><a href="department.php" style="width:150px;">Add Department</a></li>
<li><a href="Viewdepartment.php" style="width:150px;">View Department</a></li>
<li><a href="treatment.php" style="width:150px;">Add Treatment type</a></li>
<li><a href="viewtreatment.php" style="width:150px;">View Treatment types</a></li>
<li><a href="medicine.php" style="width:150px;">Add Medicine</a></li>
<li><a href="Viewmedicine.php" style="width:150px;">View Medicine</a></li>
</ul>
</li>
<li><a href="logout.php">Log Out</a></li>
</div>
<?php
}
?>
<?php
if(isset($_SESSION['doctorid']))
{
?>
<div id="mmenu">
<li><a href="doctoraccount.php">Account</a></li>
<li>
<a href=" ######### ">Settings</a>
<ul>
<li><a href="doctorprofile.php">Profile</a></li>
<li><a href="doctorchangepassword.php">Change Password</a></li>
</ul>
</li>
<li>
<a href=" ######### ">Appointment</a>
<ul>
<li><a href="viewappointmentpending.php" style="width:250px;">View Pending Appointments</a></li>
<li><a href="viewappointmentapproved.php" style="width:250px;">View Approved Appointments</a></li>
</ul>
</li>
<li><a href=" ######### ">Patient</a>
<ul>
<li><a href="viewpatient.php">View Patient</a></li>
</ul>
</li>
<li><a href=" ######### ">Doctor Timings</a>
<ul>
<li><a href="doctortimings.php">Add Timings</a></li>
<li><a href="viewdoctortimings.php">View Timings</a></li>
</ul>
</li>
<li>
<a href=" ######### ">Treatment</a>
<ul>
<li><a href="viewtreatmentrecord.php">View Treatment Records</a></li>
<li><a href="viewtreatment.php">View Treatment</a></li>
</ul>
</li>
<li>
<li><a href="viewdoctorconsultancycharge.php">Income Report</a></li>
</ul>
<li><a href="logout.php">Log Out</a></li>
</div>
<?php
}
?>
<?php
if(isset($_SESSION['patientid']))
{
?>
<div id="mmenu">
<li><a href="patientaccount.php">Account</a></li>
<li>
<a href=" ######### ">Appointment</a>
<ul>
<li><a href="patientappointment.php" style="width:200px;">Add Appointment</a></li>
<li><a href="viewappointment.php" style="width:200px;">View Appointments</a></li>
</ul>
</li>
<li>
<a href=" ######### ">Profile</a>
<ul>
<li><a href="patientprofile.php">View Profile</a></li>
<li><a href="patientchangepassword.php">Change Password</a></li>
</ul>
</li>
<li>
<a href=" ######### ">Prescription</a>
<ul >
<li><a style="width:200px;" href="patviewprescription.php">View Prescription Records</a></li>
</ul>
</li>
<li>
<a href=" ######### ">Treatment</a>
<ul>
<li><a href="viewtreatmentrecord.php">View Treatment Records</a></li>
</ul>
</li>
<li><a href="logout.php">Log Out</a></li>
</div>
<?php
}
?>