74 lines
2.1 KiB
PHP
74 lines
2.1 KiB
PHP
<script>
|
|
function validate(){
|
|
var medicine_timing = $('#medicine_timing').val();
|
|
if(medicine_timing == ''){
|
|
BootstrapDialog.alert('Please Enter Medicine Timing.!!!');
|
|
return false;
|
|
}
|
|
var timing_description = $('#timing_description').val();
|
|
if(timing_description == ''){
|
|
BootstrapDialog.alert('Please Enter Timing Description.!!!');
|
|
return false;
|
|
}
|
|
|
|
|
|
|
|
save_medicine();
|
|
}
|
|
</script>
|
|
|
|
|
|
|
|
<style>
|
|
#modal-add-medicine{
|
|
overflow-y:scroll;
|
|
}
|
|
</style>
|
|
|
|
<div class="modal fade" id="modal-add-medicine" role="dialog" aria-hidden="true">
|
|
<form role="form" id="medicine_form" name="medicine_form" action="#" method="post">
|
|
<div class="modal-dialog">
|
|
<div class="modal-content">
|
|
<div class="widget-header">
|
|
<h5 class="widget-title"> Medicine Timing</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="Medicine">Medicine Timing</label>
|
|
<input type="text" class="form-control" name="medicine_timing"
|
|
id="medicine_timing" placeholder="Enter Medicine Timing" required/>
|
|
<input type="hidden" class="form-control" name="timing_id"
|
|
id="timing_id" maxlength="150" placeholder="Enter Timing" required/>
|
|
|
|
</div>
|
|
|
|
|
|
<div class="form-group">
|
|
<label for="Medicine"> Timing Description</label>
|
|
<input type="text" class="form-control" name="timing_description"
|
|
id="timing_description" maxlength="150" placeholder="Enter Timing Description " 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>
|