📄 adminzhuti.asp
字号:
<!--#include file="checkthis.asp" -->
<!--#include file="data/conn.asp" -->
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="INDEX.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.xzy {border:1px #999 solid; border-width: 0px 1px 1px}
-->
</style>
</head>
<body text="#000000">
<table width="750" border="0" cellspacing="0" cellpadding="5" align="center" bgcolor="#FFFFFF">
<tr>
<td height="5"></td>
</tr>
<tr>
<td valign="top"><!--#include file="admintop.asp" --></td>
</tr>
</table>
<table width="750" border="0" cellspacing="0" cellpadding="5" align="center">
<tr>
<td class="table-xia" bgcolor="#FFFFFF"> 管 理 相 册:
<%
Dim ipagecount
Dim ipagecurrent
Dim strorderBy
Dim irecordsshown
if request.querystring("page")="" then
ipagecurrent=1
else
ipagecurrent=cint(request.querystring("page"))
end if
sql = "select * from zhuanti order by id desc"
Set rs = Server.CreateObject("ADODB.Recordset")
rs.pagesize = 30
rs.cachesize = 30
rs.open sql,conn,1,1
ipagecount = rs.pagecount
If ipagecurrent > ipagecount Then ipagecurrent = ipagecount
If ipagecurrent < 1 Then ipagecurrent = 1
if ipagecount=0 then
response.write "<p align='center'>没有任何相册专题>>><a href='zhuantiadd.asp'>添加相册</a></p>"
else
rs.absolutepage = ipagecurrent
irecordsshown = 0
Response.Write"<table width='750' border='0' cellspacing='0' cellpadding='3' class='x'><tr><td>最新更新情况,截止到 "&now()&" 共有 <b>"&rs.RecordCount&" </b> 个相册,<a href='zhuantiadd.asp'>添加相册</a></td></tr></table>"
do while irecordsshown<30 and NOT rs.EOF
Response.Write"<table width='100%' border='0' cellspacing='0' cellpadding='5'>"
Response.Write"<tr align='center'>"
for i=1 to 4
Response.Write"<td width='25%'>"
if not rs.eof then
Response.Write"<a href='zhuantiedit.asp?typeid="&rs("id")&"'>"&rs("name")&"</a> |<a href='addfile.asp?typeid="&rs("id")&"'><font color=red>上传</font></a></td></td>"
irecordsshown = irecordsshown +1
rs.movenext
end if
next
Response.Write"</tr>"
loop
end if
rs.Close
set rs=nothing
Response.Write"</table>"
Response.Write"<table width='750' border='0' cellspacing='0' cellpadding='5' class='s' valign='bottom' ><tr><td height='20' align='center'>每页显示 12 个相册 共有 "&ipagecount&" 页 当前为第 "&ipagecurrent&" 页 "
if ipagecurrent=1 then
Response.Write"首页 | "
else
Response.Write"<a href='adminzhuti.asp?page=1'>首页</a> | "
end if
if ipagecurrent=1 then
Response.Write"上一页 | "
else
Response.Write"<a href='adminzhuti.asp?page="&ipagecurrent-1&"'>上一页</a> | "
end if
if ipagecount>ipagecurrent then
Response.Write"<a href='adminzhuti.asp?page="&ipagecurrent+1&"'>下一页</a> "
else
Response.Write"下一页"
end if
if ipagecount>ipagecurrent then
Response.Write"| <a href='adminzhuti.asp?page="&ipagecount&"'>末页</a> "
else
Response.Write"| 末页 "
end if
%></td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="12" bgcolor="#FFFFFF" class="bk"> </td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -