?? admin.asp
字號:
<!--#include file="YZ_login.asp"-->
<!--#include file="cls_DB.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>投票管理</title>
</head>
<body>
<h3 align="center">在線投票管理</h3>
<table width="718" border="0" align="center" cellpadding="0"
cellspacing="1" bgcolor="#999999">
<tr>
<td height="24" bgcolor="#FFFFFF" colspan="5">
<table width="100%" border="0">
<tr>
<td width="527"><a href="add.asp">添加投票</a></td>
<td width="179"><a href="index.asp?action=logout">退出管理</a>- <a href="index.asp">首頁</a></td>
</tr>
</table>
</td>
</tr>
<tr bgcolor="#A2C2F9">
<td align="center" bgcolor="#C3CDDE">編輯</td>
<td align="center" bgcolor="#C3CDDE">投票主題</td>
<td align="center" bgcolor="#C3CDDE">開始時間</td>
<td align="center" bgcolor="#C3CDDE">結束時間</td>
</tr>
<%
openDB
sql = "Select id, ZhuTi, KaiShiTime,JieShuTime,Counts,ShiFou"&_
" from titles order by id desc"
Set rst = Server.CreateObject("ADODB.Recordset")
rst.open sql,conn,1,1
rst.pagesize=5 '設置一頁顯示多少條記錄
if not rst.eof then
pageno=request("pageno")
if Not IsNumeric(pageno) or pageno="" then
pageno=1
else
pageno=cint(pageno)
end if
rst.absolutepage=pageno
else
pageno=0
end if
if not rst.eof then
for i=1 to rst.pagesize%>
<tr bgcolor=#F0F0F0>
<td align=center><a href=modify.asp?mdfid=<%=rst("id")%>>修改</a>
<a href=do.asp?action=delvote&delid=<%=rst("id")%>
onclick="javaScript:return confirm('您確定刪除?')">刪除</a>
</td>
<td> <a href=counteshow.asp?Tid=<%=rst("id")%>><%=rst("ZhuTi")%></a>
</td>
<td> <%=rst("KaiShiTime")%>
</td>
<td> <%=rst("JieShuTime")%>
</td>
</tr>
<%rst.movenext
if rst.EOF then Exit For
next
end if
%>
<tr bgcolor=#F0F0F0>
<td colspan="5" align="right">
<%=page(rst.pagecount,pageno,"admin.asp",5)%></td>
</tr>
</table>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -