edituser.asp
上传用户:xzjhbl
上传日期:2021-05-23
资源大小:397k
文件大小:2k
源码类别:

教育系统应用

开发平台:

HTML/CSS

  1. <!--#include file="conn.asp"-->
  2. <%
  3. dim id
  4. id=request.querystring("id")
  5. if id<>"" then
  6. set rs=server.createobject("adodb.recordset")
  7. cmd="select * from userlogin where kaohao='"&id&"'"
  8. rs.open cmd,conn,1,3
  9. session("id")=id
  10. else
  11. response.Write("<script>alert('请至少选择一个考生');window.location.href('Manageuser.asp')</script>")
  12. response.end
  13. end if
  14. %>
  15. <head>
  16. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  17. <title>无标题文档</title>
  18. <style type="text/css">
  19. <!--
  20. .style3 {font-size: 14px}
  21. body {
  22. background-color: #3399CC;
  23. }
  24. -->
  25. </style>
  26. </head>
  27. <body>
  28. <form name="form1" method="post" action="updatauser.asp">
  29.   <table width="366" height="108" border="0" align="center">
  30.     <tr>
  31.       <td width="69">&nbsp;</td>
  32.       <td width="242">&nbsp;</td>
  33.       <td width="41">&nbsp;</td>
  34.     </tr>
  35.     <tr>
  36.       <td><span class="style3">考生考号:</span></td>
  37.       <td><input name="kaohao" type="text" disabled="disabled" id="kaohao" value="<%=rs("kaohao")%>"></td>
  38.       <td>&nbsp;</td>
  39.     </tr>
  40.     <tr>
  41.       <td><span class="style3">考生姓名:</span></td>
  42.       <td><input name="user" type="text" id="user" value="<%=rs("user")%>"></td>
  43.       <td>&nbsp;</td>
  44.     </tr>
  45.     <tr>
  46.       <td><span class="style3">考生密码:</span></td>
  47.       <td><input name="psw" type="password" id="psw" value="<%=rs("passwd")%>"></td>
  48.       <td>&nbsp;</td>
  49.     </tr>
  50.     <tr>
  51.       <td><span class="style3">考生成绩:</span></td>
  52.       <td><input name="score" type="text" id="score" value="<%=rs("score")%>"></td>
  53.       <td>&nbsp;</td>
  54.     </tr>
  55.     <tr>
  56.       <td>&nbsp;</td>
  57.       <td><input type="submit" name="Submit" value="修改">
  58.           <input type="reset" name="Submit2" value="取消"></td>
  59.       <td>&nbsp;</td>
  60.     </tr>
  61.   </table>
  62. </form>
  63. </body>
  64. </html>