<!-- include 'header' -->
<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">
					<ul>
						<!-- include 'admin_menu' -->
					</ul>
				</div>
			</div>
			<div class="adminContent autoHeight">
			    <form name="myinfo" action="/adminDoEdiUser" method="post">
		            <legend>个人信息</legend>
		            
		            <div class="control-group">
		              <label for="inputEmail" class="control-label">帐号</label>
		              <div class="controls">
		                <input type="text" name="username" value="{{staffInfo.0.username}}"> <a href="/admin/reset/pw/{{staffInfo.0.sid}}">重置密码</a>&nbsp;新密码：{{newPw}}
		              </div>
		            </div>
		            
		            <div class="control-group">
		              <label for="inputEmail" class="control-label">办事处</label>
		              <div class="controls">
		                <select name="cid">
		                	<!-- loop category -->
		                	<option <!-- if {{staffInfo.0.cid}}=={{category' value.cid}} --> selected <!-- endif --> value="{{category' value.cid}}">{{category' value.title}}</option>
		                	<!-- endloop -->
		                </select>
		              </div>
		            </div>
					<div class="control-group">
						<label for="inputEmail" class="control-label">入职时间</label>
						<div class="controls">
							<input type="date" name="hiredate" value="{{staffInfo.0.hiredate}}">
						</div>
					</div>
					<div class="control-group">
						<label for="inputEmail" class="control-label">员工性质</label>
						<div class="controls">
							<select name="nature">
								<option value="2" <!-- if {{staffInfo.0.nature}} == 2 --> selected <!-- endif -->>实习生</option>
								<option value="1" <!-- if {{staffInfo.0.nature}} == 1 --> selected <!-- endif -->>正式员工</option>
							</select>
							<p>调整员工性质，会清空假期数据，请谨慎操作</p>
						</div>
					</div>
		            <div class="control-group">
		              <label for="inputEmail" class="control-label">性别</label>
		              <div class="controls">
		              	<select name="gender">
		              		<option <!-- if {{staffInfo.0.gender}}=='男' --> selected <!-- endif --> value="男">男</option>
		              		<option <!-- if {{staffInfo.0.gender}}=='女' --> selected <!-- endif --> value="女">女</option>
		              	</select>
		                
		                <input type="hidden" name="sid" value="{{staffInfo.0.sid}}">
		              </div>
		            </div>
		            
				    <div class="control-group">
		              <label for="inputEmail" class="control-label">手机</label>
		              <div class="controls">
		                <input type="text" name="telephone" value="{{staffInfo.0.telephone}}">
		              </div>
		            </div>
				    <div class="control-group">
		              <label for="inputEmail" class="control-label">电话</label>
		              <div class="controls">
		                <input type="text" name="phone" value="{{staffInfo.0.phone}}">
		              </div>
		            </div>
				    <div class="control-group">
		              <label for="inputEmail" class="control-label">邮箱</label>
		              <div class="controls">
		                <input type="text" name="email" value="{{staffInfo.0.email}}">
		              </div>
		            </div>
				    <div class="control-group">
		              <label for="inputEmail" class="control-label">QQ</label>
		              <div class="controls">
		                <input type="text" name="qq" value="{{staffInfo.0.qq}}">
		              </div>
		            </div>
		            
		            <div class="control-group">
		              <div class="controls">
				   		 <button type="submit" class="button">确认修改</button>
				   		 <span>{{msg}}</span>
		              </div>
		            </div>
		            
			    </form>
			    
			    
			    
			   
			    <legend>添加省份权限</legend>
			    <p class="cGroup">
				    已加入：
				    <!-- loop idDistrictList -->
				    <span class="tagGroup">{{idDistrictList' value.name}}<a href="/delUserDistrictAuthor/{{idDistrictList' value.idKey}}/{{staffInfo.0.sidKey}}" title="删除" class="icon-">k</a></span>
					<!-- endloop -->
				   
			    </p>
			    <div class="control-group">
		              <!-- <label for="inputEmail" class="control-label">省份</label> -->
		              <div class="controls">
		                <a href="#pikProvince" id="" data="省份权限" data-toggle="modal">添加省份权限</a>
		              </div>
		            </div>
			    
			    
			    
			    
			    <form name="myinfo" action="/adminDoAddCategory" method="post">
			    <legend>添加办事处信息</legend>
			    已加入：{{staffInfo.0.category}},{{staffInfo.0.othercategory}}
		            <div class="control-group">
		              <label for="inputEmail" class="control-label">办事处</label>
		              <div class="controls">
		                <select name="cid">
		                	<!-- loop category -->
		                	<option <!-- if {{staffInfo.0.cid}}=={{category' value.cid}} --> selected <!-- endif --> value="{{category' value.cid}}">{{category' value.title}}</option>
		                	<!-- endloop -->
		                </select>
		                <input type="hidden" name="sid" value="{{staffInfo.0.sid}}">
		              </div>
		            </div>
		            
		            <div class="control-group">
		              <div class="controls">
				   		 <button type="submit" class="button">确认添加</button>
				   		 <span>{{msg}}</span>
		              </div>
		            </div>
			    </form>
			</div>
		</div>
	</div>
	
	<!--选择省份-->
<div class="modal hide fade" id="pikProvince">
<form name="userDistrict" action="/addUserDistrictAuthor" method="post">
<input type="hidden" name="sidKey" value="{{staffInfo.0.sidKey}}">

	<div class="modal-dialog">
		<div class="modal-content">
	<div class="modal-header">
    	<h3>选择省份</h3>
    </div>
    <div class="modal-body">
			<style>.controls > .checkbox{margin-left: 10px}</style>
    	<div class="controls">
    	<!-- loop districtList -->
	    	<label class="checkbox inline">
			  <input type="checkbox" name="didKey[]" value="{{districtList' value.didKey}}"> {{districtList' value.name}}
			</label>
		<!-- endloop -->
			
		</div>
    </div>
	<div class="modal-footer">
	    <div class="fR"><a href="#" class="button btn-gray" data-dismiss="modal" aria-hidden="true">取消</a>
	    <button type="submit" class="button">确认添加</button>
	   </div>
	</div>
	</div>
</div>
</form>
</div>
<!--选择省份-->	
	
<script type="text/javascript">autoFlashHeight();</script>	
</body>