-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakeReservation.php
135 lines (105 loc) · 4.42 KB
/
MakeReservation.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
<?php
include('config.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">
body {
background-image: url('assets/images/p1.jpg');
background-repeat: no-repeat;
background-attachment: fixed;
background-position-y: top;
background-size: 100%;
opacity: 0.9;
filter:alpha(opacity=90);
}
</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="PatientProfile.php">Profile</a>
</li>
<li class="nav-item">
<a class="nav-link " href=PatientReservationDetails.php>Reservation Details</a>
</li>
<li class="nav-item">
<a class="nav-link" href="AboutDoctors.php">About Doctors</a>
</li>
<li class="nav-item">
<a class="nav-link" href="SearchFordoctors.php">Search for Doctor</a>
</li>
<li class="nav-item">
<a class="nav-link active" href=#>Make a Reservation</a>
</li>
</ul>
<?php
echo "<br>";
echo '<b>'.'Username : '.'</b>' . $_SESSION['username'];
echo "<br>";
?>
<!--form for make appointment !-->
<div class="container">
<div class="center card border-primary mb-3" style="max-width: 40rem; margin: auto; top : 20px;">
<div class="card-header"><center><h2>Select a Doctor For Reservation</h2></center></div>
<div class="card-body">
<?php if ($_SESSION['searchalertmsg'] != ''): ?>
<div class="alert alert-dismissible alert-warning">
<button type="button" class="close" data-dismiss="alert">×</button>
<h4 class="alert-heading">Warning!</h4>
<p class="mb-0"> <?php echo $_SESSION['searchalertmsg'] ?> </p>
</div>
<?php $_SESSION['searchalertmsg'] = ''; ?>
<?php endif; ?>
<form action="MakeReservation1.php" method="post" autocomplete="on">
<fieldset>
<div class="form-group">
<label for="SelectDoctor">Select Doctor</label>
<select class="form-control" name="docUsername" id="Select Doctor" required>
<option value="">Select Doctor</option>
<?php
$query = "SELECT * FROM basicdetaildoctor";
$results = $mysqli->query($query);
if ($results){
while ($obj = $results->fetch_object()) {
$doctorNames =$obj->title . " " . ucfirst($obj->firstname) . " " .ucfirst($obj->lastname) ;
$docusername = $obj->username; ?>
<option value="<?php echo $docusername; ?>"><?php echo $doctorNames; ?></option>
<?php
}
}
?>
</select>
</div>
<button type="submit" name="submit" class="btn btn-success btn-lg" style="font-size:24px; texregchr.phpt-align:right;">Search <i class="fa fa-handshake-o" style="font-size:24px;"></i></button>
</div>
<script src='assets/js/vue.js'></script>
<script src='assets/js/vue-select.js'></script>
</body>
</html>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>