add_kecheng.jsp~9~
资源名称:JSP02.rar [点击查看]
上传用户:top0756
上传日期:2022-08-11
资源大小:6501k
文件大小:2k
源码类别:
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_kc.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="kch"></td>
- </tr>
- <tr align=center><td>
- 课程名:</td><td><INPUT TYPE="text" NAME="kcm" ></td>
- </tr>
- <tr align=center><td>
- 任课教师:</td><td><INPUT TYPE="text" NAME="rkjs"></td>
- </tr>
- <tr align=center><td>
- 星期几:</td><td><INPUT TYPE="text" NAME="xqj" ></td>
- </tr>
- <tr align=center><td>
- 时间:</td><td><INPUT TYPE="text" NAME="sj" ></td>
- </tr>
- <tr align=center><td>
- 上课教室:</td><td><INPUT TYPE="text" NAME="skjs" ></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=javascript:history.back();>返回</a> </p>
- </body>
- </html>