90 lines
3.0 KiB
PHP
90 lines
3.0 KiB
PHP
<script>
|
|
function validate() {
|
|
var dept_name = $('#dept_name').val();
|
|
if (dept_name == '') {
|
|
BootstrapDialog.alert('Please Enter department Name.!!!');
|
|
return false;
|
|
}
|
|
|
|
// var dept_headname = $('#dept_headname').val();
|
|
// if(dept_headname == ''){
|
|
// BootstrapDialog.alert('Please Enter department head name.!!!');
|
|
// return false;
|
|
// }
|
|
|
|
// var dept_email = $('#dept_email').val();
|
|
// if(dept_email == ''){
|
|
// BootstrapDialog.alert('Please Enter department email .!!!');
|
|
// return false;
|
|
// }
|
|
|
|
// var dept_id = $('#dept_id').val();
|
|
// if(dept_id == ''){
|
|
// BootstrapDialog.alert('Please Enter department Code.!!!');
|
|
// return false;
|
|
// }
|
|
|
|
save_employee_cadre();
|
|
|
|
}
|
|
</script>
|
|
<style>
|
|
#modal-add-patient {
|
|
overflow-y: scroll;
|
|
}
|
|
</style>
|
|
<div class="modal fade" id="modal-add-unit" name="modal-add-unit" role="dialog" aria-hidden="true">
|
|
<form role="form" id="unit_form" name="unit_form" action="#" method="post">
|
|
<div class="modal-dialog">
|
|
<div class="modal-content">
|
|
<div class="widget-header">
|
|
<h5 class="widget-title"> Add Unit</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="user_id">Unit Id</label>
|
|
<input type="text" class="form-control" name="unit_id" id="unit_id" disabled value=""
|
|
required />
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="unit_name">Unit Name</label>
|
|
|
|
<input type="text" class="form-control" name="unit_name" id="unit_name" maxlength="50"
|
|
placeholder="Enter unit Name" required />
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
<label for="remarks">Remarks</label>
|
|
|
|
<input type="text" class="form-control" name="remarks" id="remarks" maxlength="50"
|
|
placeholder="Enter Unit 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> |