218 lines
7.3 KiB
PHP
218 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'); ?>
|
|
|
|
<!--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="#">Oxygen cylinder Checklist</li>
|
|
</ul>
|
|
</div>
|
|
<!-- End of breadcrumb -->
|
|
|
|
|
|
<div class="page-content">
|
|
<div id="flexigridDiv" class="table-responsive">
|
|
|
|
<form name="f1" method="post" action=""id="flex_form_role">
|
|
<div id="flex1" style="width:100%">
|
|
</div>
|
|
<input type="hidden" name="flex_role_id" id="flex_role_id"/>
|
|
<input type="hidden" name="cylinder_id" id="cylinder_id"/>
|
|
</form>
|
|
<form name="export_form" method="post" id="export_form" action="">
|
|
<input type="hidden" name="pdf_action" id="pdf_action" value="medicine_category_pdf.php"/>
|
|
<input type="hidden" name="excel_action" id="excel_action" value="medicine_category_excel.php"/>
|
|
</form>
|
|
</div>
|
|
|
|
|
|
|
|
</div><!-- /.page-content -->
|
|
</div>
|
|
</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: 'oxygen_cylinder_checklist_script.php',
|
|
dataType: 'json',
|
|
colModel : [
|
|
{display: 'Sr', name : 'count', width : w*.03, sortable : false, align: 'left'},
|
|
{display: '', name : 'link', width : w*.1, sortable : false, align: 'left'},
|
|
{display: 'Oxygen kit no', name : 'oxygen_cylinder_id', width : w*.20, sortable : true, align: 'left'},
|
|
{display: 'Date of receiving', name : 'date_receiving', width : w*.17, sortable : true, align: 'left'},
|
|
{display: 'Date of validity', name : 'date_validity', width : w*.17, sortable : true, align: 'left'},
|
|
{display: 'Issued Date', name : 'issue_date', width : w*.17, sortable : true, align: 'left'},
|
|
{display: 'Location', name : 'location', width : w*.17, sortable : true, align: 'left'},
|
|
{display: 'Check date', name : 'check_date', width : w*.17, sortable : true, align: 'left'},
|
|
{display: 'Pressure Reading', name : 'pressure_reading', width : w*.17, sortable : true, align: 'left'},
|
|
{display: 'Any Leakage(Y/N)', name : 'any_leakage', width : w*.17, sortable : true, align: 'left'},
|
|
{display: 'Cylinder valve closed', name : 'valve_closed', width : w*.17, sortable : true, align: 'left'},
|
|
{display: 'Status', name : 'status', width : w*.17, sortable : true, align: 'left'},
|
|
{display: 'Water Humidifier Replaced on', name : 'water_humidifier_date', width : w*.17, sortable : true, align: 'left'},
|
|
{display: 'Remarks', name : 'remarks', width : w*.17, sortable : true, align: 'left'},
|
|
{display: 'Checked By', name : 'checked_by', width : w*.17, sortable : true, align: 'left'},
|
|
],
|
|
buttons : [
|
|
|
|
|
|
{name: 'PDF', bclass: 'print', onpress : pdf},
|
|
{separator: true},
|
|
{name: 'Excel', bclass: 'print_excel', onpress : excel},
|
|
{separator: true}
|
|
],
|
|
searchitems : [
|
|
{display: 'Date of validity', name : 'date_validity'},
|
|
{display: 'Issued Date', name : 'issue_date'},
|
|
{display: 'Location', name : 'location'},
|
|
{display: 'Status', name : 'status'},
|
|
{display: 'Remarks', name : 'remarks'},
|
|
],
|
|
sortname: "id",
|
|
// sortorder: "type_description",
|
|
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 delete_cylinder(id){
|
|
$("#flex_role_id").val(id);
|
|
|
|
BootstrapDialog.confirm('Are you sure to delete?', function(result){
|
|
if(result) {
|
|
$.ajax({
|
|
url : 'delete_cylinder_checklist.php',
|
|
type : "POST",
|
|
data : $("#flex_form_role").serialize(),
|
|
success : function(data) {
|
|
if(data.indexOf("SUCCESS")!=-1){
|
|
BootstrapDialog.alert('Deleted Successfully.');
|
|
$("#flex1").flexReload();
|
|
|
|
}else{
|
|
BootstrapDialog.alert('Error Deleting');
|
|
}
|
|
return;
|
|
},
|
|
error : function(data) {
|
|
BootstrapDialog.alert('Error Deleting');
|
|
return;
|
|
}
|
|
});
|
|
}
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// function open_cylinder(id,access){
|
|
// if(access=='V'){
|
|
// $("#save_button").hide()
|
|
// }else if(access=='E')
|
|
// $("#save_button").show()
|
|
|
|
// $.ajax({
|
|
// url : 'oxygen_cylinder_checklist.php',
|
|
// data:{id:id},
|
|
// type : 'POST',
|
|
// dataType:'json',
|
|
// success : function(data) {
|
|
// $("#id").val(data.id);
|
|
// $("#oxygen_cylinder_id").val(data.oxygen_cylinder_id);
|
|
// $("#date_receiving").val(data.date_receiving);
|
|
// $("#date_validity").val(data.date_validity);
|
|
// $("#issue_date").val(data.issue_date);
|
|
// $("#location").val(data.location);
|
|
// $("#check_date").val(data.check_date);
|
|
// $("#pressure_reading").val(data.pressure_reading);
|
|
// $("#any_leakage").val(data.any_leakage);
|
|
// $("#valve_closed").val(data.valve_closed);
|
|
// $("#status").val(data.status);
|
|
// $("#water_humidifier_date").val(data.water_humidifier_date);
|
|
// $("#remarks").val(data.remarks);
|
|
// $("#checked_by").val(data.checked_by);
|
|
|
|
// // $('#modal-add-ambulance-form').modal("show");
|
|
// },
|
|
// error : function(data) {
|
|
// BootstrapDialog.alert('Error Populating Question Details');
|
|
// return;
|
|
// }
|
|
// });
|
|
|
|
|
|
|
|
// }
|
|
|
|
function open_checklist(id,action){
|
|
if(action=="V"){
|
|
document.forms['flex_form_role'].action = "oxygen_cylinder_checklist.php";
|
|
|
|
}else if(action=="E"){
|
|
document.forms['flex_form_role'].action = "oxygen_cylinder_checklist.php";
|
|
}
|
|
$("#flex_form_role").method = "post";
|
|
$("#flex_form_role").find("#flex_role_id").val(id);
|
|
$("#flex_form_role").submit();
|
|
}
|
|
function open_checklistnew(flex_role_id,checklist_id,action){
|
|
|
|
if(action=="V"){
|
|
location.href="view_checklist.php?flex_role_id="+flex_role_id+"&checklist_id="+checklist_id+"";
|
|
|
|
}else{
|
|
location.href="edit_checklist.php?flex_role_id="+flex_role_id+"&checklist_id="+checklist_id+"";
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
function pdf(){
|
|
window.open('cylinder_questionaire_pdf.php','QUESTIONS List');
|
|
}
|
|
function excel(){
|
|
window.open('cylinder_questionaire_excel.php','questions List');
|
|
}
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
<?php include('common_list.php'); ?>
|
|
<?php include('techsyn_footer.php'); ?>
|
|
<?php include('common_ace.php'); ?>
|
|
|
|
|
|
|