68 lines
2.2 KiB
PHP
68 lines
2.2 KiB
PHP
<script>
|
|
function validate(){
|
|
var class_name = $('#patient_cat_name').val();
|
|
if(class_name == ''){
|
|
BootstrapDialog.alert('Please Enter Patient Category Name.!!!');
|
|
return false;
|
|
}
|
|
/*var class_shortcode = $('#class_shortcode').val();
|
|
if(class_shortcode == ''){
|
|
BootstrapDialog.alert('Please Enter Patient Type Code.!!!');
|
|
return false;
|
|
}
|
|
var remarks = $('#remarks').val();
|
|
if(remarks == ''){
|
|
BootstrapDialog.alert('Please Enter Remarks.!!!');
|
|
return false;
|
|
}*/
|
|
save_patient_category();
|
|
}
|
|
</script>
|
|
<style>
|
|
#modal-add-patient{
|
|
overflow-y:scroll;
|
|
}
|
|
</style>
|
|
<div class="modal fade" id="modal-add-patient-category" name="modal-add-patient-category" role="dialog" aria-hidden="true">
|
|
<form role="form" id="patient_category_form" name="patient_category_form" action="#" method="post">
|
|
<div class="modal-dialog">
|
|
<div class="modal-content">
|
|
<div class="widget-header">
|
|
<h5 class="widget-title">Patient Category 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">Patient Category Name</label>
|
|
<input type="hidden" class="form-control" name="patient_cat_id"
|
|
id="patient_cat_id" value="" required/>
|
|
<input type="text" class="form-control" name="patient_cat_name"
|
|
id="patient_cat_name" placeholder="Enter Patient Category Name" required/>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="ailment">Remarks</label>
|
|
<input type="text" class="form-control" name="remarks"
|
|
id="remarks" placeholder="Enter Remarks" required/>
|
|
</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>
|
|
|