-
Notifications
You must be signed in to change notification settings - Fork 0
/
addpatient2.php
194 lines (184 loc) · 10.8 KB
/
addpatient2.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
<?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();
}
?>">Register Patients</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>
<form method="POSt" action="addpatient_validate2.php">
<center>
<table align = 'centre' cellpadding = '2'>
<tr>
<td style="padding-top:10px" colspan="3">
<center> <h3>Register Patient</h3> </center>
</td>
</tr>
<tr>
<td colspan="3">
<center><img src="Images/AddU.png" width="120px" height="130px"> </center>
</td>
</tr>
<tr><td><br></td></tr>
<tr>
<td colspan="2">
<h4>Street Address</h4>
</td>
<td>
<h4>District</h4>
</td>
</tr>
<tr>
<td colspan="2">
<input style="width:400px; height:30px" name="street" type="text" placeholder="5 Bromptons Road.." value="<?php echo $_SESSION['street'] ?>">
</td>
<td>
<input style="width:200px; height:30px" name="district" type="text" placeholder="Chester.." value="<?php echo $_SESSION['district'] ?>">
</td>
</tr>
<tr>
<td>
<h4>City/Parish</h4>
</td>
<td>
<h4>Country</h4>
</td>
</tr>
<tr>
<td>
<input style="width:200px; height:30px" name="city" type="text" placeholder="Kingston.." value="<?php echo $_SESSION['city'] ?>">
</td>
<td>
<input style="width:200px; height:30px" name="country" type="text" placeholder="Jamaica.." value="<?php echo $_SESSION['country'] ?>">
</td>
<td> <?php echo $_SESSION['errAddress']; ?></td>
</tr>
<tr><td colspan="3"><br><hr></tr>
<tr>
<td colspan="2">
<h4>Email</h4>
</td>
<td>
<h4>Telephone</h4>
</td>
</tr>
<tr>
<td colspan="2">
<input style="width:400px; height:30px" name="email" type="email" placeholder="avocadomed@xmail.com.." value="<?php echo $_SESSION['email'] ?>">
</td>
<td>
<input style="padding-left:10px;width:200px; height:30px" name="phone" type="text" placeholder="XXX-XXX-XXXX" value="<?php echo $_SESSION['phone'] ?>">
</td>
<td> <?php echo $_SESSION['errEmail'],$_SESSION['errPhone']; ?></td>
</tr>
<tr><td></td></tr>
<tr>
<td>
<input type="reset" value="Clear">
</td>
<td>
<input id="back" name="Bbtn" type="submit" value="Back">
</td>
<td>
<input name="Sbtn" type="submit" value="Continue">
</td>
</tr>
</table>
</center>
</form>
</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>