91 lines
3.0 KiB
PHP
91 lines
3.0 KiB
PHP
<script>
|
|
function validate(){
|
|
// var bu_id = $('#bu_id').val();
|
|
// if(bu_id == '' || bu_id==null){
|
|
// BootstrapDialog.alert('Please Enter Bussiness Unit.!!!');
|
|
// return false;
|
|
// }
|
|
// var dept_name = $('#dept_name').val();
|
|
// if(dept_name == '' || dept_name==null){
|
|
// BootstrapDialog.alert('Please Select Department Name.!!!');
|
|
// return false;
|
|
// }
|
|
// var section_name = $('#section_name').val();
|
|
// if(section_name == '' || section_name==null ){
|
|
// BootstrapDialog.alert('Please Select Section Name.!!!');
|
|
// return false;
|
|
// }
|
|
var sub_section_name = $('#sub_section_name').val();
|
|
if(sub_section_name == '' ){
|
|
BootstrapDialog.alert('Please Enter Sub Section Name.!!!');
|
|
return false;
|
|
}
|
|
save_subsection();
|
|
}
|
|
</script>
|
|
|
|
|
|
|
|
<style>
|
|
#modal-add-sub_section{
|
|
overflow-y:scroll;
|
|
}
|
|
</style>
|
|
|
|
<div class="modal fade" id="modal-add-sub_section" role="dialog" aria-hidden="true">
|
|
<form role="form" id="sub_section_form" name="sub_section_form" action="#" method="post">
|
|
<div class="modal-dialog">
|
|
<div class="modal-content">
|
|
<div class="widget-header">
|
|
<h5 class="widget-title"> Sub Section</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_role">Division</label>
|
|
<select class="form-control" name="bu_id" id="bu_id" onChange="loadSBUList(this.value,'sbu_name')">
|
|
<?php echo generateOption('bussiness_unit','bu_name','bu_id','',''); ?>
|
|
</select>
|
|
<input type="hidden" class="form-control" name="sub_section_id"
|
|
id="sub_section_id" value="" required/>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="sub_section_name">Station Name</label>
|
|
<input type="text" class="form-control" name="sub_section_name"
|
|
id="sub_section_name" placeholder="Enter Sub Section Name" required/>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="section_head">Station Head Name</label>
|
|
<input type="text" class="form-control" name="sub_section_head"
|
|
id="sub_section_head" placeholder="Enter Sub Section head Name" required/>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="section_head">Station Head email</label>
|
|
<input type="text" class="form-control" name="sub_section_email"
|
|
id="sub_section_email" placeholder="Enter Sub Section email" 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>
|