<!-- include '../header' -->
<script type="text/javascript" src="<?= WEB_SITE_GLOBAL ?>/js/humanResource.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">
				<legend>审批流程设置</legend>
				<div class="subNav">
		    	<ul class="navTabs">
					  <li ><a href="/employeeApprovals">入职审批</a></li>
					  <li class="active"><a  href="#">离职审批</a></li>
					  <li><a href="/regularApprovals">转正审批</a></li>
					  <li ><a href="/promoteApprovals">晋升审批</a></li>
					  <li><a href="/reentryApprovals">再入职审批</a></li>
					</ul>
				</div>
				<!--入职审批-->
				<table class="table table-striped">
              <thead>
                <tr>
                  <th>办事处</th>
                  <th>离职审批流程</th>
                  <th>抄送</th>
                </tr>
              </thead>
              <tbody>
              
              <!-- loop categoryList  -->
                <tr>
                  <td>{{categoryList' value.title}}<!-- if isset({{categoryList' value.did}})  -->
						- {{categoryList' value.departmentName}}
						<!-- endif --></td>
                  <td>{{categoryList' value.employeeApprovals}} <a href="#view" node-employeeApprovals node-cidKey="{{categoryList' value.cidKey}}<!-- if isset({{categoryList' value.did}})  -->_{{categoryList' value.didKey}}<!-- endif -->" data-toggle="modal">编辑</a></td>
                  <td>{{categoryList' value.CC}}  <a href="#person" node-employeeCC node-cidKey="{{categoryList' value.cidKey}}<!-- if isset({{categoryList' value.did}})  -->_{{categoryList' value.didKey}}<!-- endif -->" data-toggle="modal">编辑</a></td>
                </tr>
               <!-- endloop -->
                
              </tbody>
          	</table>
			</div>
		</div>
	</div>
	
	
	
	
	
	
<div class="modal fade" id="person" >
<form method="post" action="/employeeleaveCCAdd" name="group">
 <input type="hidden" name="cidKey" id="CCcidKey" value="">
	<div class="modal-dialog">
		<div class="modal-content">
	    <div class="modal-header">
	    	<h3>设置离职抄送</h3>
	    </div>
	    <div class="modal-body saeaList">
	    	
	    		<div class="modal-title">勾选办事处选中该办事处成员</div>
	    		<div class="controls">
	    		<!-- loop categoryList -->
	    		<label style="display:inline">
			       <input type="checkbox" node-approvalsStaff node-didkey="<!-- if isset({{categoryList' value.didKey}}) -->{{categoryList' value.didKey}}<!-- endif -->"  value="{{categoryList' value.cidKey}}">{{categoryList' value.title}}<!-- if isset({{categoryList' value.did}})  -->-{{categoryList' value.departmentName}}
						<!-- endif -->
			       </label>
	    		<!-- endloop -->
	    		</div>
	    	
	    	
	    	  <div class="modal-title">打勾为抄送对象</div>
				<div class="controls">
				<!-- loop staffList -->
			       <label style="display:inline">
			       <input type="checkbox" name="staff[]" node-didKey="{{staffList' value.cidKey}}_<!-- if isset({{categoryList' value.didKey}}) -->{{staffList' value.didKey}}<!-- endif -->" node-cidKey="{{staffList' value.cidKey}}" data='{{staffList' value.username}}'  value="{{staffList' value.sid}}:{{staffList' value.username}}:{{staffList' value.avatar}}">{{staffList' value.username}}
			       </label>
			   	<!-- endloop -->
			    </div>
				
			 
	    </div>
			<div class="modal-footer">
				<input type="submit" class="button" vlaue="确定">
			  <a href="#" class="button btn-gray" data-dismiss="modal" aria-hidden="true">关闭</a>
			</div>
		</div>
	</div>
	</form>
</div>
	
	
	
	
<!--弹出设置审批人-->
<div class="modal fade" id="view">

<form method="post" action="/employeeleaveApprovalsAdd" name="group">
    <input type="hidden" name="cidKey" id="cidKey" value="">
    <input type="hidden" name="uidlist" id="uidlist" value="">
	<div class="modal-dialog">
		<div class="modal-content">
	    <div class="modal-header">
	    	<h3>设置离职审批</h3>
	    </div>
	    <div class="modal-body saeaList">
				<div class="controls">
				
				<!-- loop staffList -->
			       <label class="checkbox inline">
			       <input type="checkbox" name="staff[]" id="verify_{{staffList' value.sid}}" data='{{staffList' value.username}}'  value="{{staffList' value.sid}}:{{staffList' value.username}}:{{staffList' value.avatar}}">{{staffList' value.username}}
			       </label>
			   <!-- endloop -->
				 		
				 		
				 		 <label class="controls colRed" id="AUTDO">
					   		
					   		</label>
				 			  <a href="javascript:void(0)" onclick="CLEARTUIL()">清除</a>            
			   </div>
	    </div>
			<div class="modal-footer">
				<input type="submit" class="button" vlaue="确定">
			  <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>
