1 2 3 4

12.2

来吧。。开始更新员工培训系统。

先看看前端一些界面吧!

登录界面

<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>石家庄宇环科技有限公司员工培训系统</title>
</head>
<body>
<div id="addSubjectForm" align="center">
<form action="IndexServlet" method="post">  
<table align="center">              
     <tr>
     <h1>                石家庄宇环科技有限公司员工培训系统</h1>
     </tr>

    <tr>
    <td>身份:
    <select name="profession"> 
     <option value="1">管理员</option> 
     <option value="2">教师</option>
     <option value="3" selected>学生</option> 
     </select> 
    </td>


         <tr><td>
             用户名:<input pattern="[a-zA-Z0-9]{6,12}" name="username"></td></tr>
        
         <tr><td>
             密码:<input pattern="[a-zA-Z0-9]{6,12}" type="password" name="password"></td> </tr>
        
        
            <tr>
                      <td colspan="2"><div align="center">
                        <input type="submit" value="登录"></div></td> </tr>
</table>
</form>
</div>
</body>
</html>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>管理员系统</title>
</head>
<body>
<div id="addSubjectForm" align="center">
                <form action="SubjectAddServlet" method="post">
                <tr>
                <h1>管理员系统</h1> 
                <ul>
                <li><a href="query.jsp">查询用户 </a></li>
                <li><a href="add.jsp">添加新用户 </a></li>
                <li><a href="delete.jsp">暂停用户 </a></li>
                <li><a href="update.jsp">修改用户 </a></li>
                <li><a href="managesummary.jsp">汇总查询 </a></li>
                <li><a href="index.jsp">退出登录 </a></li>
                </ul>
                </form>
</body>
</html>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>教师系统</title>
</head>
<body>
<%
        String teaID=(String)request.getSession().getAttribute("ID");
        session.setAttribute("teaID", teaID);
        request.setAttribute("teaID", teaID);
        System.out.println(teaID);     
                  %>
<div id="addSubjectForm" align="center">
                <form action="SubjectAddServlet" method="post">
                <tr>
                <h1>教师系统</h1> 
                <ul>
                <li><a href="Teaservlet?method=show">查看个人信息 </a></li>
                <li><a href="Teaservlet?method=showupdate">修改个人信息 </a></li>
                <li><a href="gradeadd.jsp">录入成绩信息 </a></li>
                <li><a href="Teaservlet?method=showgrade">修改成绩信息 </a></li>
                
                
                <li><a href="Summary.jsp">汇总查询信息 </a></li>
                
                
                <li><a href="index.jsp">退出登录 </a></li>
                </ul>
                </form>
</div>
</body>
</html>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>员工系统</title>
</head>
<body>
<%
        String stuID=(String)request.getSession().getAttribute("ID");
        session.setAttribute("stuID", stuID);
        request.setAttribute("stuID", stuID);
        System.out.println(stuID);     
                  %>
<div id="addSubjectForm" align="center">
                <form action="SubjectAddServlet" method="post">
                <tr>
                <h1>员工系统</h1> 
                <ul>
                <li><a href="Stuservlet?method=show">查看个人信息 </a></li>
                <li><a href="Stuservlet?method=showupdate">修改个人信息 </a></li>
                <li><a href="Stuservlet?method=showgrade">查询个人成绩 </a></li>
                <li><a href="index.jsp">退出登录 </a></li>
                </ul>
                </form>
</body>
</html>

 

posted @ 2020-12-02 23:15  小陈的太阳  阅读(198)  评论(0编辑  收藏  举报