112 lines
3.2 KiB
PHP
112 lines
3.2 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">
|
|
<?php include('techsyn_sidebar.php'); ?>
|
|
<?php
|
|
//print_r($_REQUEST);
|
|
|
|
$id = ($_REQUEST['flex_opd_id'] != '' ? $_REQUEST['flex_opd_id'] : $_REQUEST['flex_patient_id']);
|
|
$query = "select * from patient_master 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['patient_name'];
|
|
?>
|
|
<!--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="page-content">
|
|
<div id="flexigridDiv" class="table-responsive">
|
|
<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>
|
|
|
|
|
|
|
|
|
|
<?php
|
|
$flex_opd_id = ($_REQUEST['flex_opd_id'] != '' ? $_REQUEST['flex_opd_id'] : $_REQUEST['flex_patient_id']);
|
|
|
|
$sql = "select * from employee_appointment where emp_id='" . $flex_opd_id . "' ";
|
|
$result = mysqli_query($conn, $sql);
|
|
$row1 = mysqli_fetch_array($result);
|
|
$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('opd_new.php'); ?>
|
|
</div>
|
|
<div id="history" class="tab-pane fade">
|
|
<?php include('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>
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
<!--end of outer col-xs-12">-->
|
|
</div>
|
|
<!--end of outer row-->
|
|
</div>
|
|
|
|
|
|
|
|
<?php include('techsyn_footer.php'); ?>
|