185 lines
5.9 KiB
PHP
185 lines
5.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');
|
||
|
error_reporting(E_ERROR | E_PARSE);
|
||
|
?>
|
||
|
|
||
|
|
||
|
<!--breadcrumb-->
|
||
|
<div class="main-content">
|
||
|
<div class="main-content-inner">
|
||
|
<div class="breadcrumbs ace-save-state" id="breadcrumbs">
|
||
|
<ul class="breadcrumb">
|
||
|
<li class="#">
|
||
|
<i class="ace-icon fa fa-home home-icon"></i>
|
||
|
<a href="#">Home</a>
|
||
|
</li>
|
||
|
<li class="">Patient Visit</li><li class="active">PENDING IME WORK AT HEIGHT</li>
|
||
|
</ul>
|
||
|
|
||
|
</div>
|
||
|
<!-- End of breadcrumb -->
|
||
|
|
||
|
|
||
|
<div class="page-content">
|
||
|
|
||
|
<form name="flex_medical_form" method="post" action="" id="flex_medical_form">
|
||
|
|
||
|
<input type="hidden" name="medical_exam_id" id="medical_exam_id"/>
|
||
|
<input type="hidden" name="patient_id" id="patient_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_wah.php"/>
|
||
|
<input type="hidden" name="excel_action" id="excel_action" value="excel_wah.php"/>
|
||
|
</form>
|
||
|
|
||
|
<div id="flex1" style="width:100%">
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
</div><!-- /.page-content -->
|
||
|
</div>
|
||
|
</div><!-- /.main-content -->
|
||
|
|
||
|
|
||
|
|
||
|
<script type="text/javascript">
|
||
|
|
||
|
$(function () {
|
||
|
var w=screen.width*.90;
|
||
|
|
||
|
var h =0;
|
||
|
h =(window.innerHeight-($("#navbar").height()+$(".breadcrumbs").height()))*.75;
|
||
|
$("#flex1").flexigrid({
|
||
|
url: 'wah_grid_script.php',
|
||
|
dataType: 'json',
|
||
|
colModel: [
|
||
|
|
||
|
{display: 'Sr', name: 'count', width: w*.04, sortable: false, align: 'left'},
|
||
|
|
||
|
|
||
|
{display: 'Patient Name', name: 'patient_name', width: w*.16, sortable: true, align: 'left'},
|
||
|
|
||
|
//{display: 'Screening Date', name: 'medical_entry_date', width: w*.15, sortable: true, align: 'left'},
|
||
|
{display: 'GPASS/ECODE', name: 'emp_code', width: w*.07, sortable: true, align: 'left'},
|
||
|
|
||
|
{display: 'Patient Category', name: 'patient_cat_id', width: w*.1, sortable: true, align: 'left'},
|
||
|
{display: 'Department', name: 'dept_id', width: w*.1, sortable: true, align: 'left'},
|
||
|
{display: 'Employer/Contractor', name: 'employer_contractor_id', width: w*.1, sortable: true, align: 'left'},
|
||
|
|
||
|
//{display: 'Examination Type', name: '', width: w*.1, sortable: false, align: 'left'},
|
||
|
{display: 'AADHAR NO', name: 'aadhar_no', width: w*.12, sortable: true, align: 'left'},
|
||
|
{display: 'PHONE NO.', name: 'primary_phone', width: w*.11, sortable: true, align: 'left'},
|
||
|
{display: '', name: '', width: w*.1, sortable: false, align: 'left'},
|
||
|
//{display: 'Delete', name: '', width: w*.1, sortable: false, align: 'left'},
|
||
|
|
||
|
],
|
||
|
buttons: [
|
||
|
|
||
|
|
||
|
// {name: 'Download Template', bclass: 'print_excel', onpress : download_template},
|
||
|
{name: 'PDF', bclass: 'print', onpress : pdf},
|
||
|
{separator: true},
|
||
|
{name: 'Excel', bclass: 'print_excel', onpress : excel},
|
||
|
{separator: true}
|
||
|
// {name: 'Upload Excel', bclass: 'print_excel', onpress : upload_excel},
|
||
|
|
||
|
],
|
||
|
searchitems: [
|
||
|
|
||
|
{display: 'Patient Name', name: 'patient_name', isdefault: true},
|
||
|
{display: 'Aadhar No.', name: 'aadhar_no'},
|
||
|
{display: 'Department', name: 'dept_name'},
|
||
|
{display: 'GPASS/ECODE', name: 'emp_code'},
|
||
|
],
|
||
|
sortname: "a.last_modified",
|
||
|
sortorder: "desc",
|
||
|
usepager: true, //pagination
|
||
|
|
||
|
useRp: true,
|
||
|
rp: 50, //records per page
|
||
|
showTableToggleBtn: false, //toggle button for the whole table
|
||
|
resizable: true,
|
||
|
//width: w,
|
||
|
height: h,
|
||
|
singleSelect: true
|
||
|
});
|
||
|
});
|
||
|
|
||
|
|
||
|
function open_wah_form(patient_id){
|
||
|
|
||
|
if(patient_id!=null && patient_id!=''){
|
||
|
$("#patient_id").val(patient_id);
|
||
|
$("#flex_medical_form").attr('method', 'POST');
|
||
|
$("#flex_medical_form").attr('action', 'wah_questionaire.php');
|
||
|
//$("#flex_medical_form").attr('action', 'open_patient_physical_parameters.php?medical_exam_id='+medical_exam_id+'');
|
||
|
$("#flex_medical_form").submit();
|
||
|
}
|
||
|
|
||
|
}
|
||
|
function upload_excel(){
|
||
|
window.location = 'upload_excel_medical.php';
|
||
|
}
|
||
|
function download_template(){
|
||
|
window.location = 'templates/medical_Report_new.xlsx';
|
||
|
}
|
||
|
|
||
|
function pdf(){
|
||
|
window.open('pdf_wah.php','Patient List');
|
||
|
}
|
||
|
function excel(){
|
||
|
window.open('excel_wah.php','Report List');
|
||
|
}
|
||
|
|
||
|
function delete_medical_examination_form(medical_exam_id,patient_id,task){
|
||
|
if(medical_exam_id!='' && medical_exam_id!='' && patient_id!=null && patient_id!='' && task!="" && task!=""){
|
||
|
BootstrapDialog.confirm('Are you sure to delete Medical Examination Form?', function(result){
|
||
|
if(result) {
|
||
|
$.ajax({
|
||
|
url:'delete_medical_examination_form.php',
|
||
|
type:'POST',
|
||
|
data:{medical_exam_id:medical_exam_id,patient_id:patient_id,task:task},
|
||
|
dataType:'json',
|
||
|
success:function(data){
|
||
|
if(data.indexOf("SUCCESS")!=-1){
|
||
|
BootstrapDialog.alert("Medical Examination Form Deleted Successfully");
|
||
|
$('#flex1').flexReload();
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
},
|
||
|
error:function(data){
|
||
|
BootstrapDialog.alert(" Error In Deleting Medical Examination ");
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
});
|
||
|
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</script>
|
||
|
|
||
|
<?php include('techsyn_footer.php'); ?>
|
||
|
|
||
|
|
||
|
|