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

教育系统应用

开发平台:

HTML/CSS

  1. <!--#include file="conn.asp"-->
  2. <%
  3. if session("admin")="" or session("key")="" then
  4. response.Write("<script>alert('您好!您还没有登陆');window.location.href('login.asp')</script>")
  5. response.end
  6. end if
  7. %>
  8. <%
  9. dim id
  10. id=request.querystring("id")
  11. if id<>"" then
  12. set rs=server.createobject("adodb.recordset")
  13. cmd="select * from userlogin where kaohao='"&id&"'"
  14. rs.open cmd,conn,1,3
  15. rs("logintime")=""
  16. rs("ip")=""
  17. rs("score")="0"
  18. rs("endtime")=""
  19. rs.update
  20. response.Write("<script>alert('登记考生补考成功,该生已经可以重新考试!');window.location.href('Manageuser.asp')</script>")
  21. else
  22. response.Write("<script>alert('请至少选择一个考生');window.location.href('Manageuser.asp')</script>")
  23. response.end
  24. end if
  25. %>