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

149 lines
5.3 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'); ?>
<!--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">Pending Consultation</li>
</ul>
</div>
<!-- End of breadcrumb -->
<div>
<form name="f1" method="post" action=""id="flex_form_unit">
<div id="flex1" style="width:100%">
</div>
<input type="hidden" name="flex_unit_id" id="flex_unit_id"/>
</form>
<form name="export_form" method="post" id="export_form" action="">
<input type="hidden" name="flex_medical_form" id="flex_medical_form"/>
<input type="hidden" name="pdf_action" id="pdf_action" value="pdf_pending_patient_list.php"/>
<input type="hidden" name="excel_action" id="excel_action" value="excel_pending_patient_list.php"/>
</form>
</div>
</div><!-- /.page-content -->
</div>
</div><!-- /.main-content -->
<script>
$(function() {
var w=screen.width*.90;
h =(screen.height-($("#navbar").height()+$(".breadcrumbs").height()))*.67;
$("#flex1").flexigrid({
url: 'visitor_pending_patient_list_script.php',
dataType: 'json',
colModel : [
{display: 'Sr', name : 'count', width : w*.05, sortable : false, align: 'left'},
{display: '', name : 'link', width : w*.1, sortable : false, align: 'left'},
{display: 'Date', name : 'appointment_date', width : w*.1, sortable : true, align: 'left'},
{display: 'Ticket No', name : 'ticket_no', width : w*.06, sortable : false, align: 'left'},
{display: 'Token No', name : 'ticket_no', width : w*.06, sortable : false, align: 'left'},
{display: 'ECode/G.Pass No ', name : '', width : w*.08, sortable : true, align: 'left'},
{display: 'Patient Name', name : 'patient_name', width : w*.15, sortable : true, align: 'left'},
{display: 'Complaints', name : 'complaints', width : w*.15, sortable : true, align: 'left'},
{display: 'Emergency?', name : 'IsEmergency', width : w*.06, sortable : true, align: 'left'},
{display: 'Injury?', name : 'appointment_type', width : w*.06, sortable : true, align: 'left'},
{display: 'Vitals', name : 'followup', width : w*.1, sortable : false, align: 'left'},
{display: 'Reception Remarks', name : 'remarks_rece', width : w*.15, sortable : true, align: 'left'}
],
buttons : [
{name: 'PDF', bclass: 'print', onpress : pdf},
{separator: true},
{name: 'Excel', bclass: 'print_excel', onpress : excel},
{separator: true},
],
searchitems : [
{display: 'Ticket No', name : 'ticket_no',isdefault: true},
{display: 'ECode/G.Pass', name : 'emp_code',isdefault: true},
{display: 'Appointment Date (dd/mm/yyyy)', name : 'appointment_date'},
{display: 'Patient Name', name : 'patient_name',isdefault: true},
{display: 'Complaints', name : 'complaints',isdefault: true},
{display: 'Emergency', name : 'isEmergency',isdefault: true},
{display: 'Injury', name : 'isInjury',isdefault: true},
{display: 'Remarks', name : 'remarks_rece',isdefault: true},
],
sortname: "appointment_date",
sortorder: "desc",
usepager: true,//pagination
//title:"Employee OPD",
useRp: true,
rp: 50,//records per page
showTableToggleBtn: false,//toggle button for the whole table
resizable: true,
// width: w,
height:h,
singleSelect: true
});
});
function pdf(){
window.open('ajax_pdf.php','Pending Patient List');
}
function excel(){
window.open('ajax_excel.php','Pending Patient List');
}
function delete_employee_appointment_history(appointment_id){
//$("#flex_appointment_id").val(appointment_id);
BootstrapDialog.confirm('Are you sure to delete?', function(result){
if(result) {
$.ajax({
url : 'delete_appointment.php',
type : "POST",
data : {flex_appointment_id:appointment_id},
success : function(data) {
if(data.indexOf("SUCCESS")!=-1){
var history_record= $("#history_record").text();
$('#history_record').text(parseInt(history_record)-1);
BootstrapDialog.alert('Deleted Successfully.');
$("#flex1").flexReload();
//loadAppointmentHistory('<?php echo $_REQUEST['flex_opd_id']?>');
}else{
BootstrapDialog.alert('Error Deleting');
}
return;
},
error : function(data) {
BootstrapDialog.alert('Error Deleting');
return;
}
});
}
});
}
</script>
<?php include 'techsyn_footer.php'; ?>