<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="/WEB-INF/tld/fns.tld" prefix="fns" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<div class="increased-thead">
	<ul class="clearfix">
		<li class="s1">
			<span>姓名</span>
		</li>
		<li class="s2">
			<span>证件类型</span>
		</li>
		<li class="s3">
			<span>证件号</span>
		</li>
		<li class="s4">
			<span>手机号</span>
		</li>
		<li class="s5">
			<span>工种</span>
		</li>
		<%--<li class="s6">
			<span>方案</span>
		</li>--%>
		<li class="s7">
			<span>性别</span>
		</li>
		<li class="s8">
			<span>出生日期</span>
		</li>
		<li class="s9">
			<span>操作</span>
		</li>
	</ul>
</div>
<div class="increased-tbody  ert-tbody">
	<ul>
		<c:forEach var="iprs" items="${iprsVoList}" varStatus="i">
			<li class="clearfix" data-count="${i.index}">
				<div class="w1">
					<input title="姓名" data-val="required" name="insPreservationDetailVoList[${i.index}].name" id="name_${i.index}" type="text" value="${iprs.name}" onblur="doValidator(this);">
				</div>
				<div class="w2">
					<select data-val="required" name="insPreservationDetailVoList[${i.index}].id_type" id="id_type_${i.index}">
						<option value="0"<c:if test="${iprs.id_type eq '0'}"> selected</c:if>>身份证</option>
						<option value="3"<c:if test="${iprs.id_type eq '3'}"> selected</c:if>>护照</option>
						<option value="4"<c:if test="${iprs.id_type eq '4'}"> selected</c:if>>台胞证</option>
						<option value="5"<c:if test="${iprs.id_type eq '5'}"> selected</c:if>>回乡证</option>
					</select>
				</div>
				<div class="w3">
					<input title="证件号" data-val="required" type="text" name="insPreservationDetailVoList[${i.index}].id_card" id="id_card_${i.index}" data-it-sign="id_type_${i.index}" onblur="robotizationGet(this,'sex_${i.index},birthday_${i.index}');" value="${iprs.id_card}">
				</div>
				<div class="w4">
					<input title="手机号" data-val="required" name="insPreservationDetailVoList[${i.index}].tel" id="tel_${i.index}" type="text" value="${iprs.tel}" onblur="doValidator(this);">
				</div>
				<div class="w5">
					<select data-val="required" name="insPreservationDetailVoList[${i.index}].career" id="career_${i.index}">
						<option value="1"<c:if test="${iprs.career eq '1'}"> selected</c:if>>内勤人员</option>
						<option value="2"<c:if test="${iprs.career eq '2'}"> selected</c:if>>保安人员</option>
						<c:if test="${fn:contains(product_code,'TYX')||fn:contains(product_code,'GZZRX-CA')||fn:contains(product_code,'GZZRX-ZH')||fn:contains(product_code,'GZZRX-XZH')}">
							<option value="3"<c:if test="${iprs.career eq '3'}"> selected</c:if>>武装押运人员</option>
						</c:if>
						<c:if test="${fn:contains(product_code,'GZZRX-TB')||fn:contains(product_code,'GZZRX-QH')||fn:contains(product_code,'GZZRX-PAC')||fn:contains(product_code,'GZZRX-CA')||fn:contains(product_code,'TYX-CA')}">
							<option value="4"<c:if test="${iprs.career eq '4'}"> selected</c:if>>保洁人员</option>
						</c:if>
					</select>
				</div>
				<%--<div class="w6">
					<input type="text" name="insPreservationDetailVoList[${i.index}].scheme" id="scheme_${i.index}" value="${iprs.scheme}">
				</div>--%>
				<div class="w7">
					<select data-val="required" name="insPreservationDetailVoList[${i.index}].sex" id="sex_${i.index}" onblur="doValidator(this);" data-it-sign="id_card_${i.index}">
						<option value="1"<c:if test="${iprs.sex eq '1'}"> selected</c:if>>男</option>
						<option value="2"<c:if test="${iprs.sex eq '2'}"> selected</c:if>>女</option>
					</select>
				</div>
				<div class="w8">
					<input title="出生日期" data-val="required" type="text" name="insPreservationDetailVoList[${i.index}].birthday" id="birthday_${i.index}" value="${iprs.birthday}" data-it-sign="id_card_${i.index}" onclick="laydate({elem:'#birthday_${i.index}',istime: false, format: 'YYYY-MM-DD',choose: function(dates){doValidator('#birthday_${i.index}');}})">
				</div>
				<div class="w9">
					<span onclick="deleteUpdateDetail(this)">删除</span>
				</div>
			</li>
		</c:forEach>
	</ul>
</div>
