首页 > 其他分享 >关于学生选课系统加模板这件事

关于学生选课系统加模板这件事

时间:2022-11-19 20:47:27浏览次数:53  
标签:界面 ke 选课 信息 jsp checked 模板 这件

加模版啦!!!!

index.jsp(主界面)

<html>
  <head>
    <title>主界面</title>
  </head>
  <body>
  <center>
    <form action="selectServlet" method="post">
      <table border="1">
        <caption><h1>用户登录页面</h1></caption>
        <tr>
          <td>请选择登录角色:</td>
          <td>
            <select name="who">
            <option>请选择:</option>
            <option>系统管理员</option>
              <option>学生</option>
              <option>教师</option>
          </select>
          </td>
        </tr>
        <tr>
          <td>用户编号:</td>
          <td><input type="text" name="userId" id="userId"></td>
        </tr>
        <tr>
          <td>密码:</td>
          <td><input type="text" name="password" id="password"></td>
        </tr>
        <tr>
          <td></td>
          <td><button type="submit" value="登录">登录</button></td>
        </tr>
      </table>
    </form>
  </center>
  </body>
</html>

加之后:

studentGong.jsp(学生功能界面)

<html>
<head>
    <title>学生功能界面</title>
</head>
<body>
<center>
    <form>
        <table border="1">
            <tr>
                <td><a href="checkPersonal">查看个人信息</a></td>
            </tr>
            <tr>
                <td><a href="updatePersonal1">修改个人基本信息</a></td>
            </tr>
            <tr>
                <td><a href="password2.jsp">修改个人密码</a></td>
            </tr>
            <tr>
                <td><a href="checkSomeClass.jsp">查询课程信息</a></td>
            </tr>
            <tr>
                <td><a href="ziZhuClass">自助选课</a></td>
            </tr>
            <tr>
                <td><a href="studentCheckPersonalClass">查询个人课表</a></td>
            </tr>

        </table>
    </form>
</center>
</body>
</html>

加之后:

teacherGong.jsp

<html>
<head>
    <title>教师功能界面</title>
</head>
<body>
<center>
    <form>
        <table border="1">
            <tr>
                <td><a href="teacherLookInformation">查看个人信息</a></td>
            </tr>
            <tr>
                <td><a href="updatePersonal3">修改个人基本信息</a></td>
            </tr>
            <tr>
                <td><a href="password4">修改个人密码</a></td>
            </tr>
            <tr>
                <td><a href="teacherUpdatePerson">修改个人所教授课</a></td>
            </tr>
            <tr>
                <td><a href="teacherCheckPersonalClass">查询个人课表</a></td>
            </tr>
        </table>
    </form>
</center>
</body>
</html>

加之后:

show3.jsp(系统管理员功能界面)

<html>
<head>
    <title>系统管理员功能界面</title>
</head>
<body>
<center>
    <form>
        <table border="1">
            <tr>
                <td><a href="addStudent.jsp">新添学生基本信息</a></td>
            </tr>
            <tr>
                <td><a href="addTeacher.jsp">新添教师信息</a></td>
            </tr>
            <tr>
                <td><a href="deleteTeacher1">删除教师信息</a></td>
            </tr>
            <tr>
                <td><a href="deleteStudent1">删除学生信息</a></td>
            </tr>
            <tr>
                <td><a href="deleteTeacher1">修改教师信息</a></td>
            </tr>
            <tr>
                <td><a href="deleteStudent1">修改学生信息</a></td>
            </tr>
            <tr>
                <td><a href="makeNew1.jsp">教师密码重置</a></td>
            </tr>
            <tr>
                <td><a href="makeNew2.jsp">学生密码重置</a></td>
            </tr>
            <tr>
                <td><a href="addClass.jsp">新添课程信息</a></td>
            </tr>
            <tr>
                <td><a href="updateClass1">修改课程信息</a></td>
            </tr>
            <tr>
                <td><a href="updateClass1">删除课程信息</a></td>
            </tr>

        </table>
    </form>
</center>
</body>
</html>

加之后:

addClass.jsp(新添课程信息界面)

<html>
<head>
    <title>新添课程信息界面</title>
</head>
<body>
<center>
    <form action="addClass1" method="post">
        <table border="1">
            <tr>
                <td>课程编号:</td>
                <td><input type="text" name="idK"></td>
            </tr>
            <tr>
                <td>课程名称:</td>
                <td><input type="text" name="className"></td>
            </tr>
            <tr>
                <td>开课时间:</td>
                <td><input type="text" name="startTime"></td>
            </tr>
            <tr>
                <td>开课节次:</td>
                <td><input type="text" name="startNum"></td>
            </tr>
            <tr>
                <td>所属学院:</td>
                <td><input type="text" name="yuanK"></td>
            </tr>
            <tr>
                <td>任课教师工号:</td>
                <td><input type="text" name="tID"></td>
            </tr>
            <tr>
                <td>任课教师姓名:</td>
                <td><input type="text" name="tName"></td>
            </tr>
            <tr>
                <td>限定选课人数:</td>
                <td><input type="text" name="kPerson"></td>
            </tr>
            <tr>
                <td></td>
                <td><input type="submit" value="添加"></td>
            </tr>
        </table>
    </form>
</center>
</body>
</html>

加之后:

addStudent.jsp(新添学生信息界面)

<html>
<head>
    <title>添加学生信息</title>
</head>
<body>
<center>
    <form action="addStudent1" method="post">
        <table border="1">
            <caption><h1>新添学生信息</h1></caption>
            <tr>
                <td>学生姓名:</td>
                <td><input type="text" name="name" id="name"></td>
            </tr>
            <tr>
                <td>性别:</td>
                <td><input type="radio" name="sex" value="男">男
                    <input type="radio" name="sex" value="女">女</td>
            </tr>
            <tr>
                <td>年龄:</td>
                <td><input type="text" name="age" id="age"></td>
            </tr>
            <tr>
                <td>专业</td>
                <td>
                    <input type="radio" name="major" value="计算机科学与技术">计算机科学与技术
                    <input type="radio" name="major" value="软件工程">软件工程
                    <input type="radio" name="major" value="网络工程">网络工程
                    <input type="radio" name="major" value="数字媒体技术">数字媒体技术

                </td>
            </tr>
            <tr>
                <td>班级:</td>
                <td><input type="text" name="ban" id="ban"></td>
            </tr>
            <tr>
                <td></td>
                <td><input type="submit" value="添加"></td>
            </tr>
        </table>
    </form>
</center>
</body>
</html>

加之后:

addTeacher.jsp(新添教师信息界面)

<html>
<head>
    <title>添加教师信息</title>
</head>
<body>

<script>
    function check(){
        var gong=document.getElementById("gong").value;//获取到教师工号
        var gong1=gong.toString();
        var gong2=gong1.substring(0,2);
        var yuan1=document.getElementById("Radio01");
        var yuan2=document.getElementById("Radio02");
        var yuan3=document.getElementById("Radio03");
        var yuan4=document.getElementById("Radio04");
        var yuan5=document.getElementById("Radio05");

        if(!(gong2=="01"&&yuan1.checked)&&!(gong2=="02"&&yuan2.checked)&&
            !(gong2=="03"&&yuan3.checked)&&!(gong2=="04"&&yuan4.checked)
    &&!(gong2=="05"&&yuan5.checked)){
            alert("选错啦!")
            return false;
        }

    }
</script>
<center>
    <form action="addTeacher1" name="form1" method="post">
        <table border="1">
            <tr>
                <td>教师工号:</td>
                <td><input type="text" name="idT" id="gong"></td>
            </tr>
            <tr>
                <td>姓名:</td>
                <td><input type="text" name="name"></td>
            </tr>
            <tr>
                <td>职称:</td>
                <td><input type="radio" name="zhiCheng" value="助教">助教
                    <input type="radio" name="zhiCheng" value="讲师">讲师
                    <input type="radio" name="zhiCheng" value="副教授">副教授
                    <input type="radio" name="zhiCheng" value="教授">教授
                </td>
            </tr>
            <tr>
                <td>所属学院:</td>
                <td>
                    <input type="radio" name="yuan" id="Radio01" value="信息">信息
                    <input type="radio" name="yuan" id="Radio02" value="土木">土木
                    <input type="radio" name="yuan" id="Radio03" value="机械">机械
                    <input type="radio" name="yuan" id="Radio04" value="电气">电气
                    <input type="radio" name="yuan" id="Radio05" value="交通">交通
                </td>
            </tr>
            <tr>
                <td></td>
                <td><input type="submit" value="添加" onclick="return check()"></td>
            </tr>
        </table>
    </form>
</center>

</body>
</html>

加之后:

checkPersonal1.jsp(学生查看个人信息界面)

<html>
<head>
    <title>查看个人信息</title>
</head>
<body>
<center>
    <form>
        <table border="1">
            <tr>
                <td>学生ID</td>
                <td>${u.id}</td>
            </tr>
            <tr>
                <td>学生姓名</td>
                <td>${u.name}</td>
            </tr>
            <tr>
                <td>性别</td>
                <td>${u.sex}</td>
            </tr>
            <tr>
                <td>年龄</td>
                <td>${u.age}</td>
            </tr>
            <tr>
                <td>专业</td>
                <td>${u.major}</td>
            </tr>
            <tr>
                <td>班级</td>
                <td>${u.ban}</td>
            </tr>
        </table>
    </form>
</center>
</body>
</html>

加之后:

checkSomeClass.jsp(查询课程信息界面)

<html>
<head>
    <title>查询课程信息界面</title>
</head>
<body>
<center>
    <form action="checkSomeClass2" method="post">
        <table border="1">
            <caption><h1>查询课程信息</h1></caption>
            <tr>
                <td>课程名称/所属院系/任课教师名称:</td>
                <td><input type="text" name="information"></td>
            </tr>
            <tr>
                <td></td>
                <td><input type="submit" value="查询"></td>
            </tr>
        </table>
    </form>
</center>
</body>
</html>

加之后:

checkSomeClass3.jsp(显示课程信息界面)

<html>
<head>
    <title>显示课程信息界面</title>
</head>
<body>
<center>
    <form>
        <table border="1">
            <tr>
                <td>课程ID</td>
                <td>课程名称</td>
                <td>开课时间</td>
                <td>开课节次</td>
                <td>所属院系</td>
                <td>任课教师ID</td>
                <td>任课教师姓名</td>
                <td>选课限制人数</td>
            </tr>
            <c:forEach items="${list}" var="ke">
                <tr>
                    <td>${ke.idK}</td>
                    <td>${ke.className}</td>
                    <td>${ke.startTime}</td>
                    <td>${ke.startNum}</td>
                    <td>${ke.yuanK}</td>
                    <td>${ke.tID}</td>
                    <td>${ke.tName}</td>
                    <td>${ke.kPerson}</td>
                </tr>
            </c:forEach>
        </table>
    </form>
</center>
</body>
</html>

加之后:

lookAllStudent.jsp(浏览全部学生信息界面)

<html>
<head>
    <title>浏览全部学生界面</title>
</head>
<body>
<center>
    <form>
        <table border="1">
            <tr>
                <td>学生学号</td>
                <td>姓名</td>
                <td>性别</td>
                <td>年龄</td>
                <td>专业</td>
                <td>班级</td>
                <td>操作</td>
            </tr>
            <c:forEach items="${list}" var="tt">
                <tr>
                    <td>${tt.id}</td>
                    <td>${tt.name}</td>
                    <td>${tt.sex}</td>
                    <td>${tt.age}</td>
                    <td>${tt.major}</td>
                    <td>${tt.ban}</td>
                    <td><a href="deleteStudent2?id=${tt.id}">删除</a>
                        <a href="updateStudent1?id=${tt.id}">修改</a>
                    </td>
                </tr>
            </c:forEach>
        </table>
    </form>
</center>
</body>
</html>

加之后:

lookAllTeacher.jsp(浏览全部教师信息界面)

<html>
<head>
    <title>删除教师信息界面</title>
</head>
<body>
<center>
    <form>
        <table border="1">
            <tr>
                <td>教师工号</td>
                <td>姓名</td>
                <td>职称</td>
                <td>院系</td>
                <td>操作</td>
            </tr>
            <c:forEach items="${list}" var="tt">
                <tr>
                    <td>${tt.idT}</td>
                    <td>${tt.name}</td>
                    <td>${tt.zhiCheng}</td>
                    <td>${tt.yuan}</td>
                    <td><a href="deleteTeacher2?idT=${tt.idT}">删除</a>
                        <a href="updateTeacher1?idT=${tt.idT}">修改</a>
                    </td>

                </tr>
            </c:forEach>
        </table>
    </form>
</center>
</body>
</html>

加之后:

makeNew1.jsp(教师密码重置界面)

<html>
<head>
    <title>密码重置界面</title>
</head>
<body>
<center>
    <form action="makeNew3" method="post">
        <table border="1">
            <tr>
                <td>请输入教师工号:</td>
                <td><input type="text" name="idT"></td>
            </tr>
            <tr>
                <td></td>
                <td><input type="submit" value="确认"></td>
            </tr>
        </table>
    </form>
</center>
</body>
</html>

加之后:

makeNew2.jsp(学生密码重置界面)

<html>
<head>
    <title>学生密码重置</title>
</head>
<body>
<center>
    <form action="makeNew4" method="post">
        <table border="1">
            <tr>
                <td>请输入学生学号:</td>
                <td><input type="text" name="id"></td>
            </tr>
            <tr>
                <td></td>
                <td><input type="submit" value="确认"></td>
            </tr>
        </table>
    </form>
</center>
</body>
</html>

加之后:

showTeacher.jsp(查看教师个人信息)

<html>
<head>
    <title>查看个人信息</title>
</head>
<body>
<center>
  <form>
      <table border="1">
          <tr>
              <td>教师工号</td> <td>${t.idT}</td>
          </tr>
          <tr>
              <td>姓名</td> <td>${t.name}</td>
          </tr>
          <tr>
              <td>职称</td> <td>${t.zhiCheng}</td>
          </tr>
          <tr>
              <td>院系</td> <td>${t.yuan}</td>
          </tr>
      </table>
  </form>
</center>
</body>
</html>

加之后:

studentCheckPersonalClass2.jsp(显示课表界面)

<html>
<head>
    <title>显示课表界面</title>
</head>
<body>
<center>
    <form>
        <table border="1">
            <tr>
                <td>课程ID</td>
                <td>课程名称</td>
                <td>开课时间</td>
                <td>开课节次</td>
                <td>所属院系</td>
                <td>任课教师ID</td>
                <td>任课教师姓名</td>
                <td>选课限制人数</td>
            </tr>
            <c:forEach items="${list}" var="ke">
                <tr>
                    <td>${ke.idK}</td>
                    <td>${ke.className}</td>
                    <td>${ke.startTime}</td>
                    <td>${ke.startNum}</td>
                    <td>${ke.yuanK}</td>
                    <td>${ke.tID}</td>
                    <td>${ke.tName}</td>
                    <td>${ke.kPerson}</td>
                </tr>
            </c:forEach>
        </table>
    </form>
</center>
</body>
</html>

加之后:

teacherCheckPersonalClass.jsp(教师查询个人课表界面)

<html>
<head>
    <title>查看个人课表</title>
</head>
<body>
<center>
    <form>
        <table border="1">
            <tr>
                <td>课程名称</td>
                <td>开课时间</td>
                <td>开课节次</td>
                <td>选课限制人数</td>
            </tr>
            <c:forEach items="${list}" var="ke">
                <tr>
                    <td>${ke.className}</td>
                    <td>${ke.startTime}</td>
                    <td>${ke.startNum}</td>
                    <td>${ke.kPerson}</td>
                </tr>
            </c:forEach>
        </table>
    </form>
</center>
</body>
</html>

加之后:

teacherUpdatePerson2.jsp(教师修改课程信息界面)

<html>
<head>
    <title>选课信息界面</title>
</head>
<body>
<center>
    <form>
        <table border="1">
            <tr>
                <td>课程名称</td>
                <td>开课时间</td>
                <td>开课节次</td>
                <td>选课限制人数</td>
                <td>操作</td>
            </tr>
            <c:forEach items="${list}" var="ke">
                <tr>
                    <td>${ke.className}</td>
                    <td>${ke.startTime}</td>
                    <td>${ke.startNum}</td>
                    <td>${ke.kPerson}</td>
                    <td><a href="teacherUpdatePerson3?idK=${ke.idK}">修改</a></td>
                </tr>
            </c:forEach>
        </table>
    </form>
</center>
</body>
</html>

加之后:

teacherUpdatePerson4.jsp(修改课程信息界面)

<html>
<head>
    <title>修改界面</title>
</head>
<body>
<center>
    <form action="teacherUpdateClass5" method="post">
        <table border="1">
            <tr>
                <td>课程名称:</td>
                <td><input type="text" name="className" value="${k.className}" disabled></td>
            </tr>
            <tr>
                <td>开课节次:</td>
                <td><input type="text" name="startNum" value="${k.startNum}" disabled></td>
            </tr>
            <tr>
                <td>开课时间:</td>
                <td><input type="text" name="startTime" value="${k.startTime}" disabled></td>
            </tr>
            <tr>
                <td>选课限制人数:</td>
                <td><input type="text" name="kPerson" value="${k.kPerson}"></td>
            </tr>
            <tr>
                <td></td>
                <td><input type="submit" value="修改"></td>
            </tr>

        </table>
    </form>
</center>
</body>
</html>

加之后:

updateClass2.jsp(修改课程信息)

<html>
<head>
    <title>修改课程界面1</title>
</head>
<body>
<center>
    <form>
        <table border="1">
            <tr>
                <td>课程编号</td>
                <td>课程名称</td>
                <td>开课时间</td>
                <td>开课节次</td>
                <td>所属学院</td>
                <td>任课教师工号</td>
                <td>任课教师姓名</td>
                <td>选课限制人数</td>
                <td>操作</td>
            </tr>
            <c:forEach items="${list}" var="ke">
                <tr>
                    <td>${ke.idK}</td>
                    <td>${ke.className}</td>
                    <td>${ke.startTime}</td>
                    <td>${ke.startNum}</td>
                    <td>${ke.yuanK}</td>
                    <td>${ke.tID}</td>
                    <td>${ke.tName}</td>
                    <td>${ke.kPerson}</td>
                    <td><a href="updateClass3?idK=${ke.idK}">修改</a> <a href="deleteClass1?idK=${ke.idK}">删除</a></td>
                </tr>
            </c:forEach>
        </table>
    </form>
</center>
</body>
</html>

加之后:

updateClass4.jsp(修改课程信息)

<html>
<head>
    <title>修改课程界面2</title>
</head>
<body>
<center>
    <form action="updateClass5" method="post">
        <table border="1">
            <input type="hidden" name="idK" value="${k.idK}">
            <input type="hidden" name="className" value="${k.className}">

            <tr>
                <td>开课时间:</td>
                <td><input type="text" name="startTime" value="${k.startTime}"></td>
            </tr>
            <tr>
                <td>开课节次:</td>
                <td><input type="text" name="startNum" value="${k.startNum}"></td>
            </tr>
            <tr>
                <td>所属学院:</td>
                <td><input type="text" name="yuanK" value="${k.yuanK}"></td>
            </tr>
            <tr>
                <td>任课教师工号:</td>
                <td><input type="text" name="tID" value="${k.tID}"></td>
            </tr>
            <tr>
                <td>任课教师姓名:</td>
                <td><input type="text" name="tName" value="${k.tName}"></td>
            </tr>
            <tr>
                <td>限定选课人数:</td>
                <td><input type="text" name="kPerson" value="${k.kPerson}"></td>
            </tr>
            <tr>
                <td></td>
                <td><input type="submit" value="修改"></td>
            </tr>
        </table>
    </form>
</center>
</body>
</html>

加之后:

updatePersonal1.jsp(修改学生信息界面)

<html>
<head>
    <title>修改个人信息界面</title>
</head>
<body>
<center>
    <form action="updatePersonal2" method="post">
        <table border="1">
            <input type="hidden" name="id" value="${u.id}">
            <tr>
                <td>学生姓名:</td>
                <td><input type="text" name="name" value="${u.name}"></td>
            </tr>
            <tr>
                <td>性别:</td>
                <td><input type="radio" name="sex" value="男" <c:if test="${u.sex eq '男'}"> checked="checked"</c:if>>男
                    <input type="radio" name="sex" value="女" <c:if test="${u.sex eq '女'}"> checked="checked"</c:if>>女
                </td>
            </tr>
            <tr>
                <td>年龄:</td>
                <td><input type="text" name="age" value="${u.age}"></td>
            </tr>
            <tr>
                <td>专业</td>
                <td>
                    <input type="radio" name="major" value="计算机科学与技术" <c:if test="${u.major eq '计算机科学与技术'}"> checked="checked"</c:if>>计算机科学与技术
                    <input type="radio" name="major" value="软件工程" <c:if test="${u.major eq '软件工程'}"> checked="checked"</c:if>>软件工程
                <input type="radio" name="major" value="网络工程" <c:if test="${u.major eq '网络工程'}"> checked="checked"</c:if>>网络工程
                <input type="radio" name="major" value="数字媒体技术" <c:if test="${u.major eq '数字媒体技术'}"> checked="checked"</c:if>>数字媒体技术
                </td>

                </td>
            </tr>
            <tr>
                <td>班级:</td>
                <td><input type="text" name="ban" value="${u.ban}"></td>
            </tr>
            <tr>
                <td></td>
                <td><input type="submit" value="修改"></td>
            </tr>
        </table>
    </form>
</center>
</body>
</html>

加之后:

updatePersonal2.jsp(修改教师信息界面)

<html>
<head>
    <title>教师信息修改界面</title>
</head>
<body>
<center>
    <form action="updateTeacher2" method="post">
        <table border="1">
            <input type="hidden" name="idT" value="${t.idT}">
            <tr>
                <td>姓名:</td>
                <td><input type="text" name="name" value="${t.name}"></td>
            </tr>
            <tr>
                <td>职称:</td>
                <td><input type="radio" name="zhiCheng" value="助教"  <c:if test="${t.zhiCheng eq '助教'}"> checked="checked"</c:if>>助教
                    <input type="radio" name="zhiCheng" value="讲师"  <c:if test="${t.zhiCheng eq '讲师'}"> checked="checked"</c:if>>讲师
                    <input type="radio" name="zhiCheng" value="副教授"  <c:if test="${t.zhiCheng eq '副教授'}"> checked="checked"</c:if>>副教授
                    <input type="radio" name="zhiCheng" value="教授"  <c:if test="${t.zhiCheng eq '教授'}"> checked="checked"</c:if>>教授
                </td>
            </tr>
            <tr>
                <td>所属学院:</td>
                <td>
                    <input type="radio" name="yuan" value="信息"  <c:if test="${t.yuan eq '信息'}"> checked="checked"</c:if>>信息
                    <input type="radio" name="yuan" value="土木"  <c:if test="${t.yuan eq '土木'}"> checked="checked"</c:if>>土木
                    <input type="radio" name="yuan" value="机械"  <c:if test="${t.yuan eq '机械'}"> checked="checked"</c:if>>机械
                    <input type="radio" name="yuan" value="电气"  <c:if test="${t.yuan eq '电气'}"> checked="checked"</c:if>>电气
                    <input type="radio" name="yuan" value="交通"  <c:if test="${t.yuan eq '交通'}"> checked="checked"</c:if>>交通
                </td>
            </tr>
            <tr>
                <td></td>
                <td><input type="submit" value="修改"></td>
            </tr>
        </table>
    </form>
</center>
</body>
</html>

加之后:

updateStudent1.jsp(修改学生信息界面)

<html>
<head>
    <title>修改学生信息界面</title>
</head>
<body>
<center>
    <form action="updateStudent2" method="post">
        <table border="1">
            <input type="hidden" name="id" value="${u.id}">
            <tr>
                <td>学生姓名:</td>
                <td><input type="text" name="name" value="${u.name}"></td>
            </tr>
            <tr>
                <td>性别:</td>
                <td><input type="radio" name="sex" value="男" <c:if test="${u.sex eq '男'}"> checked="checked"</c:if>>男
                    <input type="radio" name="sex" value="女" <c:if test="${u.sex eq '女'}"> checked="checked"</c:if>>女
                </td>
            </tr>
            <tr>
                <td>年龄:</td>
                <td><input type="text" name="age" value="${u.age}"></td>
            </tr>
            <tr>
                <td>专业</td>
                <td>
                    <input type="radio" name="major" value="计算机科学与技术" <c:if test="${u.major eq '计算机科学与技术'}"> checked="checked"</c:if>>计算机科学与技术
                    <input type="radio" name="major" value="软件工程" <c:if test="${u.major eq '软件工程'}"> checked="checked"</c:if>>软件工程
                    <input type="radio" name="major" value="网络工程" <c:if test="${u.major eq '网络工程'}"> checked="checked"</c:if>>网络工程
                    <input type="radio" name="major" value="数字媒体技术" <c:if test="${u.major eq '数字媒体技术'}"> checked="checked"</c:if>>数字媒体技术
                </td>

                </td>
            </tr>
            <tr>
                <td>班级:</td>
                <td><input type="text" name="ban" value="${u.ban}"></td>
            </tr>
            <tr>
                <td></td>
                <td><input type="submit" value="修改"></td>
            </tr>
        </table>
    </form>
</center>
</body>
</html>

加之后:

updateTeacher1.jsp(修改教师信息界面)

<html>
<head>
    <title>修改教师信息界面</title>
</head>
<body>
<center>
    <form action="updateTeacher2" method="post">
        <table border="1">
            <tr>
                <td><input type="hidden" name="idT" value="${t.idT}"></td>
            </tr>
            <tr>
                <td>姓名:</td>
                <td><input type="text" name="name" value="${t.name}"></td>
            </tr>
            <tr>
                <td>职称:</td>
                <td><input type="radio" name="zhiCheng" value="助教"  <c:if test="${t.zhiCheng eq '助教'}"> checked="checked"</c:if>>助教
                    <input type="radio" name="zhiCheng" value="讲师"  <c:if test="${t.zhiCheng eq '讲师'}"> checked="checked"</c:if>>讲师
                    <input type="radio" name="zhiCheng" value="副教授"  <c:if test="${t.zhiCheng eq '副教授'}"> checked="checked"</c:if>>副教授
                    <input type="radio" name="zhiCheng" value="教授"  <c:if test="${t.zhiCheng eq '教授'}"> checked="checked"</c:if>>教授
                </td>
            </tr>
            <tr>
                <td>所属学院:</td>
                <td>
                    <input type="radio" name="yuan" value="信息"  <c:if test="${t.yuan eq '信息'}"> checked="checked"</c:if>>信息
                    <input type="radio" name="yuan" value="土木"  <c:if test="${t.yuan eq '土木'}"> checked="checked"</c:if>>土木
                    <input type="radio" name="yuan" value="机械"  <c:if test="${t.yuan eq '机械'}"> checked="checked"</c:if>>机械
                    <input type="radio" name="yuan" value="电气"  <c:if test="${t.yuan eq '电气'}"> checked="checked"</c:if>>电气
                    <input type="radio" name="yuan" value="交通"  <c:if test="${t.yuan eq '交通'}"> checked="checked"</c:if>>交通
                </td>
            </tr>
            <tr>
                <td></td>
                <td><input type="submit" value="修改"></td>
            </tr>
        </table>
    </form>
</center>
</body>
</html>

加之后:

ziZhuClass2.jsp(自助选课界面)

<html>
<head>
    <title>选课界面</title>
</head>
<body>
<center>
    <form>
        <table border="1">
            <tr>
                <td>课程ID</td>
                <td>课程名称</td>
                <td>开课时间</td>
                <td>开课节次</td>
                <td>所属院系</td>
                <td>任课教师ID</td>
                <td>任课教师姓名</td>
                <td>选课限制人数</td>
                <td>操作</td>
            </tr>
            <c:forEach items="${list}" var="ke">
                <tr>
                    <td>${ke.idK}</td>
                    <td>${ke.className}</td>
                    <td>${ke.startTime}</td>
                    <td>${ke.startNum}</td>
                    <td>${ke.yuanK}</td>
                    <td>${ke.tID}</td>
                    <td>${ke.tName}</td>
                    <td>${ke.kPerson}</td>
                    <td><a href="ziZhuClass3?idK=${ke.idK}">选课</a></td>
                </tr>
            </c:forEach>
        </table>
    </form>
</center>
</body>
</html>

加之后:

password2.jsp(修改密码界面)

<html>
<head>
    <title>修改密码界面</title>
</head>
<body>
<center>
    <form action="password3" method="post">
        <table border="1">
            <tr>
                <td>旧密码:</td>
                <td><input type="text" name="oldPass" id="oldPass"></td>
            </tr>
            <tr>
                <td>新密码:</td>
                <td><input type="password" name="newPassOne" id="newPassOne"></td>
            </tr>
            <tr>
                <td>请再次确认新密码:</td>
                <td><input type="password" name="newPassTwo" id="newPassTwo" onkeyup="checkPass()"><span id="clue"></span></td>
            </tr>
            <tr>
                <td></td>
                <td><input type="submit" id="submit" value="修改"></td>
            </tr>
        </table>
    </form>
    <%--判断两次输入的新密码是否一致--%>
    <script>
        function checkPass(){
            var newPassOne=document.getElementById("newPassOne").value;
            var newPassTwo=document.getElementById("newPassTwo").value;

            if(newPassOne==""||newPassTwo==""){
                document.getElementById("clue").innerHTML="<font color=red>密码不能空</font>"
                document.getElementById("submit").disabled=true;
            }else{
                if(newPassOne==newPassTwo){
                    document.getElementById("clue").innerHTML="<font color=green>密码一致</font>"
                    document.getElementById("submit").disabled=false;
                }else{
                    document.getElementById("clue").innerHTML="<font color=red>密码不一致</font>"
                    document.getElementById("submit").disabled=true;
                }
            }

        }
    </script>
</center>
</body>
</html>

加之后:

完结。

标签:界面,ke,选课,信息,jsp,checked,模板,这件
From: https://www.cnblogs.com/liuzijin/p/16906268.html

相关文章