241 lines
7.3 KiB
PHP
241 lines
7.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');
|
||
|
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 Medical Examinatuin For Driving License</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="forUpdate" id="forUpdate" />
|
||
|
<input type="hidden" name="medical_exam_id" id="medical_exam_id" />
|
||
|
<input type="hidden" name="patient_id" id="patient_id" />
|
||
|
<input type="hidden" name="response_id" id="response_id">
|
||
|
<input type="hidden" name="dlf_no" id="dlf_no">
|
||
|
</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: 'dlf_grid_pending_script.php',
|
||
|
dataType: 'json',
|
||
|
colModel: [{
|
||
|
display: '',
|
||
|
name: '',
|
||
|
width: w * .0,
|
||
|
sortable: false,
|
||
|
align: 'left'
|
||
|
},
|
||
|
|
||
|
{
|
||
|
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: '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'
|
||
|
},
|
||
|
],
|
||
|
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_dlf_form(patient_id, dlf_no, response_id) {
|
||
|
if (dlf_no != '' && response_id != '' && patient_id != null && patient_id != '') {
|
||
|
$("#forUpdate").val(response_id);
|
||
|
$("#patient_id").val(patient_id);
|
||
|
$("#response_id").val(response_id);
|
||
|
$("#dlf_no").val(dlf_no);
|
||
|
$("#flex_medical_form").attr('method', 'POST');
|
||
|
$("#flex_medical_form").attr('action', 'edit_dlf_pending.php');
|
||
|
$("#flex_medical_form").submit();
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
function open_dlf_pdf(patient_id, response_id, dlf_no) {
|
||
|
if (dlf_no != '' && response_id != '' && patient_id != null && patient_id != '') {
|
||
|
$("#patient_id").val(patient_id);
|
||
|
$("#response_id").val(response_id);
|
||
|
$("#dlf_no").val(dlf_no);
|
||
|
$("#flex_medical_form").attr('target', "_blank");
|
||
|
$("#flex_medical_form").attr('method', 'POST');
|
||
|
$("#flex_medical_form").attr('action', 'driving_licence_form_pdf_dlf.php');
|
||
|
$("#flex_medical_form").submit();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
function pdf() {
|
||
|
window.open('pdf_wah.php', 'Patient List');
|
||
|
}
|
||
|
|
||
|
function excel() {
|
||
|
window.open('excel_wah.php', 'Report List');
|
||
|
}
|
||
|
|
||
|
function delete_ffi_form(patient_id, response_id, ffi_no) {
|
||
|
if (ffi_no != '' && response_id != '' && patient_id != null && patient_id != '') {
|
||
|
BootstrapDialog.confirm('Are you sure to delete this Examination Form?', function(result) {
|
||
|
if (result) {
|
||
|
$.ajax({
|
||
|
url: 'delete_questionaire_examination_form.php',
|
||
|
type: 'POST',
|
||
|
data: {
|
||
|
response_id: response_id,
|
||
|
patient_id: patient_id,
|
||
|
ffi_no: ffi_no
|
||
|
},
|
||
|
dataType: 'json',
|
||
|
success: function(data) {
|
||
|
if (JSON.parse(data) == 1) {
|
||
|
BootstrapDialog.alert("Examination Form Deleted Successfully");
|
||
|
$('#flex1').flexReload();
|
||
|
}
|
||
|
},
|
||
|
error: function(data) {
|
||
|
BootstrapDialog.alert(" Error In Deleting Examination form ");
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
});
|
||
|
|
||
|
}
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
<?php include('techsyn_footer.php'); ?>
|