-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEmployee.aspx
More file actions
226 lines (221 loc) · 9.43 KB
/
Employee.aspx
File metadata and controls
226 lines (221 loc) · 9.43 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
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
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Employee.aspx.vb" Inherits="WebApplication1.Employee" %>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Book Appointment</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background: url('Hospital_2.jpg') no-repeat center center fixed;
background-size: cover;
}
.header {
background-color: white; /* Semi-transparent background */
padding: 10px 20px;
color: white;
text-align: center;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 0; /* Adjusted margin */
}
.header img {
height: 50px;
margin-right: 10px;
}
.header h1 {
margin: 0;
font-size: 36px;
font-weight: bold;
color: darkblue; /* Changed text color to dark blue */
}
.header p {
margin: 0;
font-size: 16px;
color: darkblue;
}
.blue-bar {
background-color: #004080; /* Blue color */
color: white;
text-align: center;
padding: 10px 0;
font-size: 20px;
font-weight: bold;
}
.container {
width: 100%;
max-width: 600px; /* Adjusted max-width */
margin: 20px auto;
padding: 10px; /* Adjusted padding */
background-color: rgba(255, 255, 255, 0.9); /* Slightly transparent background */
border: 1px solid #cccccc;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.form-section {
padding: 5px; /* Adjusted padding */
border: 1px solid #004080;
border-radius: 5px;
margin-bottom: 10px; /* Adjusted margin */
}
.form-section h2 {
background-color: white; /* Changed background color to white */
color: #004080; /* Changed text color to dark blue */
padding: 5px; /* Adjusted padding */
margin: -10px -10px 10px -10px;
border-radius: 5px 5px 0 0;
font-size: 16px; /* Adjusted font size */
}
.form-row {
display: flex;
align-items: center;
margin-bottom: 10px;
padding: 1px;
}
label {
font-weight: bold;
width: 150px;
font-size: 12px; /* Adjusted font size */
margin-right: 10px;
}
input[type="date"], input[type="text"], select, .form-control, .form-label {
padding: 2px; /* Adjusted padding */
border: 1px solid #ccc;
border-radius: 5px;
font-size: 10px; /* Adjusted font size */
}
.form-label {
padding: 0; /* Remove padding for labels */
margin: 0; /* Remove margin for labels */
border: none; /* Remove border for labels */
background: none; /* Remove background for labels */
font-weight: bold;
width: 150px;
font-size: 12px;
}
.form-actions {
text-align: center;
font-size: 12px;
}
.form-actions button, .form-actions .asp:Button {
width: 50%;
padding: 5px; /* Adjusted padding */
background-color: #4CAF50;
color: white;
font-size: 8px; /* Adjusted font size */
border: none;
cursor: pointer;
border-radius: 5px;
margin: 5px;
font-weight: bold;
}
button:hover {
opacity: 0.8;
}
.message {
margin-top: 10px; /* Adjusted margin */
font-weight: bold;
text-align: center;
font-size: 12px; /* Adjusted font size */
text-align: center;
}
.asp-button {}
</style>
<script>
document.addEventListener("DOMContentLoaded", function () {
var today = new Date();
var tomorrow = new Date();
tomorrow.setDate(today.getDate() + 1);
var formattedToday = today.toISOString().split('T')[0];
var formattedTomorrow = tomorrow.toISOString().split('T')[0];
var dateInput = document.getElementById("txt_date");
dateInput.setAttribute("min", formattedToday);
dateInput.setAttribute("max", formattedTomorrow);
});
</script>
</head>
<body>
<div class="header">
<img src="IOCL.png" alt="Logo">
<div>
<h1>IndianOil</h1>
<p>Hospital Management System</p>
</div>
</div>
<div class="blue-bar">Employee Dashboard</div>
<div class="container">
<form id="Form1" runat="server" onsubmit="return validateForm()">
<h2>Patient Info</h2> <!-- Added heading for Patient Info -->
<div class="form-section">
<div class="form-row">
<label for="patientID">Patient ID:</label>
<asp:TextBox ID="txtPatientID" runat="server" CssClass="form-control" Width="84px" Height="17px"></asp:TextBox>
<asp:Button ID="btnFetchPatientName" runat="server" Text="Fetch Name" CssClass="asp-button" OnClick="btnFetchPatientName_Click" Height="22px" Font-Bold="True" Font-Size="8pt" />
</div>
<div class="form-row">
<label for="patientName">Patient Name:</label>
<asp:DropDownList ID="ddlPatientNames" runat="server" CssClass="form-control" />
</div>
<div class="form-row">
<label for="category">Category:</label>
<asp:Label ID="lblCategory" runat="server" CssClass="form-label"></asp:Label>
</div>
<div class="form-row">
<label for="relation">Relation:</label>
<asp:Label ID="lblRelation" runat="server" CssClass="form-label"></asp:Label>
</div>
<div class="form-row">
<label for="gender">Gender:</label>
<asp:Label ID="lblGender" runat="server" CssClass="form-label"></asp:Label>
</div>
<div class="form-row">
<label for="age">Age:</label>
<asp:Label ID="lblAge" runat="server" CssClass="form-label"></asp:Label>
</div>
<div class="form-row">
<asp:Button ID="btnFetchPatientInfo" runat="server" Text="Fetch Details" CssClass="asp-button" OnClick="btnFetchPatientInfo_Click" Height="21px" Font-Bold="True" Font-Size="8pt" Width="110px" />
</div>
<div>
<asp:Label ID="lblMessage1" runat="server" CssClass="message"></asp:Label>
</div>
</div>
<h2>Appointment Details</h2> <!-- Added heading for Appointment Details -->
<div class="form-section">
<div class="form-row">
<label for="date">Date:</label>
<input type="date" id="txt_date" name="date" runat="server" class="form-control">
</div>
<div class="form-row">
<label for="specialty">Specialisation:</label>
<asp:DropDownList ID="ddlSpecialty" runat="server" CssClass="form-control">
<asp:ListItem Text="Select Specialty" Value="" />
<asp:ListItem Text="Cardiology" Value="Cardiology" />
<asp:ListItem Text="Neurology" Value="Neurology" />
<asp:ListItem Text="Pediatrics" Value="Pediatrics" />
<asp:ListItem Text="Orthopedics" Value="Orthopedics" />
<asp:ListItem Text="Medicine" Value="Medicine" />
</asp:DropDownList>
<asp:Button ID="btnFetchDoctors" runat="server" Text="Fetch Doctors" CssClass="asp-button" OnClick="btnFetchDoctors_Click" Height="20px" Width="98px" Font-Bold="True" Font-Size="8pt" />
</div>
<div class="form-row">
<label for="doctor">Doctor Name:</label>
<asp:DropDownList ID="ddlDoctor" runat="server" AutoPostBack="False" CssClass="form-control"></asp:DropDownList>
<asp:Button ID="btnFetchSlots" runat="server" Text="Fetch Slots" CssClass="asp-button" OnClick="btnFetchSlots_Click" Height="20px" Width="86px" Font-Bold="True" Font-Size="8pt" />
</div>
<div class="form-row">
<label for="slot">Preferred Slot:</label>
<asp:DropDownList ID="ddlSlot" runat="server" AutoPostBack="False" CssClass="form-control"></asp:DropDownList>
</div>
<div class="form-actions">
<asp:Button ID="btnBookAppointment" runat="server" Text="Book Appointment" CssClass="asp-button" OnClick="btnBookAppointment_Click" BackColor="#3399FF" BorderColor="#3399FF" Font-Bold="True" />
</div>
<asp:Label ID="lblMessage" runat="server" CssClass="message" />
</div>
</form>
</div>
</body>
</html>