126 lines
4.3 KiB
PHP
126 lines
4.3 KiB
PHP
<script>
|
|
function validate(){
|
|
var checkup_mgmt_name = $('#checkup_mgmt_name').val();
|
|
if(checkup_mgmt_name == ''){
|
|
BootstrapDialog.alert('Please Enter Checkup Mgmt Name.!!!');
|
|
return false;
|
|
}
|
|
|
|
save_checkup_mgmt();
|
|
}
|
|
</script>
|
|
<style>
|
|
#modal-add-ailment{
|
|
overflow-y:scroll;
|
|
}
|
|
</style>
|
|
<div class="modal fade" id="modal-add-checkup-mgmt" name="modal-add-checkup-mgmt" role="dialog" aria-hidden="true">
|
|
<form role="form" id="checkup_mgmt_form" name="checkup_mgmt_form" action="#" method="post">
|
|
<div class="modal-dialog">
|
|
<div class="modal-content">
|
|
<div class="widget-header">
|
|
<h5 class="widget-title">Checkup Schedule 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="form-group">
|
|
<label for="role">Checkup Mgmt Name</label>
|
|
<input type="hidden" class="form-control" name="checkup_mgmt_id"
|
|
id="checkup_mgmt_id" value="" required/>
|
|
|
|
|
|
|
|
|
|
<select class="form-control"
|
|
id="checkup_mgmt_name" name="checkup_mgmt_name"
|
|
data-placeholder="Chose Checkup Type" onchange="load_checkup_header(this.value)">
|
|
<option value="" selected disabled>--Select Checkup Type--</option>
|
|
|
|
<?php
|
|
if($_REQUEST['checkup_mgmt_name']==''){
|
|
echo generateOption('checkup_type','checkup_type_name','checkup_type_id',$_REQUEST['checkup_type_id_db'],'');
|
|
|
|
}else{
|
|
echo generateOption('checkup_type','checkup_type_name','checkup_type_id',$_REQUEST['checkup_type_id'],'');
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
?>
|
|
</select>
|
|
|
|
|
|
|
|
</div>
|
|
<div class="form-group">
|
|
<div class="row">
|
|
<div class="col-sm-6">
|
|
<label for="ailment">From Date</label>
|
|
|
|
<div class="input-group">
|
|
<input style=" height:30px" class="form-control date-picker" name="from_date" id="from_date" type="text" data-date-format="dd/mm/yyyy" />
|
|
<span class="input-group-addon">
|
|
<i class="fa fa-calendar bigger-110"></i>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
<div class="col-sm-6">
|
|
<label for="ailment">To Date</label>
|
|
<div class="input-group">
|
|
<input style=" height:30px" class="form-control date-picker" name="to_date" id="to_date" type="text" data-date-format="dd/mm/yyyy" />
|
|
<span class="input-group-addon">
|
|
<i class="fa fa-calendar bigger-110"></i>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
<label for="ailment">Checkup By</label>
|
|
<input type="text" class="form-control" name="checkup_by"
|
|
id="checkup_by" placeholder="" required/>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="ailment"> Location</label>
|
|
<input type="text" class="form-control" name="checkup_location"
|
|
id="checkup_location" placeholder="" required/>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="ailment"> Remarks</label>
|
|
<input type="text" class="form-control" name="remarks"
|
|
id="remarks" placeholder="" required/>
|
|
</div>
|
|
<!-- <div class="form-group">
|
|
<label for="ailment">Checkup Mode</label>
|
|
<select class="chosen-select form-control" id="training_mode_id" name="training_mode_id" data-placeholder="Chose Checkup Type" >
|
|
<option value=""></option>
|
|
<?php // echo generateOption('training_mode','training_mode_name','training_mode_id','',''); ?>
|
|
</select>
|
|
</div>-->
|
|
|
|
</div>
|
|
<div class="widget-toolbox padding-8 clearfix" >
|
|
<button type="button" class="btn btn-info btn-sm save_button" onclick="validate();"><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>
|
|
|