⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 admin.asp

📁 ASP系统使用说明及程序
💻 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>&nbsp;<a href=counteshow.asp?Tid=<%=rst("id")%>><%=rst("ZhuTi")%></a>
	</td>
	
	<td>&nbsp;<%=rst("KaiShiTime")%>
	</td>
	<td>&nbsp;<%=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 + -