283 lines
10 KiB
PHP
283 lines
10 KiB
PHP
|
<!-- bootstrap & fontawesome -->
|
||
|
<?php
|
||
|
error_reporting(E_ALL & ~ E_NOTICE & ~ E_DEPRECATED & ~E_WARNING);
|
||
|
include ('includes/config/config.php');
|
||
|
|
||
|
?>
|
||
|
<link rel="stylesheet"
|
||
|
href="assets/font-awesome/4.5.0/css/font-awesome.min.css" />
|
||
|
|
||
|
<!-- page specific plugin styles -->
|
||
|
<link rel="stylesheet" href="assets/css/jquery-ui.custom.min.css" />
|
||
|
<link rel="stylesheet" href="assets/css/chosen.min.css" />
|
||
|
<link rel="stylesheet" href="assets/css/bootstrap-datepicker3.min.css" />
|
||
|
<link rel="stylesheet" href="assets/css/bootstrap-timepicker.min.css" />
|
||
|
<link rel="stylesheet" href="assets/css/daterangepicker.min.css" />
|
||
|
<link rel="stylesheet"
|
||
|
href="assets/css/bootstrap-datetimepicker.min.css" />
|
||
|
<link rel="stylesheet" href="assets/css/bootstrap-colorpicker.min.css" />
|
||
|
<link rel="stylesheet"
|
||
|
href="adminlte/bower_components/bootstrap/less/type.less" />
|
||
|
<script src="assets/js/jquery-ui.custom.min.js"></script>
|
||
|
<script src="assets/js/jquery.ui.touch-punch.min.js"></script>
|
||
|
<script src="assets/js/chosen.jquery.min.js"></script>
|
||
|
<script src="assets/js/spinbox.min.js"></script>
|
||
|
<script src="assets/js/bootstrap-datepicker.min.js"></script>
|
||
|
<script src="assets/js/bootstrap-timepicker.min.js"></script>
|
||
|
<script src="assets/js/jquery.dataTables.min.js"></script>
|
||
|
<script src="assets/js/jquery.dataTables.bootstrap.min.js"></script>
|
||
|
<script src="assets/js/dataTables.buttons.min.js"></script>
|
||
|
<script src="assets/js/buttons.flash.min.js"></script>
|
||
|
<script src="assets/js/buttons.html5.min.js"></script>
|
||
|
<script src="assets/js/buttons.print.min.js"></script>
|
||
|
<script src="assets/js/buttons.colVis.min.js"></script>
|
||
|
<script src="assets/js/dataTables.select.min.js"></script>
|
||
|
|
||
|
|
||
|
<script src="assets/js/moment.min.js"></script>
|
||
|
<script src="assets/js/daterangepicker.min.js"></script>
|
||
|
<script src="assets/js/bootstrap-datetimepicker.min.js"></script>
|
||
|
<script src="assets/js/bootstrap-colorpicker.min.js"></script>
|
||
|
<script src="assets/js/jquery.knob.min.js"></script>
|
||
|
<script src="assets/js/autosize.min.js"></script>
|
||
|
<script src="assets/js/jquery.inputlimiter.min.js"></script>
|
||
|
<script src="assets/js/jquery.maskedinput.min.js"></script>
|
||
|
<script src="assets/js/bootstrap-tag.min.js"></script>
|
||
|
<script src="assets/js/ace-elements.min.js"></script>
|
||
|
|
||
|
<script type="text/javascript">
|
||
|
|
||
|
$(document).ready(function () {
|
||
|
$(".glyphicon").css("top","");
|
||
|
|
||
|
});
|
||
|
|
||
|
|
||
|
</script>
|
||
|
|
||
|
<form id="opd_form" method="post">
|
||
|
<div class="widget-box box box-success" id="opd_form_pdf">
|
||
|
<div class="widget-header" data-action="fullscreen">
|
||
|
<h5 class="widget-title">visitor OPD Visit</h5>
|
||
|
<div class="widget-toolbar" style="float: right">
|
||
|
<div class="clearfix">
|
||
|
<div class="pull-right tableTools-container">
|
||
|
<div class="dt-buttons btn-overlap btn-group">
|
||
|
|
||
|
|
||
|
<a
|
||
|
class="dt-button buttons-csv buttons-html5 btn btn-white btn-primary btn-bold" id="forwardButton"
|
||
|
tabindex="0" aria-controls="dynamic-table"
|
||
|
data-original-title="Send To Pharmacy" onClick="save_appointment();" title="Save"><span><i
|
||
|
class="fa fa-save bigger-110 blue"></i> <span
|
||
|
class="hidden">Save</span></span></a>
|
||
|
|
||
|
<a id="hide"
|
||
|
class="dt-button buttons-print btn btn-white btn-primary btn-bold"
|
||
|
onclick="exporttopdf();" tabindex="0"
|
||
|
aria-controls="dynamic-table" data-original-title="Print" title="Print"><span ><i
|
||
|
class="fa fa-print bigger-110 grey"></i> <span class="hidden">Print</span></span></a>
|
||
|
|
||
|
|
||
|
<a
|
||
|
class="dt-button buttons-print btn btn-white btn-primary btn-bold"
|
||
|
data-action="fullscreen" tabindex="0"
|
||
|
aria-controls="dynamic-table" data-original-title="Maximize" title="Maximize"><span><i
|
||
|
class="fa fa fa-expand bigger-110 grey"></i> <span
|
||
|
class="hidden">Maximize</span></span></a>
|
||
|
<input type="hidden" name="attendedStatus" id="attendedStatus" value="<?php echo $__STATUS_RECEPTIONIST_ATTENDED?>"/>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="widget-body">
|
||
|
<div class="widget-main">
|
||
|
<div class="row">
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<div class="col-xs-6 table-responsive">
|
||
|
<div class="widget-box box box-info">
|
||
|
|
||
|
<div class="widget-body">
|
||
|
<div class="widget-main">
|
||
|
<div class="row">
|
||
|
<div class="col-sm-5">
|
||
|
<label class="control-label" for="appointment_id"><strong
|
||
|
style="font-size: 11px">visitor Ticket No:</strong></label>
|
||
|
|
||
|
<?php
|
||
|
//$ticket_no = getTableFieldValue('employee_appointment','max(appointment_id)');
|
||
|
$ticket_no= creatingTicketNo();
|
||
|
|
||
|
?>
|
||
|
<input id="ticket_no"
|
||
|
type="hidden"
|
||
|
name="ticket_no"
|
||
|
value="<?php echo $ticket_no;?>" /> <input
|
||
|
id="appointment_id" type="hidden" name="appointment_id" />
|
||
|
|
||
|
<div class="input-group">
|
||
|
|
||
|
|
||
|
<?php echo $ticket_no;?>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
<div class="col-xs-2"></div>
|
||
|
<div class="col-sm-5" style="padding-left:0px;">
|
||
|
<label class="control-label" for="appointment_date"><strong
|
||
|
style="font-size: 11px">Visit Date</strong></label>
|
||
|
|
||
|
<div class="input-group">
|
||
|
<input id="emp_id" name="emp_id" type="hidden"
|
||
|
value="<?php echo ($_REQUEST['flex_opd_id']!=''?$_REQUEST['flex_opd_id']:$_REQUEST['flex_patient_id'])?>" /> <input
|
||
|
id="appointment_type" name="appointment_type"
|
||
|
type="hidden" value="VO" /> <input id="appointment_date"
|
||
|
type="text" style="height: 30px" class="form-control"
|
||
|
name="appointment_date" /> <span
|
||
|
class="input-group-addon"> <i
|
||
|
class="fa fa-clock-o bigger-110"
|
||
|
style="height: 5px; width: 30px"></i>
|
||
|
</span>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
<!-- <div class="col-sm-12">
|
||
|
<label class="control-label" for="form-field-select-1"><strong
|
||
|
style="font-size: 11px">Emergency?</strong></label> <select
|
||
|
class="form-control" style="height: 30px;" id="isEmergency"
|
||
|
name="isEmergency">
|
||
|
<option value="0" selected>No</option>
|
||
|
<option value="1">Yes</option>
|
||
|
</select>
|
||
|
</div> -->
|
||
|
</div>
|
||
|
<div class="space-6"></div>
|
||
|
<div class="row">
|
||
|
<div class="col-sm-12">
|
||
|
<div>
|
||
|
<input type="number" style="height: 30px;" class="col-xs-5" min="0" max="1000"
|
||
|
placeholder="SBP" id="sbp" name="sbp">
|
||
|
<div class="col-xs-2"></div><input type="number" min="0" max="1000"
|
||
|
style="height: 30px;" class="col-xs-5" id="DBP" name="dbp"
|
||
|
placeholder="DBP" min="0" max="1000"> <!-- <input type="number"
|
||
|
style="height: 30px;" class="col-xs-4" id="heart_rate"
|
||
|
name="heart_rate" placeholder="Heart Rate" min="0" max="200"> -->
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="space-6"></div>
|
||
|
<div class="row">
|
||
|
<div class="col-sm-12">
|
||
|
<div>
|
||
|
<!-- <input type="number" style="height: 30px;" class="col-xs-4" min="0" max="1000"
|
||
|
placeholder="FBS" id="fbs" name="fbs"> -->
|
||
|
<input type="number"
|
||
|
style="height: 30px;" class="col-xs-5" id="heart_rate"
|
||
|
name="heart_rate" placeholder="Heart Rate" min="0" max="200">
|
||
|
<div class="col-xs-2"></div>
|
||
|
<input type="number" min="0" max="1000"
|
||
|
style="height: 30px;" class="col-xs-5" id="chest_examination" name="chest_examination"
|
||
|
placeholder="Chest Examination">
|
||
|
<!-- <input type="number" min="0" max="1000"
|
||
|
style="height: 30px;" class="col-xs-4" id="ppbs" name="ppbs"
|
||
|
placeholder="PPBS"> -->
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="space-6"></div>
|
||
|
<div class="row">
|
||
|
<div class="col-sm-12">
|
||
|
<div>
|
||
|
<input type="number" style="height: 30px;" class="col-xs-5" min="0" max="1000"
|
||
|
placeholder="Temperature" id="temperature" name="temperature"
|
||
|
value="<?php echo $row['temperature']?>" maxlength="10">
|
||
|
<div class="col-xs-2"></div>
|
||
|
<input type="number" min="0" max="1000"
|
||
|
style="height: 30px;" class="col-xs-5" id="spo2_percent" name="spoc2_percent"
|
||
|
placeholder="SPOC2 Percent" value="<?php echo $row['spo2_percent']?>" maxlength="10">
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="col-sm-6">
|
||
|
<label class="control-label" for="appointment_id"><strong
|
||
|
style="font-size: 11px">visitor is:</strong></label>
|
||
|
|
||
|
<select name="entry_med_test" name="entry_med_test" id="entry_med_test">
|
||
|
<option value="fit">Fit For Entry</option>
|
||
|
<option value="unfit">Not Fit For Entry</option>
|
||
|
</select>
|
||
|
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</form>
|
||
|
|
||
|
<form id="pdfform" target="_blank">
|
||
|
<input type="hidden" id="appointment_id_pdf" name="appointment_id_pdf">
|
||
|
</form>
|
||
|
<script>
|
||
|
|
||
|
function save_appointment(){
|
||
|
$.ajax({
|
||
|
url : 'visitors_save_opd.php',
|
||
|
type : "POST",
|
||
|
data : $("#opd_form").serialize(),
|
||
|
success : function(data) {
|
||
|
var data = $.parseJSON(data);
|
||
|
// alert(data.appointment_id);
|
||
|
if(data.appointment_id!=null){
|
||
|
$("#appointment_id").val(data.appointment_id);
|
||
|
$("#appointment_id_pdf").val(data.appointment_id);
|
||
|
}
|
||
|
|
||
|
$('#flex1').flexReload();
|
||
|
BootstrapDialog.alert('Details Saved Successfully.');
|
||
|
},
|
||
|
error : function(data) {
|
||
|
BootstrapDialog.alert('Error Saving Details');
|
||
|
//return;
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
|
||
|
function exporttopdf(){
|
||
|
document.forms['pdfform'].action="visitor_examination_certificate.php";
|
||
|
document.forms['pdfform'].method="post";
|
||
|
document.forms['pdfform'].submit();
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
<style>
|
||
|
.modal-dialog {
|
||
|
padding: 15px;
|
||
|
width: 45%;
|
||
|
}
|
||
|
|
||
|
.form-control {
|
||
|
height: 30px;
|
||
|
}
|
||
|
|
||
|
.close {
|
||
|
font-size: 12px;
|
||
|
font-weight: 900;
|
||
|
}
|
||
|
|
||
|
.input-group-addon {
|
||
|
padding: unset;
|
||
|
}
|
||
|
</style>
|