-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAboutDoctorsRec.php
110 lines (94 loc) · 2.79 KB
/
AboutDoctorsRec.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
<?php
include('config.php');
include('sqlphpfunctions.php');
include('loginfirst.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="assets/css/style.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>
<!--Patient navigation bar !-->
<ul class="nav nav-tabs">
<li class="nav-item">
<a class="nav-link" href="ReceptionistProfile.php">Profile</a>
</li>
<li class="nav-item">
<a class="nav-link active" href="#">About Doctors</a>
</li>
<li class="nav-item">
<a class="nav-link " 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 " href="RegistrationRec.php">Registration</a>
</li>
<li class="nav-item">
<a class="nav-link" href="Payment.php">Payment</a>
</li>
</ul>
<!--form for make appointment !-->
<?php
echo "<br>";
echo '<b>'.' Username : '.'</b>' . $_SESSION['username'];
echo "<br>";
echo "<br>";
?>
<?php
$query = "SELECT title,firstname, lastname, dob, gender, specializationin FROM basicdetaildoctor";
$result = $mysqli->query($query);
if($result){
$table = '<table align = center>';
$table .= '<tr> <th>Doctor Name</th> <th>DoB</th> <th>Gender</th> <th>Specializationin</th></tr>' ;
while($record = mysqli_fetch_assoc($result)){
if($record['gender']==1){
$gender = 'Male';
}else{
$gender = 'Female';
}
$doctorName =$record['title'] . " " . ucfirst($record['firstname']) . " " .ucfirst($record['lastname']) ;
$table .= '<tr>';
$table .= '<td>'. $doctorName .'</td>';
$table .= '<td>'. $record['dob'] .'</td>';
$table .= '<td>'. $gender .'</td>';
$table .= '<td>'. allsplidtospl($record['specializationin']) .'</td>';
$table .= '</tr>';
}
$table .= '<table>';
}
?>
<style type="text/css">
table{border-collapse: collapse; margin: 10px 50px; align-content: center;align-self: center;}
th {
background-color: lightblue;
color: white;
}
td, th {border : 1px solid black; padding: 10px;}
</style>
<?php echo $table; ?>
</body>
</html>>