11.13
持续更新人口普查系统,底层代码都已经更新了,还有一些前端web界面,这两天将更新完毕
来,上代码!
<%@ 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="Schoolshowdelete" 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>
<%@ 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="manageSubject" align="center"><!--查看试题--> <table width="95%" cellspacing="10"> <tr align="center"> <tr> <td>请选择查找方式:</td> <td> <ul> <li><a href="zhuname.jsp">户主姓名 </a></li> <li><a href="sex.jsp">性别 </a></li> <li><a href="minzu.jsp">民族 </a></li> <li><a href="education.jsp">受教育程度 </a></li> </ul> </td> </tr> <c:forEach var="u" items="${list }"> <tr align="center"> <td>${u.classname}</td> <td><a href="SchoolSelect ">查看所有信息</a></td> </tr> </c:forEach> </table> </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="schoolshow" 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){ %> <tr align="center"> <td><%=school.getclassname() %></td> <td><%=school.getclassteacher() %></td> <td><%=school.getclassplace() %></td> <td><%=school.getclassnum() %></td> <td><%=school.getzhuname() %></td> <td><%=school.getID() %></td> <td><%=school.getsex() %></td> <td><%=school.getminzu() %></td> <td><%=school.geteducation() %></td> </tr> <%} } %> <form action="SchoolDelete" method="post"> <tr> <td>请再次输入要删除的户主姓名:</td> </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> </table> </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="schoolshow" 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){ %> <tr align="center"> <td><%=school.getclassname() %></td> <td><%=school.getclassteacher() %></td> <td><%=school.getclassplace() %></td> <td><%=school.getclassnum() %></td> <td><%=school.getzhuname() %></td> <td><%=school.getID() %></td> <td><%=school.getsex() %></td> <td><%=school.getminzu() %></td> <td><%=school.geteducation() %></td> </tr> <%} } %> <form action="SchoolUpdate" method="post"> <tr> <td>请再次输入要更改的信息:</td> </tr> <table align="center"> <td>户主姓名:</td> <td> <input type="text" name="zhuname"> </td> </tr> <tr> <td>身份证号码:</td> <td> <input type="text" name="ID"> </td> </tr> <tr> <td>性别:</td> <td> <input type="radio" name="sex" value="男">男 <input type="radio" name="sex" value="女" checked>女 </td> </tr> <tr> <td>民族:</td> <td> <input type="text" name="minzu"> </td> </tr> <tr> <td>受教育程度:</td> <td> <select name="education"> <option value="研究生">研究生</option> <option value="大学本科">大学本科</option> <option value="大学专科">大学专科</option> <option value="高中" selected>高中</option> <option value="初中">初中</option> <option value="小学">小学</option> <option value="未上过学">未上过学</option> </select> </td> </tr> <tr> <td colspan="2"><div align="center"> <input type="submit" value="更改"> </div> </td> </tr> </form> </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="Schoolshowupdate" 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>
<%@ 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="schoolshow" 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> </tr> <% List<School> list=(List<School>)request.getAttribute("list"); if(list==null||list.size()<1){out.print("没有数据!!!");} else{ for(School school:list){ %> <tr align="center"> <% String p=school.getzhuname(); /*String classname=school.getclassname(); String classteacher=school.getclassteacher(); String classplace=school.getclassplace(); String classnum=school.getclassnum(); String ID=school.getID(); String sex=school.getsex(); String minzu=school.getminzu(); String education=school.geteducation(); //session.setAttribute("zhuname",p); session.setAttribute("classname",classname); session.setAttribute("classteacher",classteacher); session.setAttribute("classplace",classplace); session.setAttribute("classnum",classnum); session.setAttribute("ID",ID); session.setAttribute("sex",sex); session.setAttribute("minzu",minzu); session.setAttribute("education",education);*/ %> <td> <a href="schoolshow?zhuname=<%=p%>"><%=p%></a></td> <%/*session.setAttribute("zhuname",p); */%> <td><%=school.getsex() %></td> <td><%=school.getminzu() %></td> <td><%=school.geteducation() %></td> <div id="addSubjectForm" align="center"> </div> </tr> </div> <%} } %> <tr> <li><a href="school.jsp">回到主页 </a></li> </tr> </table> </div> </body> </html>