📄 check.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<%response.buffer=true%>
<%Response.ContentType = "text/vnd.wap.wml; charset=utf-8"%>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<!--#include file="conn.asp"-->
<!--#include file="admin.asp"-->
<wml>
<head>
<meta http-equiv="Cache-Control" content="no-Cache"/>
<meta http-equiv="Cache-Control" content="max-age=0"/>
</head>
<%
p=cint(request.QueryString("p"))
if p="" or p<1 then p=1
set rs=Server.CreateObject("ADODB.Recordset")
rsstr="select * from [urls] where [check]=0"
rs.open rsstr,conn,1,2
%>
<card title="审核网站">
<p>
<%
maxpage=int((rs.recordcount-1)/10)+1
if p>maxpage then p=maxpage
if rs.recordcount = 0 then response.write("暂无待审网站!<br/>")
if rs.recordcount > 0 then
rs.Move((p-1)*10)
dim j
j=1
if p*10<rs.recordcount then response.write("<a href='?ids=" & ids & "&p=" & p+1 & "'>[下页]</a> ")
if p>1 then response.write("<a href='?ids=" & ids & "&p=" & p-1 & "'>[上页]</a> ")
if p*10<rs.recordcount or p>1 then response.write("(" & p & "/" & (int((rs.recordcount-1)/10)+1) & ")<br/>")
do while ((not rs.EOF) and j<=10)
%>
<%
set rsc=Server.CreateObject("ADODB.Recordset")
rscstr="select * from [class] where [ClassID]="& rs("Classid")
rsc.open rscstr,conn,1,2
%>
<%=((p-1)*10+j)%>.<%=rs("site")%>:<a href="<%=rs("url")%>"><%=rs("url")%></a><br/>
所属类别:<%=rsc("ClassName")%><br/>
描述:<%=rs("about")%><br/>
<a href="checkok.asp?check=pass&ids=<%=rs("classid")%>&wID=<%=rs("wID")%>">通过</a>
<a href="checkedit.asp?ids=<%=rs("classid")%>&wID=<%=rs("wID")%>">修改</a>
<a href="checkok.asp?check=del&ids=<%=rs("classid")%>&wID=<%=rs("wID")%>">删除</a><br/>
<%
rs.MoveNext
j=j+1
loop
end if
if p*10<rs.recordcount then response.write("<a href='?ids=" & ids & "&p=" & p+1 & "'>[下页]</a> ")
if p>1 then response.write("<a href='?ids=" & ids & "&p=" & p-1 & "'>[上页]</a> ")
if p*10<rs.recordcount or p>1 then response.write("(" & p & "/" & (int((rs.recordcount-1)/10)+1) & ")<br/>")
%>
<%if p*10<rs.recordcount or p>1 then%>
<input name="page" title="页码" type="text" format="*N" emptyok="true" size="3" maxlength="4" value="<%if p>=maxpage then response.write(p-1) else response.write(p+1)%>"/>
<anchor>[跳转页面]
<go href="index.asp" accept-charset='utf-8'>
<postfield name="p" value="$(page)"/>
</go>
</anchor><br/>
<%end if%>
-----<br/>
<a href="manage.asp">[网址管理]</a><br/>
<a href="index.asp">[网站首页]</a>
</p>
</card>
</wml>
<%
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
<%else%>
<%response.redirect"index.asp"%>
<% end if%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -