<!-- 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">
				
				<div class="fR">
					<!-- if {{staff.pendStatus}}==3||{{staff.pendStatus}}==5 -->
							<!-- if {{staff.pendStatus}}==3 -->
							<a href="javascript:void(0)" data-toggle="modal" class="button fR">你已经申请了离职</a>
							<!-- else -->
							<a href="javascript:void(0)" data-toggle="modal" class="button fR">你已经申请转正</a>
							<!-- endif -->
					<!-- else -->
						<a href="#resignation" data-toggle="modal" class="button fR">离职申请</a>
						
					<!-- endif -->
					<!-- if ({{staff.nature}}==2||{{staff.nature}}==3)&&{{staff.pendStatus}}!=5 -->
					<a href="#turn" data-toggle="modal" class="button fR">转正申请</a>
					<!-- endif -->
					
				</div>
				
		    	<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"><b class="colRed">* </b>工号</th><td  width="260">{{staff.jobNumber}}</td>
							<th class="taC" width="150"><b class="colRed">* </b>姓名</th><td><input type="text" value="{{staff.username}}" disabled></td>
						</tr>
						<tr>
							<th class="taC" width="150"><b class="colRed">* </b>办事处/部门</th>
							<td>
							{{staff.category}}<!-- if !empty({{staff.departmentID}}) -->/{{staff.department.departmentName}}<!-- endif -->
							</td>
							<th class="taC" width="150"><b class="colRed">* </b>岗位</th><td><input type="text" value="{{staff.positionDetail.positionName}}" disabled></td>
						</tr>
						<tr>
							<th class="taC" width="150"><b class="colRed">* </b>入职日期</th><td><input type="date" value="{{staff.hiredate}}" disabled></td>
							<th class="taC" width="150"><b class="colRed">* </b>手机</th><td <!-- if empty({{staff.telephone}}) --> class="alert-warning" <!-- endif --> ><input type="text" name='telephone' value="{{staff.telephone}}"></td>
						</tr>
						<tr>
							<th class="taC"><b class="colRed">* </b>QQ</th><td<!-- if empty({{staff.qq}}) --> class="alert-warning" <!-- endif --> ><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"><b class="colRed">* </b>电话</th><td<!-- if empty({{staff.phone}}) --> class="alert-warning" <!-- endif -->><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"><b class="colRed">* </b>性别</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"><b class="colRed">* </b>出生日期</th>
							<td<!-- if empty({{staff.birthday}}) --> class="alert-warning" <!-- endif -->><input type="date" name='birthday' value="{{staff.birthday}}"></td>
						</tr>
						<tr>
							<th class="taC" width="150">民族</th><td<!-- if empty({{staff.nation}}) --> class="alert-warning" <!-- endif -->><input type="text" name='nation' id='nation' value='{{staff.nation}}'></td>
							<th class="taC" width="150"><b class="colRed">* </b>婚姻状况</th>
							<td>
							<select name='marriage' id='marriage' <!-- if {{staff.marriage}}=='' --> class="alert-warning" <!-- endif -->>
							<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 width="260" <!-- if empty({{staff.graduateInstitutions}}) --> class="alert-warning" <!-- endif -->>
							<input type="text" name='graduateInstitutions' id='graduateInstitutions' value='{{staff.graduateInstitutions}}'>
							</td>
							<th class="taC" width="150">所学专业</th>
							<td <!-- if empty({{staff.major}}) --> class="alert-warning" <!-- endif -->>
							<input type="text" name='major' id='major' value='{{staff.major}}'></td>
						</tr>
						<tr>
							<th class="taC" width="150">毕业学历</th>
							<td<!-- if empty({{staff.education}}) --> class="alert-warning" <!-- endif -->>
							<select name='education' id='education' >
							<option <!-- if {{staff.education}}=='初中' -->selected<!-- endif --> value='初中'>初中</option>
							<option <!-- if {{staff.education}}=='高中' -->selected<!-- endif --> value='高中'>高中</option>
							<option <!-- if {{staff.education}}=='中专' -->selected<!-- endif --> value='中专'>中专</option>
							<option <!-- if {{staff.education}}=='大专' -->selected<!-- endif --> value='大专'>大专</option>
							<option <!-- if {{staff.education}}=='本科' -->selected<!-- endif --> value='本科'>本科</option>
							<option <!-- if {{staff.education}}=='硕士' -->selected<!-- endif --> value='硕士'>硕士</option>
							</select></td>
							<th class="taC" width="150">毕业时间</th>
							<td<!-- if {{staff.graduationTime}}=='0000-00-00' --> class="alert-warning" <!-- endif -->>
							<input type="date" name='graduationTime' id='graduationTime' value='{{staff.graduationTime}}'></td>
						</tr>
						<tr>
							<th class="taC" width="150"><b class="colRed">* </b>最高学历</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>
						</tr>
					</table>
					
					<table class="table table-bordered table-condensed">
					
					<tr>
							<th class="taC" width="150">户口所在地</th>
							<td width="260" <!-- if empty({{staff.registeredResidence}}) --> class="alert-warning" <!-- endif -->>
							<input type="text" name='registeredResidence' id='registeredResidence' value='{{staff.registeredResidence}}' data-placement="bottom" data-toggle="ctooltip" data-original-title="请填写户口本详细地址" /></td>
							<th class="taC" width="150">户籍类型</th>
							<td <!-- if empty({{staff.householdRegistrationType}}) --> class="alert-warning" <!-- endif -->>
							<select name='householdRegistrationType' id='householdRegistrationType' value='{{staff.householdRegistrationType}}'>
							<option value='城镇户口'>城镇户口</option>
							<option value='农业户口'>农业户口</option>
							</select>
							</td>
						</tr>
					
						<tr>
							<th class="taC" width="150"><b class="colRed">* </b>现居住地</th>
							<td <!-- if empty({{staff.living}}) --> class="alert-warning" <!-- endif --> colspan="3"><input type="text" name='living' value="{{staff.living}}" style="width:500px"></td>
						</tr>
						<tr>
							<th class="taC" width="150"><b class="colRed">* </b>籍贯</th>
							<td <!-- if empty({{staff.nativePlace}}) --> class="alert-warning" <!-- endif --> 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"><b class="colRed">* </b>紧急联系人</th>
							<td <!-- if empty({{staff.emergencyContacts}}) --> class="alert-warning" <!-- endif -->><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">
							
							<input type="submit" class="button" value="确认修改">
						</div>
					</div>
					</form>
					
				</div>
				
				
				
				

			</div>
		</div>
	</div>
	
	<!--弹出转正申请-->
	<div class="modal hide fade" id="turn">
	<form method="post" action="/appliedRegular" id="appliedRegular" >
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header">
					<h3>申请转正</h3>
				</div>
				<div class="modal-body saeaList">
					<h4>申请提交后，需要等待人资审批，通过后，您将成为我们的正式员工，享受更好的福利待遇。</h4>
				</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="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">
				
				<table class="table table-bordered table-condensed">
						<tbody><tr>
							<th class="taC" width="100">离职原因</th>
							<td><textarea  name="dimissionReason" placeholder="简要填写离职原因"></textarea></td>
						</tr>
						<tr>
							<th class="taC" width="100">离职日期</th><td><input type="date" name='applyLeaveDate' value='' ></td>
						</tr>
					</tbody></table>
				
				
						
						<p class="alert alert-">请联系纵横人资（QQ：1430119431）办理离职手续。</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>
