<%@ page language="java" pageEncoding="UTF-8"%>

<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>人信息查询</title>
<link href="css/style.css" rel="stylesheet" type="text/css" /><!--主样式-->
<link href="css/formstyle.css" rel="stylesheet" type="text/css" /><!--表格样式-->
<link href="css/btnstyle.css" rel="stylesheet" type="text/css" /><!--按钮样式-->
<link rel="stylesheet" type="text/css" href="scripts/easyui/themes/gray/easyui.css"/>
<link rel="stylesheet" type="text/css" href="scripts/easyui/themes/icon.css"/>
<script type="text/javascript" src="scripts/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="scripts/easyui/jquery.easyui.min.js"></script>
 
<script type="text/javascript">
$(function(){
$('#regionCode').combotree({
url:"sltRegion!loadBuilding.c",
onBeforeExpand:function(node){
$('#regionCode').combotree('tree').tree("options").url= "sltRegion!loadBuilding.c?code=" + node.id;
}
}); 
});
</script>
 
</head>
<body>
<form name="form1" method="post" action="familyInfo!personInfoQuery.c">
 <div class="hall">
    <div class="itemContent crent_div" id="tab_c1">
   <div class="tabquicksearch">
     <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
   <td colspan="7" class="tabsearchbox">快速查找&nbsp;&nbsp;<span style="color: red;">${msg }</span></td>
</tr>
<tr>
<td width="80" align="right">所属辖区&nbsp;&nbsp;</td>
        <td width="160"><input name="regionCode" id="regionCode" style="width:180px"/></td>
   <td width="80" align="right">姓名&nbsp;&nbsp;</td>
   <td width="160"><input type="text" name="name" id="name" value="${name}" size="20"/></td>
   <td width="80" align="right">健康状况&nbsp;&nbsp;</td>
  <td width="160">
  <select name="health">
  <option value="">==请选择==</option>
<c:forEach var="h" items="${healthList}">
<option value="${h.key}" ${h.key==health?"selected":"" }>${h.value.name}</option>
</c:forEach>
  </select>
   </td>
<td rowspan="2" align="left" valign="top"><img src="/projectetong/p_w_picpaths/btn_searchbig.gif" width="96" height="31" onclick="document.form1.action='familyInfo!personInfoQuery.c';document.form1.submit();" style="cursor:hand "/></td>
</tr>
<tr>
<td width="80" align="right">政治面貌&nbsp;&nbsp;</td>
<td width="160">
<select name="political">
<option value="">==请选择==</option>
<c:forEach var="p" items="${politicalList}">
<option value="${p.key}" ${p.key==political?"selected":""}>${p.value.name}</option>
</c:forEach>
</select>
   </td>
   <td width="80" align="right">×××号&nbsp;&nbsp;</td>
   <td width="160"><input type="text" name="idcard" id="idcard" value="${idcard}" size="20"/></td>
   <td width="80" align="right">性别&nbsp;&nbsp;</td>
   <td width="160">
    <select name="sex">
  <option>==请选择==</option>
    <c:forEach var="s" items="${sexList}">
<option value="${s.key}" ${s.key==sex?"selected":"" }>${s.value.name}</option>
</c:forEach>
    </select>
</td>
</tr>
<tr>
<td width="80" align="right">婚姻状况&nbsp;&nbsp;</td>
<td width="160">
<select name="marriage">
  <option value="">==请选择==</option>
<c:forEach var="m" items="${marriageList}">
<option value="${m.key}" ${m.key==marriage?"selected":"" }>${m.value.name}</option>
</c:forEach>
  </select>
</td>
<td width="80" align="right">居住地址&nbsp;&nbsp;</td>
<td width="160"><input type="text" name="actualDistrict" id="actualDistrict" value="${actualDistrict}" size="20"/></td>
   <td width="80" align="right">工作情况&nbsp;&nbsp;</td>
   <td>
    <select name="profession">
    <option value="">==请选择==</option>
    <c:forEach var="p" items="${professionList}">
<option value="${p.key}" ${p.key==profession?"selected":"" }>${p.value.name}</option>
</c:forEach>
    </select>
</td>
</tr>
</table>
</div>
</div>
</div>
 
<table width="97%" align="center" class="formmain" cellpadding="0" cellspacing="0" >
<tr class="greentitle">
<td width="5%"><input type="checkbox" name="delArrayControl" value="checkbox"   
<td>姓名</td>
<td>性别</td>
<td>×××号码</td> 
<td>与户主关系</td>
<td>出生日期</td>
<td>电话号码</td>
<td>居住地址</td>
<td>户籍所在地</td>
<td>操作</td>
</tr>
${empty personList?"<tr height='25'><td colspan='10' align='center' >暂无记录</td></tr>":""}
<c:forEach var="person" items="${personList}" varStatus="vs">
<tr class="${vs.index%2==0?'t1':'t2'}">
<td><input type="checkbox"/></td>
<td>${person.name}</td>
<td>${person.sex}</td>
<td>${person.idcard}</td>
<td></td>
<td>${person.birthday }</td>
<td></td>
<td>${person.address}</td>
<td>${person.censusDistrict}</td>
<td><input type="button" class="button" value="人口信息"/><input type="button" class="button" value="住房信息"/></td>
</tr>
</c:forEach>
</table>
<br/>
<%String url ="familyInfo!personInfoQuery.c"; %> <!-- 定义分页的url -->
<%@include file="/common/page_paging.jsp" %>
</form>
</body>
</html>