-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpatientaccount.php
86 lines (72 loc) · 3.03 KB
/
patientaccount.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
<?php
include("adheader.php");
include("dbconnection.php");
if(!isset($_SESSION[patientid]))
{
echo "<script>window.location='patientlogin.php';</script>";
}
$sqlpatient = "SELECT * FROM patient WHERE patientid='$_SESSION[patientid]' ";
$qsqlpatient = mysqli_query($con,$sqlpatient);
$rspatient = mysqli_fetch_array($qsqlpatient);
$sqlpatientappointment = "SELECT * FROM appointment WHERE patientid='$_SESSION[patientid]' ";
$qsqlpatientappointment = mysqli_query($con,$sqlpatientappointment);
$rspatientappointment = mysqli_fetch_array($qsqlpatientappointment);
?>
<div class=" container-fluid">
<div class="block-header">
<h2>Dashboard</h2>
</div>
<div class="card">
<div class="row clearfix">
<div class="col-lg-12 col-md-12 col-sm-12">
<div class="card">
<div class="header">
<div class="alert bg-teal">
<h3>Welcome , <?php echo $rspatient[patientname]; ?>! </h3>
</div>
</div>
</div>
</div>
</div>
<div class="row clearfix">
<div class="col-sm-12 col-md-12 col-lg-12">
<!-- Nav tabs -->
<ul class="nav nav-tabs">
<li class="nav-item"><a class="nav-link active" data-toggle="tab" href="#home_animation_1"
aria-expanded="true">Registration History</a></li>
<li class="nav-item"><a class="nav-link" data-toggle="tab" href="#profile_animation_1"
aria-expanded="false">Appointment</a></li>
</ul>
<!-- Tab panes -->
<div class="tab-content" style="padding: 10px">
<div role="tabpanel" class="tab-pane animated flipInX active" id="home_animation_1"
aria-expanded="true"> <b>Registration History</b>
<h3>You are with us from <?php echo $rspatient[admissiondate]; ?>
<?php echo $rspatient[admissiontime]; ?></h3>
</div>
<div role="tabpanel" class="tab-pane animated flipInX" id="profile_animation_1"
aria-expanded="false"> <b>Appointment</b>
<?php
if(mysqli_num_rows($qsqlpatientappointment) == 0)
{
?>
<h3>Appointment records not found.. </h3>
<?php
}
else
{
?>
<h3>Last Appointment taken on - <?php echo $rspatientappointment[appointmentdate]; ?>
<?php echo $rspatientappointment[appointmenttime]; ?> </h3>
<?php
}
?>
</div>
</div>
</div>
</div>
</div>
</div>
<?php
include("adfooter.php");
?>