?? manageshiti.asp
字號:
<!--#include file="conn.asp"-->
<%
if session("admin")="" or session("key")="" then
response.Write("<script>alert('您好!您還沒有登陸');window.location.href('login.asp')</script>")
response.end
end if
%>
<%
set rs=server.createobject("adodb.recordset")
cmd="select * from test "
rs.open cmd,conn,1,1
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>無標題文檔</title>
<style type="text/css">
<!--
.style1 {font-size: 12px}
body {
background-color: #3399CC;
}
.style4 {color: #000000}
-->
</style>
</head>
<body>
<form name="form1" method="post" action="">
<table width="593" border="0" align="left">
<tr bgcolor="#FFCC99">
<td width="37" height="20"><div align="center" class="style1">題號</div></td>
<td width="461"><div align="center" class="style1">試題</div></td>
<td colspan="2"><div align="center" class="style1">管理區(qū)域</div></td>
</tr>
<%
while not rs.eof
%>
<tr bgcolor="#FFCCCC">
<td><div align="center"><span class="style1">
<%=rs("id")%>
</span></div></td>
<td><span class="style1">
<%=rs("question")%>
</span></td>
<td width="36"><div align="center" class="style1"><a href="editshiti.asp?id=<%=rs("id")%>" class="style4">編輯</a></div></td>
<td width="41"><div align="center" class="style1"><a href="delshiti.asp?id=<%=rs("id")%>" class="style4">刪除</a></div></td>
</tr>
<%
rs.movenext
wend
%>
</table>
</form>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -