-
Notifications
You must be signed in to change notification settings - Fork 1
/
profile.php
194 lines (178 loc) · 8.04 KB
/
profile.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 include('session.php');
if ($type == "patient") {
// SQL Query To Fetch Complete Information Of Patient
$ses_sql=mysqli_query($connection, "SELECT * FROM Patient WHERE SSN='$SSN'");
}
else if ($type == "doctor") {
// SQL Query To Fetch Complete Information Of Doctor
$ses_sql=mysqli_query($connection, "SELECT * FROM Doctor WHERE SSN='$SSN'");
}
$row = mysqli_fetch_assoc($ses_sql);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- style sheets -->
<link rel="stylesheet" type="text/css" href="bower_components/bootstrap/dist/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="bower_components/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="bower_components/fullcalendar/dist/fullcalendar.css">
<link rel="stylesheet" type="text/css" href="styles/mainstyle.css">
<!-- <link href='http://fonts.googleapis.com/css?family=Lato' rel='stylesheet' type='text/css'> -->
<title>Profile</title>
</head>
<body>
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.php"><span class="fa fa-user-md navIcon"></span>I.H.S </a>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li>
<a href="index.php"> <span class="fa fa-calendar navIcon"></span>Appointments <span class="sr-only">(current)</span></a>
</li>
<li><a href="patients.php" <?php if ($type == "patient") { echo ("style=\"display:none\""); }?>><span class="fa fa-users navIcon"></span>Patients</a></li>
<li class="active"><a href="profile.php"><span class="fa fa-universal-access navIcon"></span>Profile</a></li>
</ul>
<!-- <form class="nav navbar-nav navbar-form" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search...">
</div> -->
<!-- <button type="submit" class="btn btn-default">Submit</button> -->
<!-- </form> -->
<ul class="nav navbar-nav navbar-right">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"> <span class="fa fa-user navIcon"></span><?php echo $first_name . ' ' . $surname; ?><span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<li><a href="profile.php"><span class="fa fa-cog navIcon"></span> Profile</a></li>
<li class="divider"></li>
<li><a href="logout.php"><span class="fa fa-power-off navIcon"></span> Logout</a></li>
</ul>
</li>
</ul>
</div>
</div>
</nav>
<div class="container">
<div class="row">
<div class="col-md-12">
<h1 class="page-header"><span class="fa fa-info-circle"></span> Profile</h1>
</div>
</div>
<div class="row">
<div class="col-md-3">
<p class="headProf">SSN:</p>
</div>
<div class="col-md-9">
<p class="contProf"><?php echo($SSN); ?></p>
</div>
</div>
<div class="row">
<div class="col-md-3">
<p class="headProf">Name:</p>
</div>
<div class="col-md-9">
<p class="contProf"><?php echo($first_name); ?></p>
</div>
</div>
<div class="row">
<div class="col-md-3">
<p class="headProf">Surname:</p>
</div>
<div class="col-md-9">
<p class="contProf"><?php echo($surname); ?></p>
</div>
</div>
<div class="row" <?php if ($type == "patient") { echo ("style=\"display:none\""); }?>>
<div class="col-md-3">
<p class="headProf">Specialty:</p>
</div>
<div class="col-md-9">
<p class="contProf"><?php echo($row['specialty']); ?></p>
</div>
</div>
<div class="row" <?php if ($type == "doctor") { echo ("style=\"display:none\""); }?>>
<div class="col-md-3">
<p class="headProf" >Father's Name:</p>
</div>
<div class="col-md-9">
<p class="contProf"><?php echo($row['fathers_name']); ?></p>
</div>
</div>
<div class="row" <?php if ($type == "doctor") { echo ("style=\"display:none\""); }?>>
<div class="col-md-3">
<p class="headProf">Mother's Name:</p>
</div>
<div class="col-md-9">
<p class="contProf"><?php echo($row['mothers_name']); ?></p>
</div>
</div>
<div class="row" <?php if ($type == "doctor") { echo ("style=\"display:none\""); }?>>
<div class="col-md-3">
<p class="headProf">Gender:</p>
</div>
<div class="col-md-9">
<p class="contProf"><?php echo($row['sex']); ?></p>
</div>
</div>
<div class="row" <?php if ($type == "doctor") { echo ("style=\"display:none\""); }?>>
<div class="col-md-3">
<p class="headProf">Home address:</p>
</div>
<div class="col-md-9">
<p class="contProf"><?php echo($row['residence']); ?></p>
</div>
</div>
<div class="row" <?php if ($type == "doctor") { echo ("style=\"display:none\""); }?>>
<div class="col-md-3">
<p class="headProf">Phone Number:</p>
</div>
<div class="col-md-9">
<p class="contProf"><?php echo($row['phone_home']); ?></p>
</div>
</div>
<div class="row" <?php if ($type == "doctor") { echo ("style=\"display:none\""); }?>>
<div class="col-md-3">
<p class="headProf">Mobile Number:</p>
</div>
<div class="col-md-9">
<p class="contProf"><?php echo($row['phone_cell']); ?></p>
</div>
</div>
<div class="row" <?php if ($type == "doctor") { echo ("style=\"display:none\""); }?>>
<div class="col-md-3">
<p class="headProf">Work Number:</p>
</div>
<div class="col-md-9">
<p class="contProf"><?php echo($row['phone_work']); ?></p>
</div>
</div>
<div class="row" <?php if ($type == "doctor") { echo ("style=\"display:none\""); }?>>
<div class="col-md-3">
<p class="headProf">Critical issues:</p>
</div>
<div class="col-md-9">
<p class="contProf"><?php echo($row['health_info']); ?></p>
</div>
</div>
</div>
<!-- scripts -->
<script type="text/javascript" src="bower_components/jquery/dist/jquery.min.js"></script>
<script type="text/javascript" src="bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<script type="text/javascript" src="bower_components/moment/min/moment.min.js"></script>
<script type="text/javascript" src="bower_components/fullcalendar/dist/fullcalendar.js"></script>
<script>
/* Initializing Calendar */
$(document).ready(function() {
});
</script>
</body>
</html>