liulankecheng
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Insert title here</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> <table class="tb"> <tr> <td><a href="stuleft.jsp">返回学生功能页面</a></td> </tr> <tr> <td> 课程名称 </td> </tr> <c:forEach items="${cous}" var="item"> <tr> <td> <a href="xuankeServlet?method=chakan&id=${item.id}">${item.cname}</a></td> </tr> </c:forEach> </table> </div> </body> </html>
liulamkecheng1
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <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> <table class="tb"> <tr> <td><a href="stuleft.jsp">返回学生功能页面</a></td> </tr> <tr> <td>课程编号</td> <td>课程名称</td> <td>课程容量</td> <td>课程选课人数</td> <td>任课教师</td> </tr> <c:forEach items="${cous}" var="item"> <tr> <td>${item.cpid}</td> <td>${item.cname}</td> <td>${item.num}</td> <td>${item.snum}</td> <td>${item.jiaoshi}</td> </tr> </c:forEach> </table> </div> </body> </html>
liulanstu
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <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> <table class="tb"> <tr> <td><a href="tealeft.jsp">返回教师功能页面</a></td> </tr> <tr> <td>学生学号</td> <td>学生姓名</td> <td>学生性别</td> <td>学生所在班级</td> <td>学生专业</td> </tr> <c:forEach items="${jibens}" var="item"> <tr> <td>${item.spid}</td> <td>${item.stuname}</td> <td>${item.sex}</td> <td>${item.banji}</td> <td>${item.ye}</td> </tr> </c:forEach> </table> </div> </body> </html>
login
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>用户登录</title> </head> <body> <table align="center" border="0px" cellpadding="10px" cellspacing="10px"> <form action="xuankeServlet?method=login" method="post" onsubmit="return check()"> <tr> <td>用户名:</td> <td><input type="text" name="username" id="username"></td> </tr> <tr> <td>密码:</td> <td><input type="password" name="password" id="password"></td> </tr> <tr align="center"> <th colspan="2"> <input type="submit" value="登录"> </th> </tr> </form> </table> </body> </html>
stuleft
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>学生管理页面</title> </head> <body> <table align="center" border="0px" cellpadding="10px" cellspacing="10px"> <form action="xuankeServlet?method=addtea" method="post" onsubmit="return check()"> <tr> <td><a href="login.jsp">返回登陆页面</a></td> </tr> <tr> <td>学生功能页面</td> </tr> <tr> <td><a href="xuankeServlet?method=liulankecheng">选课</a></td> </tr> <tr> <td><a href="updates.jsp">修改个人信息</a></td> </tr> <tr> <td><a href="xuankeServlet?method=liulankecheng1">浏览课程信息</a></td> </tr> </form> </table> </body> </html>
sucess
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> </head> <body> <% Object message = request.getAttribute("message"); if(message!=null && !"".equals(message)){ %> <script type="text/javascript"> alert("<%=request.getAttribute("message")%>"); </script> <%} %> <table align="center" border="0px" cellpadding="10px" cellspacing="10px"> <tr> <td><a href="xuankeServlet?method=liulankecheng">返回选课</a></td> </tr> </table> </body> </html>
tealeft
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>教师功能页面</title> </head> <body> <table align="center" border="0px" cellpadding="10px" cellspacing="10px"> <form action="xuankeServlet?method=addtea" method="post" onsubmit="return check()"> <tr> <td><a href="login.jsp">返回登陆页面</a></td> </tr> <tr> <td>教师功能页面</td> </tr> <tr> <td><a href="addcourse.jsp">添加课程信息</a></td> </tr> <tr> <td><a href="updatet.jsp">修改个人信息</a></td> </tr> <tr> <td><a href="xuankeServlet?method=liulanstu">浏览选课学生信息</a></td> </tr> </form> </table> </body> </html>
upadte
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>修改学生信息</title> <script> </script> </head> <body> <% Object message = request.getAttribute("message"); if(message!=null && !"".equals(message)){ %> <script type="text/javascript"> alert("<%=request.getAttribute("message")%>"); </script> <%} %> <table align="center" border="0px" cellpadding="10px" cellspacing="10px"> <form action="xuankeServlet?method=updatestu" method="post" onsubmit="return check()"> <tr> <td><a href="stuleft.jsp">返回学生功能页面</a></td> </tr> <tr> <td>姓名:</td> <td><input type="text" name="stuname" id="stuname"></td> </tr> <tr> <td>性别</td> <td> <select name="sex"> <option value="男">男</option> <option value="女">女</option> </select> </td> </tr> <tr> <td>学生所在班级:</td> <td><input type="text" name="banji" id="banji"></td> </tr> <tr> <td>所属专业:</td> <td><input type="text" name="ye" id="ye"></td> </tr> <tr align="center"> <th colspan="2"> <input type="submit" value="提交"> </th> </tr> </form> </table> </body> </html>
update
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>修改教师信息</title> <script> </script> </head> <body> <% Object message = request.getAttribute("message"); if(message!=null && !"".equals(message)){ %> <script type="text/javascript"> alert("<%=request.getAttribute("message")%>"); </script> <%} %> <table align="center" border="0px" cellpadding="10px" cellspacing="10px"> <form action="xuankeServlet?method=updatetea" method="post" onsubmit="return check()"> <tr> <td><a href="tealeft.jsp">返回教师功能页面</a></td> </tr> <tr> <td>教师姓名:</td> <td><input type="text" name="teaname" id="teaname"></td> </tr> <tr> <td>性别</td> <td> <select name="sex"> <option value="男">男</option> <option value="女">女</option> </select> </td> </tr> <tr> <td>教师所在学院:</td> <td><input type="text" name="txueyuan" id="txueyuan"></td> </tr> <tr> <td>职称:</td> <td> <select name="zhicheng"> <option value="教授">教授</option> <option value="副教授">副教授</option> <option value="讲师">讲师</option> <option value="助教">助教</option> </select> </td> </tr> <tr align="center"> <th colspan="2"> <input type="submit" value="提交"> </th> </tr> </form> </table> </body> </html>