add_course.jsp~4~
资源名称:JSP02.rar [点击查看]
上传用户:top0756
上传日期:2022-08-11
资源大小:6501k
文件大小:1k
源码类别:
Jsp/Servlet
开发平台:
VBScript
- <%@page contentType="text/html; charset=gb2312"%>
- <%@ page import="java.sql.*" %>
- <html>
- <body>
- <script language="javascript">
- function checkform() {
- if (document.add.kechenghao.value=="" || document.add.kechengming.value==""){
- alert("课程号、课程名不能为空!");
- return false;
- }
- else {
- alert("添加成功!");
- return true;
- }
- }
- </script>
- <% request.setCharacterEncoding("gb2312"); %>
- <head>
- <title>
- 添加学生纪录
- </title>
- </head>
- <FORM Action="add_course1.jsp" Method="post" name="add">
- <table align="center" border="2" width="100%" bordercolorlight="#CC99FF" cellpadding="2" bordercolordark="#FFFFFF" cellspacing="2">
- <tr> <td align=center colspan=2><font color=blue size=5><b>添加课程</font></td>
- </tr>
- <tr align=center><td>
- 学期号:</td><td><INPUT TYPE="text" NAME="学期号" ></td>
- </tr>
- <tr align=center><td>
- 课程号:</td><td><INPUT TYPE="text" NAME="课程号"></td>
- </tr>
- <tr align=center><td>
- 课程名:</td><td><INPUT TYPE="text" NAME="课程名" ></td>
- </tr>
- <tr align=center><td>
- 学 分:</td><td><INPUT TYPE="text" NAME="学 分" ></td>
- </tr>
- <tr align=center><td>
- 任课教师:</td><td><INPUT TYPE="text" NAME="任课教师"></td>
- </tr>
- <tr><td align=center colspan=2>
- <INPUT align=center TYPE="submit" value="提交" onclick="javascript:return(checkform());"> </td>
- </tr>
- </table>
- </form>
- <br>
- <br>
- <br>
- <br>
- <p align=center>
- <a href="admin.jsp";>返回</a> </p>
- </body>
- </html>