-
Notifications
You must be signed in to change notification settings - Fork 0
/
sch.html
387 lines (362 loc) · 12.4 KB
/
sch.html
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
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Appointment Scheduling</title>
<!-- Bootstrap CSS -->
<link
rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"
/>
<style>/* Body Styling */
body {
font-family: 'Poppins', sans-serif;
background-color: #f1f3f4; /* Soft gray for modern look */
color: #333;
line-height: 1.6;
margin: 0;
padding: 20px;
}
/* Navbar Customization */
.navbar-custom {
display: flex;
justify-content: space-between;
background-color: #ffffff;
padding: 15px 30px;
color: #333;
border-bottom: 1px solid #dcdcdc;
}
/* Main Search Bar Styling */
#searchInput {
width: 100%;
padding: 14px 20px;
border: 1px solid #dcdcdc;
border-radius: 25px;
background-color: #ffffff;
box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
transition: box-shadow 0.3s ease, border 0.3s ease;
font-size: 16px;
}
#searchInput:focus {
border: 1px solid #4285f4; /* Google blue */
box-shadow: 0 1px 8px rgba(66, 133, 244, 0.6); /* Glowing effect */
outline: none;
}
/* Filter Button Styling */
.filter-button {
background-color: #4285f4;
color: white;
border: none;
border-radius: 25px;
padding: 12px 20px;
font-size: 16px;
font-weight: bold;
cursor: pointer;
transition: background-color 0.3s ease, transform 0.2s ease;
box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
}
.filter-button:hover {
background-color: #357ae8;
transform: translateY(-2px);
}
.filter-button:focus {
outline: none;
}
/* Filter Bar Styling */
.filter-bar {
display: flex;
justify-content: space-between;
margin-bottom: 20px;
padding: 18px;
background-color: #fff;
border-radius: 30px;
box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
}
.filter-bar:hover {
box-shadow: 0 1px 8px rgba(66, 133, 244, 0.2);
}
/* Filter Options */
.filter-options select {
padding: 12px;
border: 1px solid #dcdcdc;
border-radius: 20px;
transition: border-color 0.3s ease;
}
.filter-options select:focus {
border-color: #4285f4;
outline: none;
}
/* Button Styling for View All */
#viewAllBtn,
#viewLessBtn {
background-color: #4285f4;
color: white;
border: none;
border-radius: 25px;
padding: 12px 20px;
cursor: pointer;
transition: background-color 0.3s ease, transform 0.2s ease;
box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
}
#viewAllBtn:hover,
#viewLessBtn:hover {
background-color: #357ae8;
transform: translateY(-2px);
}
.hidden {
display: none;
}
/* Subtle animations for interactive elements */
a {
color: #4285f4;
text-decoration: none;
transition: color 0.3s ease;
}
a:hover {
color: #357ae8;
}
</style>
</head>
<body>
<!-- Navbar -->
<nav
class="navbar navbar-expand-lg navbar-light bg-light"
style="width: 100%"
>
<div class="container-fluid p-0">
<!-- Use container-fluid for full width and remove padding -->
<!-- Hamburger Menu on the Left -->
<button
class="navbar-toggler"
type="button"
data-toggle="collapse"
data-target="#navbarNav"
aria-controls="navbarNav"
aria-expanded="false"
aria-label="Toggle navigation"
style="border: none"
>
<span class="navbar-toggler-icon"></span>
</button>
<a class="navbar-brand mx-auto" href="#">Health Care</a>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
<a class="nav-link" href="next.html#home"
>Home <span class="sr-only">(current)</span></a
>
</li>
<li class="nav-item">
<a class="nav-link" href="next.html#about">About Us</a>
</li>
<li class="nav-item">
<a class="nav-link" href="next.html#services">Services</a>
</li>
<li class="nav-item">
<a class="nav-link" href="sch.html">Appointment Scheduling</a>
</li>
<li class="nav-item">
<a class="nav-link" href="addmed.html">Add Medication Reminder</a>
</li>
<li class="nav-item">
<a class="nav-link" href="communication.html">Communication</a>
</li>
<li class="nav-item">
<a class="nav-link" href="next.html#contact">Contact Us</a>
</li>
</ul>
</div>
<!-- Profile Section on the Right -->
<div
class="d-flex align-items-center"
style="margin-left: auto; margin-right: 0"
>
<img
src="https://cdn.vectorstock.com/i/500p/53/42/user-member-avatar-face-profile-icon-vector-22965342.jpg"
alt="Profile"
class="rounded-circle"
style="width: 40px; height: 40px; margin-right: 10px"
/>
<button
class="btn btn-danger btn-sm"
id="logoutBtn"
style="margin-right: 0"
>
Logout
</button>
</div>
</div>
</nav>
<div class="container">
<!-- Filter and Search Bar -->
<div class="filter-bar">
<input type="text" id="searchInput" placeholder="Search for hospitals..." />
<button class="filter-button" id="filterButton">Filter</button>
</div>
<div class="filter-options hidden" id="filterOptions">
<!-- City Filter -->
<div>
<select id="cityFilter">
<option value="">All Cities</option>
<option value="Chennai">Chennai</option>
<option value="Coimbatore">Coimbatore</option>
<option value="Madurai">Madurai</option>
<option value="Trichy">Trichy</option>
<option value="Salem">Salem</option>
<option value="Vellore">Vellore</option>
<option value="Erode">Erode</option>
<option value="Tirunelveli">Tirunelveli</option>
<option value="Kanyakumari">Kanyakumari</option>
<option value="Thanjavur">Thanjavur</option>
</select>
</div>
<!-- Specialization Filter -->
<div>
<select id="specializationFilter">
<option value="">All Specializations</option>
<option value="General Physician">General Physician</option>
<option value="Cardiologist">Cardiologist</option>
<option value="Neurologist">Neurologist</option>
<option value="Dermatologist">Dermatologist</option>
<option value="Pediatrician">Pediatrician</option>
<option value="Orthopedic Surgeon">Orthopedic Surgeon</option>
<option value="Obstetrician">Obstetrician</option>
<option value="General Surgeon">General Surgeon</option>
<option value="Anesthesiologist">Anesthesiologist</option>
<option value="Ophthalmologist">Ophthalmologist</option>
<option value="Pulmonologist">Pulmonologist</option>
<option value="Gastroenterologist">Gastroenterologist</option>
<option value="Endocrinologist">Endocrinologist</option>
<option value="Urologist">Urologist</option>
<option value="Internal Medicine Specialist">Internal Medicine Specialist</option>
<option value="Plastic Surgeon">Plastic Surgeon</option>
<option value="Neurosurgeon">Neurosurgeon</option>
<option value="Psychiatrist">Psychiatrist</option>
<option value="Radiologist">Radiologist</option>
<option value="Hematologist">Hematologist</option>
<option value="Physiatrist">Physiatrist</option>
<option value="Rheumatologist">Rheumatologist</option>
<option value="Infectious Disease Specialist">Infectious Disease Specialist</option>
<option value="Family Medicine Specialist">Family Medicine Specialist</option>
<option value="Vascular Surgeon">Vascular Surgeon</option>
</select>
</div>
</div>
</div>
<!-- List of Hospitals -->
<div class="row" id="hospitalList">
<!-- Hospital cards will be dynamically generated here -->
</div>
</div>
<!-- View All and View Less Buttons -->
<div class="text-center">
<button class="btn btn-secondary mt-3" id="viewAllBtn">
View All Hospitals
</button>
<button class="btn btn-secondary mt-3 hidden" id="viewLessBtn">
View Less
</button>
</div>
</div>
<!-- Modal for Doctor List -->
<div
class="modal fade"
id="doctorModal"
tabindex="-1"
role="dialog"
aria-labelledby="doctorModalLabel"
aria-hidden="true"
>
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="doctorModalLabel">Doctors</h5>
<button
type="button"
class="close"
data-dismiss="modal"
aria-label="Close"
>
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body" id="doctorList">
<!-- Doctor list will be populated here -->
</div>
<div class="modal-footer">
<button
type="button"
class="btn btn-secondary"
data-dismiss="modal"
>
Close
</button>
</div>
</div>
</div>
</div>
<!-- Modal for Appointment Form -->
<div class="modal fade" id="appointmentModal" tabindex="-1" role="dialog" aria-labelledby="appointmentModalLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="appointmentModalLabel">Book Appointment</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<form id="appointmentForm">
<div class="form-group">
<label for="patientName">Patient Name</label>
<input type="text" class="form-control" id="patientName" placeholder="Enter your name">
</div>
<div class="form-group">
<label for="patientId">Patient ID</label>
<input type="text" class="form-control" id="patientId" placeholder="Enter your patient ID">
</div>
<div class="form-group">
<label for="phoneNumber">Phone Number</label>
<input type="text" class="form-control" id="phoneNumber" placeholder="Enter your phone number">
</div>
<div class="form-group">
<label for="appointmentDate">Appointment Date</label>
<input type="date" class="form-control" id="appointmentDate">
</div>
<div class="form-group">
<label for="selectedDoctorName">Doctor</label>
<input type="text" class="form-control" id="selectedDoctorName" readonly>
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary" id="scheduleButton">Schedule Appointment</button>
</div>
</div>
</div>
</div>
<!-- Add this section where you want the booked appointments to appear -->
<div id="appointmentsSection" class="container mt-4">
<h2>Your Appointments</h2>
<div id="appointmentsList"></div>
</div>
<!-- Bootstrap JS and dependencies -->
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
<!-- Script to generate hospital cards -->
<script src="sche.js"></script>
<script>
document
.getElementById("logoutBtn")
.addEventListener("click", function () {
// Logic to handle logout (e.g., clearing session, etc.)
alert("You have been logged out."); // Optional: alert the user
// Redirect to main.html
window.location.href = "index.html";
});
</script>
</body>
</html>