change_kc.jsp~2~
资源名称:JSP02.rar [点击查看]
上传用户:top0756
上传日期:2022-08-11
资源大小:6501k
文件大小:2k
源码类别:
Jsp/Servlet
开发平台:
VBScript
- <%@ page contentType="text/html; charset=GBK" %>
- <%@ page import="java.sql.*" %>
- <%@ page language="java" %>
- <%@ page import="java.util.*" %>
- <%@ page import="proj112.*" %>
- <jsp:useBean id="a" scope="page" class="proj112.dbconn"/>
- <html>
- <body>
- <% request.setCharacterEncoding("GBK"); %>
- <head>
- <title>
- 修改学生信息
- </title>
- </head>
- <FORM Action="edit.jsp" Method="post" name="edit">
- <table align="center" border="2" width="100%" bordercolorlight="#CC99FF" cellpadding="2" bordercolordark="#FFFFFF" cellspacing="2">
- <%
- String id2=request.getParameter("id");
- //out.print(id);
- String sql="select * from student where kch='"+id2+"'";
- ResultSet rs = a.executeQuery(sql);
- while(rs.next()) { %>
- <tr> <td align=center colspan=2><font color=blue size=5><b>修改学生信息</font></td>
- <tr align=center><td>课程号:</td><td><INPUT TYPE="text" NAME="kch" value=<%=rs.getString(1)%>></td>
- </tr>
- </tr>
- <tr align=center>
- <td>课程名:</td><td><INPUT TYPE="text" NAME="kcm" value=<%=rs.getString(2)%>></td>
- </tr>
- <tr align=center><td>
- 任课老师:</td><td><INPUT TYPE="text" NAME="rkjs" value=<%=rs.getString(4)%>></td>
- </tr>
- <tr align=center><td>
- 星期几:</td><td><INPUT TYPE="text" NAME="xqj" value=<%=rs.getString(5)%>></td>
- </tr>
- <tr align=center><td>
- 上课时间:</td><td><INPUT TYPE="text" NAME="sj" value=<%=rs.getString(6)%>></td>
- </tr>
- <tr align=center><td>
- 上课教室:</td><td><INPUT TYPE="text" NAME="skjs" value=<%=rs.getString(7)%>></td>
- </tr>
- <% } rs.close();%>
- <tr><td align=center colspan=2>
- <INPUT align=center TYPE="submit" value="提交"> </td>
- </tr>
- </table>
- </form>
- <br>
- <br>
- <br>
- <br>
- <p align=center>
- <a href="std.jsp";>返回</a> </p>
- </body>
- </html>