<!-- include '../header' -->
<script type="text/javascript" src="<?= WEB_SITE_GLOBAL ?>/js/humanResource.js"></script>
<link rel=stylesheet href="<?= WEB_SITE_GLOBAL ?>css/jquery.validator.css"> 
<script type="text/javascript" src="<?= WEB_SITE_GLOBAL ?>js/jquery.validator.min.js"></script>
<script type="text/javascript" src="<?= WEB_SITE_GLOBAL ?>js/zh-CN.js"></script>
<script src="<?= WEB_SITE_GLOBAL ?>js/hr.validator.js"></script>
<body>
	<div class="mainLayout">
		<div class="mainMenu">
			<div class="menuItem">
				<a href="#" class="mLogo">CLD</a>
				<ul>
					<!-- include '../menu' -->
				</ul>
			</div>
			
		</div>
		<div class="warpContent">
			<div class="subMenu fL">
				<div class="menuItem">
					<!-- include 'hrMenu' -->
				</div>
			</div>
			<div class="adminContent autoHeight">
				<div class="saea-borad">
					<div class="borad-menu">

					</div>
					<div class="borad-news">
						<div class="saeaList">
							<div class="clearfix">
								<legend><div class="fR"></div>需要您处理</legend>
								<table class="table table-bordered table-condensed">
									<tbody>
									<tr><th class="taC" width="140">员工名称</th><th class="taC">办事处/部门</th><th class="taC">岗位</th><th class="taC">状态</th><th class="taC" width="120">操作</th></tr>
									<!-- loop staffList -->
									<tr>
									<td><a href="#employeeInfo" node-employeeInfo node-sidKey="{{staffList' value.sidKey}}" data-toggle="modal">{{staffList' value.username}}</a></td>
									<td>{{staffList' value.category}}</td>
									<td>{{staffList' value.position}}</td>
									<td>
									<!-- if {{staffList' value.pendStatus}}==2 -->
									待入职
									<!-- elseif {{staffList' value.pendStatus}}==3 -->
									待离职
									<!-- elseif {{staffList' value.pendStatus}}==5 -->
									待转正
									<!-- elseif {{staffList' value.pendStatus}}==6 -->
									待晋升
									<!-- elseif {{staffList' value.pendStatus}}==7 -->
									待再入职
									<!-- endif -->
									</td>
									<td>
									<!-- if {{staffList' value.pendStatus}}==2 -->
									<a class="button btn-block" node-approvals node-sidKey="{{staffList' value.sidKey}}" href="#approval" data-toggle="modal">入职审批</a>
									<!-- elseif {{staffList' value.pendStatus}}==3 -->
									<a class="button btn-block" node-approvalsDimission node-sidKey="{{staffList' value.sidKey}}" href="#approvalDimission" data-toggle="modal">离职审批</a>
									<!-- elseif {{staffList' value.pendStatus}}==5 -->
									<a class="button btn-block" node-approvalsRegular node-sidKey="{{staffList' value.sidKey}}" href="#approvalRegular" data-toggle="modal">转正审批</a>
									<!-- elseif {{staffList' value.pendStatus}}==6 -->
									<a class="button btn-block" node-approvalsPromote node-sidKey="{{staffList' value.sidKey}}" href="#approvalPromote" data-toggle="modal">晋升审批</a>
									<!-- elseif {{staffList' value.pendStatus}}==7 -->
									<a class="button btn-block" node-approvalsReentry node-sidKey="{{staffList' value.sidKey}}" href="#approvalReentry" data-toggle="modal">再入职审批</a>
									<!-- endif -->
									</td>
									</tr>
									<!-- endloop -->
									
									
									</tbody>
								</table>
							</div>
							<div class="clearfix">
								<legend><div class="fR"></div>最近变动</legend>
								<table class="table table-bordered table-condensed">
									<tbody>
									<tr><th class="taC" width="140">员工名称</th><th class="taC">办事处/部门</th><th class="taC">岗位</th><th class="taC">状态</th><th class="taC" width="120">时间</th></tr>
									<!-- loop staffNew -->
									<tr>
									<td><a href="#employeeInfo" node-employeeInfo node-sidKey="{{staffList' value.sidKey}}" data-toggle="modal">{{staffList' value.username}}</a></td>
									<td>{{staffList' value.category}}</td>
									<td>{{staffList' value.position}}</td>
									<td>
										<!-- if {{staffList' value.pendStatus}}==0 -->
										入职
										<!-- elseif {{staffList' value.pendStatus}}==4 -->
										离职
										<!-- endif -->
									</td>
									<td width="120">2018-06-07</td>
									</tr>
									<!-- endloop -->
									
									
									</tbody>
								</table>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	
	
	
	
	
	
	<!--弹出（审批员工入职）-->
	<div class="modal hide fade" id="approval">
	<form method="post" action="/employeeInductionApprovals" name="group">
	<input type="hidden" name="sidKey" id='sidKey'  value="">
		
		<div class="modal-dialog modal-xlg">
			<div class="modal-content">
			<div class="modal-header">
					<h3>员工入职审批</h3>
				</div>
			<div id='staffDetailNC'>
			</div>
			
			
			<div class="modal-footer">
				<input type="submit" class="button" value="审批通过">
				<a href="#" class="button btn-gray" data-dismiss="modal" aria-hidden="true">关闭</a>
			</div>
			
			</div>
		</div>
		</form>
	</div>
	
	<!--弹出（审批员工转正）-->
	<div class="modal hide fade" id="approvalRegular">
	<form method="post" action="/employeeRegularApprovals" name="group">
	<input type="hidden" name="sidKey" id='sidKeyRegular'  value="">
		
		<div class="modal-dialog modal-xlg">
			<div class="modal-content">
			<div class="modal-header">
					<h3>员工转正审批</h3>
				</div>
			<div id='staffDetailAD'>
			</div>
			
			
			<div class="modal-footer">
				<input type="submit" class="button" value="审批通过">
				<a href="#" class="button btn-gray" data-dismiss="modal" aria-hidden="true">关闭</a>
			</div>
			
			</div>
		</div>
		</form>
	</div>
	
	<!--弹出（审批员工离职）-->
	<div class="modal hide fade" id="approvalDimission">
	<form method="post" action="/employeeDimissionApprovals" name="group">
	<input type="hidden" name="sidKey" id='sidKeyDimission'  value="">
		
		<div class="modal-dialog modal-xlg">
			<div class="modal-content">
			<div class="modal-header">
					<h3>员工离职审批</h3>
				</div>
			<div id='staffDetailDi'>
			</div>
			
			
			<div class="modal-footer">
				<input type="submit" class="button" value="审批通过">
				<a href="#" class="button btn-gray" data-dismiss="modal" aria-hidden="true">关闭</a>
			</div>
			
			</div>
		</div>
		</form>
	</div>
	
	<!--弹出（审批员工晋升）-->
	<div class="modal hide fade" id="approvalPromote">
	<form method="post" action="/employeePromoteApprovals" name="group">
	<input type="hidden" name="sidKey" id='sidKeyPromote'  value="">
		
		<div class="modal-dialog modal-xlg">
			<div class="modal-content">
			<div class="modal-header">
					<h3>员工晋升审批</h3>
				</div>
			<div id='staffDetailP'>
			</div>
			
			
			<div class="modal-footer">
				<input type="submit" class="button" value="审批通过">
				<a href="#" class="button btn-gray" data-dismiss="modal" aria-hidden="true">关闭</a>
			</div>
			
			</div>
		</div>
		</form>
	</div>
	
	<!--弹出（审批员工再入职）-->
	<div class="modal hide fade" id="approvalReentry">
	<form method="post" action="/employeeReentryApprovals" name="group">
	<input type="hidden" name="sidKey" id='sidKeyReentry'  value="">
		
		<div class="modal-dialog modal-xlg">
			<div class="modal-content">
			<div class="modal-header">
					<h3>员工晋升审批</h3>
				</div>
			<div id='staffDetailReentry'>
			</div>
			
			
			<div class="modal-footer">
				<input type="submit" class="button" value="审批通过">
				<a href="#" class="button btn-gray" data-dismiss="modal" aria-hidden="true">关闭</a>
			</div>
			
			</div>
		</div>
		</form>
	</div>
	
	<!--弹出（更新员工信息）-->
	<div class="modal hide fade" id="employeeInfo">
	<form method="post" action="/staffUpdate" id="staffUpdate">
	<input type="hidden" name="sidKey" id='sidKeyEmployeeInfo'  value="">
	<input type="hidden" name="employeeInfo"   value="employeeInfo">
		<div class="modal-dialog modal-xlg">
			<div class="modal-content">
			<div id='EMPLOYEENC'>
			</div>
			
			<div class="modal-footer">
				<input type="submit" class="button" value="确定更新">
				<a href="#" class="button btn-gray" data-dismiss="modal" aria-hidden="true">关闭</a>
			</div>
			
			</div>
		</div>
		</form>
	</div>
	
	
	
	
	
	
<script type="text/javascript">autoFlashHeight();</script>
</body>
