<!-- include '../header' -->
<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 'settingMenu' -->
				</div>
			</div>
			
			
			<div class="adminContent autoHeight">
				<div class="subNav">
		    	<ul class="navTabs">
					  <li class="active"><a href="#">基本信息</a></li>
					  <li><a href="/settingCredentialInfo">证件信息</a></li>
					  <li><a href="/settingFinanceInfo">财务信息</a></li>
					</ul>
				</div>
				<!--基本信息-->
				<div class="saeaList" style="width:900px">
				
				<form method="post" action="/staffUpdate"  >
				<input type="hidden" name="sidKey" id='sidKey'  value="{{staff.sidKey}}">
				<input type="hidden" name="employeeInfo"   value="settingEmployeeInfo">
					<table class="table table-bordered table-condensed">
						<tbody>
						<tr>
							<th class="taC" width="150">工号</th><td width="260">{{staff.jobNumber}}</td>
							<th class="taC" width="150">姓名</th><td><input type="text" value="{{staff.username}}" disabled></td>
						</tr>
						<tr>
							<th class="taC" width="150">办事处/部门</th>
							<td>
							{{staff.category}}<!-- if !empty({{staff.departmentID}}) -->/{{staff.department.departmentName}}<!-- endif -->
							</td>
							<th class="taC" width="150">岗位</th><td><input type="text" value="{{staff.position}}" disabled></td>
						</tr>
						<tr>
							<th class="taC" width="150">入职日期</th><td><input type="date" value="{{staff.hiredate}}" disabled></td>
							<th class="taC" width="150">手机</th><td><input type="text" name='telephone' value="{{staff.telephone}}"></td>
						</tr>
						<tr>
							<th class="taC">QQ</th><td><input type="text" name='qq' value="{{staff.qq}}"></td>
							<th class="taC">微信</th><td><input type="text" name='wecat' value="{{staff.wecat}}"></td>
						</tr>
						<tr>
							<th class="taC">电话</th><td><input type="text" name='phone' value="{{staff.phone}}"></td>
							<th class="taC">邮箱</th><td><input type="text" name='email' value="{{staff.email}}"></td>
						</tr>
						</tbody>
					</table>
					<table class="table table-bordered table-condensed">
						<tr>
							<th class="taC" width="150">性别</th>
							<td width="260">
							<label class="radio inline"><input type="radio" name='gender' <!-- if {{staff.gender}}=='男' -->checked<!-- endif --> value="男">男</label> 
							<label class="radio inline"><input type="radio" name='gender' <!-- if {{staff.gender}}=='女' -->checked<!-- endif --> value="女">女</label>
							</td>
							<th class="taC" width="150">出生日期</th>
							<td><input type="date" name='birthday' value="{{staff.birthday}}"></td>
						</tr>
						<tr>
							<th class="taC" width="150">最高学历</th>
							<td>
							<select name='qualifications' id='qualifications'>
							<option <!-- if {{staff.qualifications}}=='初中' -->selected<!-- endif --> value='初中'>初中</option>
							<option <!-- if {{staff.qualifications}}=='高中' -->selected<!-- endif --> value='高中'>高中</option>
							<option <!-- if {{staff.qualifications}}=='中专' -->selected<!-- endif --> value='中专'>中专</option>
							<option <!-- if {{staff.qualifications}}=='大专' -->selected<!-- endif --> value='大专'>大专</option>
							<option <!-- if {{staff.qualifications}}=='本科' -->selected<!-- endif --> value='本科'>本科</option>
							<option <!-- if {{staff.qualifications}}=='硕士' -->selected<!-- endif --> value='硕士'>硕士</option>
							</select>
							</td>
							<th class="taC" width="150">婚姻状况</th>
							<td>
							<select name='marriage' id='marriage'>
							<option <!-- if {{staff.marriage}}=='' -->selected<!-- endif --> value=''>请选择</option>
							<option <!-- if {{staff.marriage}}=='1' -->selected<!-- endif --> value='1'>已婚</option>
							<option <!-- if {{staff.marriage}}=='0中' -->selected<!-- endif --> value='0'>未婚</option>
							</select>
							</td>
						</tr>
					</table>
					<table class="table table-bordered table-condensed">
						<tr>
							<th class="taC" width="150">现居住地</th>
							<td colspan="3"><input type="text" name='living' value="{{staff.living}}" style="width:500px"></td>
						</tr>
						<tr>
							<th class="taC" width="150">籍贯</th>
							<td width="260"><input type="text" name='nativePlace' value="{{staff.nativePlace}}" data-placement="bottom" data-toggle="ctooltip" data-original-title="例：广东省珠海市" /></td>
							<th class="taC" width="150">紧急联系人</th>
							<td><input data-placement="bottom" name='emergencyContacts' value="{{staff.emergencyContacts}}" data-toggle="ctooltip" data-original-title="例：张三（老婆）15003850888" type="text"></td>
						</tr>
					</table>
					<div class="control-group">
						<div class="controls">
							<!-- if {{staff.pendStatus}}!=23 -->
							<a href="#resignation" data-toggle="modal" class="button fR">离职申请</a>
							<!-- else -->
							你已经申请了离职
							<!-- endif -->
							<input type="submit" class="button" value="确认修改">
						</div>
					</div>
					</form>
					
				</div>
				
				
				
				

			</div>
		</div>
	</div>
	<!--弹出离职申请-->
	<div class="modal hide fade" id="resignation">
	<form method="post" action="/appliedDimission" id="appliedDimission" >
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header">
					<h3>申请离职</h3>
				</div>
				<div class="modal-body saeaList">
						<textarea style="width:560px" name="dimissionReason" placeholder="简要填写离职原因"></textarea>
						<p class="alert alert-">感谢您的付出与努力。</p>
				</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>
