-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathReceptionistProfile.php
100 lines (79 loc) · 2.67 KB
/
ReceptionistProfile.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
<?php
include('config.php');
if (!array_key_exists("searchalertmsg",$_SESSION)) {
$_SESSION['searchalertmsg'] = '';
}
$currentdate = date("Y/m/d")
?>
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="https://bootswatch.com/4/flatly/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<title>Search for Doctors</title>
<style type="text/css">
</style>
</head>
<body>
<!--main navigation bar !-->
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<div class="collapse navbar-collapse" id="navbarColor02">
<ul class="navbar-nav mr-auto">
<li class="nav-item">
<a class="nav-link" href="Home.php">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="logout.php">Log Out</a>
</li>
</ul>
</div>
</nav>
<!--Receptionist navigation bar !-->
<ul class="nav nav-tabs">
<li class="nav-item">
<a class="nav-link active" data-toggle="tab" href=#>Profile</a>
</li>
<li class="nav-item">
<a class="nav-link " data-toggle="tab" href="AboutDoctorsRec.php">About Doctors</a>
</li>
<li class="nav-item">
<a class="nav-link " data-toggle="tab" href="SearchForDoctorsRec.php">Search for Doctor</a>
</li>
<li class="nav-item">
<a class="nav-link" href="ReservationByRec.php">Make a Reservation</a>
</li>
<li class="nav-item">
<a class="nav-link " data-toggle="tab" href="RegistrationRec.php">Registration</a>
</li>
<li class="nav-item">
<a class="nav-link" href="Payment.php">Payment</a>
</li>
</ul>
<!--Receptionist Detail !-->
<?php
echo "<br>";
echo '<b>'.' Username : '.'</b>' . $_SESSION['username'];
echo "<br>";
?>
<?php
$recUsername = $_SESSION['username'];
$query = "SELECT title, firstname, lastname, email,contactno, address,dob, gender FROM basicdetailstaff WHERE username='$recUsername'";
$result = $mysqli->query($query);
if($result){
$resultSet = mysqli_fetch_assoc($result);
}else{
echo "string";
}
?>
<div class="card mb-3" style="max-width: 40rem; margin: auto; top : 20px;" >
<h3 class="card-header"><center>Receptionistist Basic Detail</center> </h3>
<ul class="list-group list-group-flush">
<li class="list-group-item">Name : <?php echo $resultSet['firstname'].' '. $resultSet['lastname'] ?> </li>
<li class="list-group-item">Email : <?php echo $resultSet['email'] ?> </li>
<li class="list-group-item">Contact NO : <?php echo $resultSet['contactno']?> </li>
<li class="list-group-item">Address : <?php echo $resultSet['address']?> </li>
</ul>
</div>
<?php echo "<br>"; echo" <br>";?>
</head>
</html>