1 2 3 4

11.14

今天将人口普查系统剩下的代码全部更新出来

<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<div id="addSubjectForm" align="center">
    <c:forEach var="u" items="${list }">
                        <tr align="center">
                            <td>${u.zhuname}</td>
                            <td><a href="Schoolshow">查看所有信息</a></td>
                        </tr>
                    </c:forEach>
                  </div>
</body>
</html>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@page import="dao.SchoolDaoImpl"  %>
    <%@page import= "java.util.*" %>
    <%@page import="entity.*" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<%    
%>
<div id="schoolshow1" align="center"><!--显示试题-->
            <table border="0" cellspacing="10" cellpadding="0">
                  <tr>
                  <td align="center" colspan="5">
                  <h2>人口信息</h2>
                  </td>
                  </tr>
                  <tr align="center">
                          <td><b>户别</b></td>
                          <td><b>住房类型</b></td>
                          <td><b>本户现住房面积</b></td>
                          <td><b>本户现住房间数</b></td>
                          <td><b>户主姓名</b></td>
                          <td><b>身份证号码</b></td>
                          <td><b>性别</b></td>
                          <td><b>民族</b></td>
                          <td><b>受教育程度</b></td>
                      </tr>
                      <%
                      /*List<School> list=(List<School>)request.getAttribute("list");
                      if(list==null||list.size()<1){out.print("没有数据!!!");}
                      else{
                          for(School school:list){*/
                      
                          
                  %>
                  <%String zhuname=(String)session.getAttribute("zhuname");
                  
                  String classname=(String)session.getAttribute("classname");
                  String classteacher=(String)session.getAttribute("classteacher");
                  String classplace=(String)session.getAttribute("classplace");
                  String classnum=(String)session.getAttribute("classnum");
                  
                  String ID=(String)session.getAttribute("ID");
                  String sex=(String)session.getAttribute("sex");
                  String minzu=(String)session.getAttribute("minzu");
                  String education=(String)session.getAttribute("education"); 
                  session.invalidate();
                  out.print(zhuname);
                  %>
                  <tr align="center">
                          <td><%=classname %></td>
                          <td><%=classteacher %></td>
                          <td><%=classplace%></td>
                          <td><%=classnum %></td>
                          <td><%=zhuname %></td>
                          <td><%=ID %></td>
                          <td><%=sex %></td>
                          <td><%=minzu %></td>
                          <td><%=education %></td>
                  </tr>
                  <%//}
                      //}
                      
                      
                  %>
                <tr>
              
               
                <li><a href="school.jsp">回到主页 </a></li>
                
                
                </tr>
                    </table>
            </div>

</body>
</html>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<div id="addSubjectForm" align="center">
<form action="education" method="post">
<tr>
<h2>请输入受教育程度:</h2>
</tr>
<tr>
    <td>受教育程度:</td>
    <td><input type="text" name="education" size="20"></td>
    </tr>
   
<tr>    
                      <td colspan="2"><div align="center">
                      <input type="submit" value="查看">   
                    </div>
                </td>
                  </tr>
                  </form>
                  </div>
</body>
</html>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<div id="addSubjectForm" align="center">
<form action="minzu" method="post">
<tr>
<h2>请输入民族:</h2>
</tr>
<tr>
    <td>民族:</td>
    <td><input type="text" name="minzu" size="20"></td>
    </tr>
   
<tr>    
                      <td colspan="2"><div align="center">
                      <input type="submit" value="查看">   
                    </div>
                </td>
                  </tr>
                  </form>
                  </div>
</body>
</html>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<div id="addSubjectForm" align="center">
<form action="sex" method="post">
<tr>
<h2>请输入性别:</h2>
</tr>
<tr>
    <td>性别:</td>
    <td><input type="text" name="sex" size="20"></td>
    </tr>
   
<tr>    
                      <td colspan="2"><div align="center">
                      <input type="submit" value="查看">   
                    </div>
                </td>
                  </tr>
                  </form>
                  </div>
</body>
</html>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<div id="addSubjectForm" align="center">
<form action="zhuname" method="post">
<tr>
<h2>请输入户主姓名:</h2>
</tr>
<tr>
    <td>户主姓名:</td>
    <td><input type="text" name="zhuname" size="20"></td>
    </tr>
   
<tr>    
                      <td colspan="2"><div align="center">
                      <input type="submit" value="查看">   
                    </div>
                </td>
                  </tr>
                  </form>
                  </div>
</body>
</html>

 

posted @ 2020-11-14 23:01  小陈的太阳  阅读(68)  评论(0编辑  收藏  举报