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

教育系统应用

开发平台:

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. set rs=server.createobject("adodb.recordset")
  10. cmd="select * from test "
  11. rs.open cmd,conn,1,1
  12. %>
  13. <html>
  14. <head>
  15. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  16. <title>无标题文档</title>
  17. <style type="text/css">
  18. <!--
  19. .style1 {font-size: 12px}
  20. body {
  21. background-color: #3399CC;
  22. }
  23. .style4 {color: #000000}
  24. -->
  25. </style>
  26. </head>
  27. <body>
  28. <form name="form1" method="post" action="">
  29.   <table width="593" border="0" align="left">
  30.     <tr bgcolor="#FFCC99">
  31.       <td width="37" height="20"><div align="center" class="style1">题号</div></td>
  32.       <td width="461"><div align="center" class="style1">试题</div></td>
  33.       <td colspan="2"><div align="center" class="style1">管理区域</div></td>
  34.     </tr>
  35. <%
  36. while not rs.eof
  37. %>
  38.     <tr bgcolor="#FFCCCC">
  39.       <td><div align="center"><span class="style1">
  40.           <%=rs("id")%>
  41.       &nbsp;</span></div></td>
  42.       <td><span class="style1">
  43.         <%=rs("question")%>
  44.       &nbsp;</span></td>
  45.       <td width="36"><div align="center" class="style1"><a href="editshiti.asp?id=<%=rs("id")%>" class="style4">编辑</a></div></td>
  46.       <td width="41"><div align="center" class="style1"><a href="delshiti.asp?id=<%=rs("id")%>" class="style4">删除</a></div></td>
  47.     </tr>
  48. <%
  49. rs.movenext
  50. wend
  51. %>
  52.   </table>
  53. </form>
  54. </body>
  55. </html>