ESH/view_guest_opd.php
2024-10-23 18:28:06 +05:30

111 lines
3.9 KiB
PHP

<?php include('techsyn_header.php'); ?>
<!-- Main Content Container for side bar and body-->
<div class="main-container ace-save-state" id="main-container">
<script type="text/javascript">
try{ace.settings.loadState('main-container')}catch(e){}
</script>
<?php include('techsyn_sidebar.php'); ?>
<?php
error_reporting(E_ERROR | E_PARSE);
$id = $_REQUEST['flex_opd_id'];
$query = "select * from guest_patient where id = '".$id."' ";
//echo $query;
if (!$result = @mysqli_query($conn,$query)) {
exit(mysqli_error($conn));
} else{
$row=@mysqli_fetch_array($result);
@extract($row);
}
$page = $_REQUEST['page'];
//echo $row['fname'];
?>
<!--breadcrumb-->
<div class="main-content">
<div class="main-content-inner">
<div class="breadcrumbs ace-save-state" id="breadcrumbs">
<ul class="breadcrumb">
<li>
<i class="ace-icon fa fa-home home-icon"></i>
<a href="#">Home</a>
</li>
<li class="#">Patient Visit</li><li class="active">OPD</li>
</ul>
</div>
<div class="row">
<div class="col-xs-12">
<div class="widget-box">
<div class="widget-body">
<div class="widget-main">
<div class="row">
<div style="margin:5px;">
<div class="tabbable">
<ul class="nav nav-tabs" id="myTab">
<li id="appoint" class="active">
<a data-toggle="tab" href="#appointment" aria-expanded="false">
New OPD
<span class="badge badge-success">+</span>
</a>
</li>
<li class="">
<a data-toggle="tab" href="#home" aria-expanded="false">
<i class="green ace-icon fa fa-user bigger-120"></i>
<?php echo $fname?>'s Profile
</a>
</li>
<?php
$flex_opd_id=$_REQUEST['flex_opd_id'];
$sql="select count(*) as total from guest_appointment where guest_id='".$flex_opd_id."' and doctor_attended_flag='Y' ";
$result = mysqli_query($conn,$sql);
while($row = mysqli_fetch_array($result)){
$num_rows=$row['total'];
}
// $num_rows=@mysqli_num_rows($result);
if($num_rows=="" || $num_rows==null)
$num_rows=0;
?>
<li id="histo" class="">
<a data-toggle="tab" href="#history" aria-expanded="false" >
History
<span class="badge badge-danger" id="history_record" ><?php echo $num_rows?></span>
</a>
</li>
</ul>
<div class="tab-content">
<div id="appointment" class="tab-pane fade in active " >
<?php include('guest_opd_from.php'); ?>
</div>
<div id="home" class="tab-pane fade">
<?php include('guest_dashboard_embed.php'); ?>
</div>
<div id="history" class="tab-pane fade">
<?php include('guest_appointment_history.php'); ?>
</div>
</div>
</div><!--end tab table-->
</div><!--end of inner row-->
</div><!--end of widget-main -->
</div><!--end of inner widgetbody-->
</div><!--end of inner widgetbox-->
</div><!--end of xs-->
</div><!--end of inner widgetbody-->
</div>
</div><!--end of outer col-xs-12">-->
</div><!--end of outer row-->
</div>