<div class="kt-subheader   kt-grid__item" id="kt_subheader" style="height:50px;margin-top:40px;">
	<div class="kt-container  kt-container--fluid ">
		<div class="kt-subheader__main">
			<h3 class="kt-subheader__title">
				Department
			</h3>
			<span class="kt-subheader__separator kt-subheader__separator--v"></span>
			<div class="kt-subheader__breadcrumbs">
				<span class="kt-subheader__breadcrumbs-home"><i class="flaticon2-shelter"></i></span>
				<span class="kt-subheader__breadcrumbs-separator"></span>
				<span class="kt-subheader__breadcrumbs-link">
					Admin </span>
				<span class="kt-subheader__breadcrumbs-separator"></span>
				<span class="kt-subheader__breadcrumbs-link">
					Department </span>
			</div>
		</div>
	</div>
</div>

<div class="kt-portlet kt-portlet--tabs" id="formDept">
	<div class="kt-portlet__head">
		<div class="kt-portlet__head-toolbar">
			<ul class="nav nav-tabs nav-tabs-space-xl nav-tabs-line nav-tabs-bold nav-tabs-line-3x nav-tabs-line-brand" role="tablist">
				<li class="nav-item">
					<a class="nav-link " data-toggle="tab" href="#dept-general" role="tab">
						<i class="la la-briefcase"></i> General
					</a>
				</li>
				<li class="nav-item">
					<a class="nav-link " data-toggle="tab" href="#dept-inter-permission" role="tab">
						<i class="flaticon-edit-1"></i> Permission
					</a>
				</li>
			</ul>
		</div>
		<div class="kt-portlet__head-toolbar" style="margin-top: 10px;">
			<div class="kt-portlet__head-group">
				<button type="button" class="btn btn-sm btn-icon btn-default btn-pill  btn-icon-md" onclick="closeFormDept()"><i class="la la-close"></i></button>
			</div>
		</div>
	</div>

	<form class="kt-form kt-form--label-right" style="margin-bottom: 0px;">
		<div class="kt-portlet__body">
			<div class="tab-content">
				<div class="tab-pane active" id="dept-general" role="tabpanel">
					<div class="form-group row form-group-marginless">
						<label class="col-lg-1 col-form-label">ID :</label>
						<div class="col-lg-1">
							<input type="text" id="txtDeptId" maxlength="10" size="10" class="form-control" placeholder="Auto" disabled>
						</div>
						<label class="col-lg-1 col-form-label">Ref No:</label>
						<div class="col-lg-3">
							<input type="text" id="txtDeptRef" maxlength="20" size="20" class="form-control">
						</div>
						<label class="col-lg-1 col-form-label">Description:</label>
						<div class="col-lg-3">
							<input type="text" id="txtDeptDesc" maxlength="30" size="30" class="form-control">
							<span id="dept_err_desc" style="color:Red;display:none">*</span>
						</div>
					</div>
				</div>
				<div class="tab-pane" id="dept-inter-permission" role="tabpanel">
					<div class="form-group m-form__group row">
						<label class="col-form-label col-lg-1">Department</label>
						<div class="col-lg-2">
							<select class="form-control kt-select2" id="cobDeptInterPermission">
								<?php echo $this->getDeptOption() ; ?>
							</select>
						</div>
     					<div class="col-lg-2 col-xl-2">
							<button onclick="addDeptInterPermission();" type="button" data-demo="default" class="btn btn-outline-info m-btn m-btn--icon m-btn--outline">
								<span>
									<i class="la la-plus"></i>
									<span>Add Department</span>
								</span>
							</button>
     					</div>
     				</div>	
     				<div class="m-section__content col-md-5" >
     					<table id="tblDeptInterPermissionDetail" class="table table-bordered m-table m-table--border-brand m-table--head-bg-brand" >
						  	<thead>
						    	<tr>
						    		<th width="90%">
						    			Department Inter Permission List
						    		</th>
						    		<th></th>
						    	</tr>
						  	</thead>

						  <tbody id="tblDeptInterPermission" style="">
						  </tbody>
						</table>	
 					</div>
				</div>

			</div>
		</div>

		<div class="kt-portlet__foot">
			<div class="kt-form__actions ">
				<button type="button" id="btnDeptAdd" class="btn btn-label-twitter"><i class="fa fa-edit"></i>Add</button>
				<button type="button" id="btnDeptUpdate" class="btn btn-label-twitter"><i class="fa fa-edit"></i>Update</button>
				<button type="button" id="btnDeptClear" class="btn btn-label-google"><i class="flaticon-delete"></i>Clear</button>
				<button type="button" id="btnDeptPrint" class="btn btn-label-instagram"><i class="fa fa-print"></i>Print</button>
			</div>
		</div>
	</form>
</div>
<!-- end:: Content -->

<div class="kt-portlet kt-portlet--mobile">
	<div class="kt-portlet__head kt-portlet__head--lg">
		<div class="kt-portlet__head-label">
			<span class="kt-portlet__head-icon">
				<i class="kt-font-brand flaticon2-line-chart"></i>
			</span>
			<h3 class="kt-portlet__head-title">
				Form Department
			</h3>
			<div class="kt-portlet__head-toolbar" style="margin-left: 25px;">
				<div class="kt-portlet__head-wrapper">
					<div class="kt-portlet__head-actions">
						<button type="button" onclick="showFormDept();" class="btn btn-brand btn-elevate btn-icon-sm">
							<i class="la la-plus"></i>
							New Entry
						</button>
					</div>
				</div>
			</div>
		</div>
	</div>
	<div class="kt-portlet__body">
		<!--begin: Datatable -->
		<div class="sbg-dept-table"></div>
		<!--end: Datatable -->
	</div>
</div>

<script type="text/javascript">
var dept_url = "<?php echo Util::convertLink("Department") ; ?>" ;
<?php include (PATH_CODE . "js/hr/department.js") ; ?>
</script>

<!-- ====================================================================== -->

<!-- <div id="sbg-dept-entry" style="width:610px;margin: 5px 5px 5px 5px;">
	<div id="dept-tabs">
		<ul style="font-size: 0.8em;">
			<li><a href="#dept-general">General</a></li>
			<li><a href="#dept-inter-permission">Permission</a></li>
			<span class="sbg-tab-title">Department Master</span>
		</ul>
		<div id="dept-general" style="height:200px;">
			<table>
				<tr>
					<td style="text-align:right;width:100px;"><span>ID : </span></td>
					<td style="width:480px"><input type="text" maxlength="10" size="10" id="txtDeptId" value="Auto" disabled="disabled" /></td>
				</tr>
				<tr>
					<td style="text-align:right;"><span>Description : </span></td>
					<td><input type="text" maxlength="30" size="40" id="txtDeptDesc" /><span id="dept_err_desc" style="color:red;display:none;padding-left:5px">*</span></td>
				</tr>
				<tr>
					<td style="text-align:right;"><span>Ref No : </span></td>
					<td><input type="text" maxlength="20" size="30" id="txtDeptRef" /></td>
				</tr>
			</table>
		</div>
        
        <div id="dept-inter-permission" style="height:200px;">
			<table>
				<tr>
					<td style="width:30px"></td>
					<td style="width:100px;text-align: right">Department</td>
                    <td style="width:200px"><select id="cobDeptInterPermission"><?php //echo $this->getDeptOption(); ?></select></td>
                    <td style="width:40px;text-align:center" rowspan="2"><a href="javascript:" onclick="addDeptInterPermission()"><img src="image/add.png" title="Add Limit" style="width:24px;height:24px"></img></a></td>
				</tr>
			</table>
			<div class="ui-widget-content ui-corner-all" style="overflow: auto;height:150px;">
                <table style="width:100%">
                    <tr class="ui-widget-header">
                        <th style="width: 200px">Department Inter Permission List</th>
                    </tr>
				</table>
				<table id="tblDeptInterPermission" class="sbg-table-list" cellspacing="0">
					
				</table>
			</div>
            
        </div>
	</div>
	<div class="ui-widget-content ui-corner-all" style="height:40px;margin-top:2px;">
		<div class="sbg-entry-error" style="width:300px;">
			<span id="dept_err_mesg" class="sbg-error"></span>
		</div>
		<div class="sbg-entry-command">
			<input id="btnDeptAdd" type="button" value="Add"></input>
			<input id="btnDeptUpdate" type="button" value="Update"></input>
			<input id="btnDeptClear" type="button" value="Clear"></input>
			<input id="btnDeptPrint" type="button" value="Print"></input>
		</div>
	</div>
</div>

<div>
	<div class="sbg-table">
		<div class="ui-widget-header">
			<table id="sbg-dept-header" class="header" cellspacing="0" cellpadding="5">
                <tr class="ui-widget-header">
                <td style="width: 50px;">ID</td>
                <td style="width: 400px;">Description</td>
                <td style="width: 100px;">Ref No</td>
				<td style="width: 25px;"></td>
				<td style="width: 25px;"></td>
                </tr>
			</table>
		</div>
        <div id="sbg-dept-data" style="overflow: auto;">
            <table id="sbg-dept-table" cellspacing="0" cellpadding="5" class="data">
			<tr><td style="width:50px;height:1px"></td><td style="width:400px"></td><td style="width:100px"></td><td style="width:25px"></td><td style="width:25px"></td></tr>
			<?php //echo $this->getList() ; ?>
            </table>
        </div>
	</div>
</div> 
<script type="text/javascript">
var dept_url = "<?php //echo Util::convertLink("Department") ; ?>" ;
<?php //include (PATH_CODE . "js/hr/department.js") ; ?>
</script> -->