112 lines
3.8 KiB
PHP
112 lines
3.8 KiB
PHP
|
<script>
|
||
|
function validate() {
|
||
|
|
||
|
save_medicine();
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
|
||
|
|
||
|
<style>
|
||
|
#modal-add-medicine {
|
||
|
overflow-y: scroll;
|
||
|
}
|
||
|
</style>
|
||
|
|
||
|
<div class="modal fade" id="model-checkup-rule" role="dialog" aria-hidden="true">
|
||
|
<form role="form" id="checkup_rule_form" name="checkup_rule_form" action="#" method="post">
|
||
|
<div class="modal-dialog">
|
||
|
<div class="modal-content">
|
||
|
<div class="widget-header">
|
||
|
<h5 class="widget-title"> Rule Generation Form</h5>
|
||
|
<div class="widget-toolbar">
|
||
|
<div class="widget-menu">
|
||
|
<a href="#" class="close" data-action="close" data-dismiss="modal">
|
||
|
<i class="ace-icon fa fa-times"></i>
|
||
|
</a>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="modal-body">
|
||
|
<div class="row">
|
||
|
<div class="form-group col-sm-12">
|
||
|
<label for="firm_code">Select Section Name</label>
|
||
|
<select name="checkup_section_id" id="checkup_section_id" onchange="selectpar(this.value);" class="form-control">
|
||
|
<?php echo generateOption('checkup_form_section', 'section_name', 'section_id', '', '');
|
||
|
?>
|
||
|
</select>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
<div class="row">
|
||
|
<div class="form-group col-sm-12">
|
||
|
<label for="firm_code">Checkup Parameter Name</label>
|
||
|
<select name="checkup_parameter_id" id="checkup_parameter_id" class="form-control">
|
||
|
<option value="" disabled selected>select paramter</option>
|
||
|
</select>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div class="row">
|
||
|
<div class="form-group col-sm-6">
|
||
|
<label for="firm_code">Min</label>
|
||
|
<input type="number" class="form-control" name="checkup_starting_range" id="checkup_starting_range" autofocus="autofocus" value="" placeholder="Enter Starting Range" required />
|
||
|
</div>
|
||
|
<div class="form-group col-sm-6">
|
||
|
<label for="firm_code">Max</label>
|
||
|
<input type="number" class="form-control" name="checkup_ending_range" id="checkup_ending_range" autofocus="autofocus" value="" placeholder="Enter Ending Range" required />
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
<div class="row">
|
||
|
<div class="form-group col-sm-4">
|
||
|
<label for="firm_code">Less than</label>
|
||
|
<select multiple="" style="" class="chosen-select form-control" id="checkup_less_risk" name="checkup_less_risk[]" data-placeholder="">
|
||
|
<?php echo generateOption('health_risk', 'health_risk_name', 'health_risk_id', '', ''); ?>
|
||
|
</select>
|
||
|
</div>
|
||
|
<div class="form-group col-sm-4">
|
||
|
<label for="firm_code">More than</label>
|
||
|
<select multiple="" style="" class="chosen-select form-control" id="checkup_more_risk" name="checkup_more_risk[]" data-placeholder="">
|
||
|
<?php echo generateOption('health_risk', 'health_risk_name', 'health_risk_id', '', ''); ?>
|
||
|
</select>
|
||
|
</div>
|
||
|
<div class="form-group col-sm-4">
|
||
|
<label for="firm_code">Equal to</label>
|
||
|
<select multiple="" style="" class="chosen-select form-control" id="checkup_more_risk" name="checkup_more_risk[]" data-placeholder="">
|
||
|
<?php echo generateOption('health_risk', 'health_risk_name', 'health_risk_id', '', ''); ?>
|
||
|
</select>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
</div>
|
||
|
<div class="widget-toolbox padding-8 clearfix">
|
||
|
<button type="button" class="btn btn-info btn-sm save_button" onclick="save_checkup_parameter();"><i class="ace-icon fa fa-floppy-o bigger-110"></i>Save </button>
|
||
|
<button type="button" class="btn btn-danger btn-sm" data-dismiss="modal"><i class="ace-icon fa fa-times bigger-110"></i>Cancel</button>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
</form>
|
||
|
</div>
|
||
|
<script type="text/javascript">
|
||
|
function selectpar(checkup_section_id) {
|
||
|
$("#checkup_section_id").val();
|
||
|
$.ajax({
|
||
|
type: "POST",
|
||
|
url: "get_checkup_parameter.php",
|
||
|
data: {
|
||
|
'checkup_section_id': checkup_section_id
|
||
|
},
|
||
|
success: function(data) {
|
||
|
$("#checkup_parameter_id").html(data);
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
</script>
|