• 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>
  • 相关阅读:
    Siege 3.0 正式版发布,压力测试工具
    Pomm 1.1.2 发布,专为 PG 设计的 ORM 框架
    Whonix 0.5.6 发布,匿名通用操作系统
    国内开源 java cms,Jspxcms 2.0 发布
    EZNamespaceExtensions.Net v2013增加对上下文菜单、缩略图、图标、属性表的支持
    GNU Guile 2.0.9 发布,Scheme 实现
    jdao 1.0.4 发布 轻量级的orm工具包
    OpenSearchServer 1.4 RC4 发布
    Percona Server for MySQL 5.5.3030.2
    Samba 4.0.5 发布
  • 原文地址:https://www.cnblogs.com/cdl-sunshine/p/14160082.html
Copyright © 2020-2023  润新知