系统管理员功能的实现
新添教师、专业负责人、教学副院长的基本信息
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <!DOCTYPE html> <html> <head> <title>添加教师信息</title> </head> <body> <% Object message = request.getAttribute("message"); if(message!=null && !"".equals(message)){ %> <script type="text/javascript"> alert("<%=request.getAttribute("message")%>"); </script> <%} %> <div align="center"> <h1 style="color: black;">添加教师信息</h1> <a href="guanliyuanmenu.jsp">返回菜单主页</a> <form name="form1" action="Servlet?method=addteacher" method="post" onsubmit="return check()"> <table border="1"> <tr> <td>教师工号:</td> <td><input type="text" name="id" id="id"></td> </tr> <tr> <td>教师名称:</td> <td><input type="text" name="xingming" id="xingming"></td> </tr> <tr> <td>所属学院:</td> <td><input type="text" name="xueyuan" id="xueyuan"></td> </tr> <tr> <td>所属专业:</td> <td><input type="text" name="zhuanye" id="zhuanye"></td> </tr> <tr> <td>角色:</td> <td> <input type="radio" name="juese" value="专业教师">专业教师 <input type="radio" name="juese" value="专业负责人">专业负责人 <input type="radio" name="juese" value="教学副院长">教学副院长 </td> </tr> <tr> <td></td> <td><input type="submit" value="添加"></td> </tr> </table> </form> </div> </body> </html>
学生审核
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false"%> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <!doctype html> <html> <head> </head> <body> <div align="center"> <h1 style="color: black;">浏览学生信息</h1> <a href="guanliyuanmenu.jsp">返回管理员子系统主页</a> <form> <table border="1"> <tr> <th>学院</th> <th>专业</th> <th>班级</th> <th>学号</th> <th>姓名</th> <th>性别</th> <th>手机号码</th> <th>状态</th> <th>操作</th> </tr> <c:forEach var="list" items="${list}"> <tr> <td align="center">${list.xueyuan}</td> <td align="center">${list.zhuanye}</td> <td align="center">${list.banji}</td> <td align="center">${list.id}</td> <td align="center">${list.xingming}</td> <td align="center">${list.xingbie}</td> <td align="center">${list.shoujihaoma}</td> <td align="center">${list.shenhe}</td> <td align="center"> <a onclick="return check()" href="Servlet?method=xueshengshenhe&id=${list.getId()}">审核通过</a> </td> </tr> </c:forEach> </table> </form> </div> </body> </html>
密码重置
<%@ page contentType="text/html;charset=UTF-8" language="java" %> <html> <head> <title>学生密码重置</title> </head> <body> <div align="center"> <h1 style="color: black;">密码重置</h1> <a href="guanliyuanmenu.jsp">返回管理员子系统主页</a> <form name="form1" action="Servlet?method=chongzhi" method="post" onsubmit="return check()"> <table border="1"> <tr> <td>请输入学号:</td> <td><input type="text" name="id"></td> </tr> <tr> <td></td> <td align="center"> <button type="submit" class="b">重 置</button> </td> </tr> </table> </form> </div> </body> </html>
<%@ page import="Bean.student" %> <%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %> <!DOCTYPE html> <html> <head> <title>查看个人信息</title> </head> <body> <div align="center"> <h1 style="color: black;">学生密码重置</h1> <a href="guanliyuanmenu.jsp">返回管理员子系统主页</a> <form name="form1" action="Servlet?method=chongzhi1&id=${student.getId()}" method="post" onsubmit="return check()"> <table border="1" > <tr> <th>学院</th> <th>专业</th> <th>班级</th> <th>学号</th> <th>姓名</th> <th>性别</th> <th>手机号码</th> <th>操作</th> </tr> <tr> <td align="center">${student.xueyuan}</td> <td align="center">${student.zhuanye}</td> <td align="center">${student.banji}</td> <td align="center">${student.id}</td> <td align="center">${student.xingming}</td> <td align="center">${student.xingbie}</td> <td align="center">${student.shoujihaoma}</td> <td align="center"> <button type="submit" class="b">重 置</button></td> </tr> </table> </form> </div> <script type="text/javascript"> function check() { if (confirm("确定要重置吗?")){ return true; }else{ return false; } } </script> </body> </html>
到此为止所有功能全部实现
标签:教师,管理信息系统,主页,05,试卷,重置,list,student,专业 From: https://www.cnblogs.com/yitongtianxia666/p/17006243.html