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

📄 elist.asp

📁 admin/admin.asp是WAP的后台管理登陆页面
💻 ASP
字号:
<% @LANGUAGE="VBSCRIPT" CODEPAGE="65001" %>
<%
  if session("admin")="" then
  response.redirect "admin.asp"
  else
	if session("flag")>2 then
		response.write "<br/><p align='center'>&#x60A8;&#x6CA1;&#x6709;&#x64CD;&#x4F5C;&#x7684;&#x6743;&#x9650;</p>"
		response.end
	end if
  end if

%>
<%
'=================================================
' Copyright 2007-05 jinqiu. All Rights Reserved.
' Last Update: 2007-05-15   HTTP://www.wapfs.net
'=================================================
%>
<%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="char.asp" -->
<wml> 
<head>
<meta http-equiv='Cache-Control' content='no-Cache'/>
<meta http-equiv='Cache-Control' content='max-age=0'/>
</head>
<card id='main' title='&#x6587;&#x7AE0;&#x7BA1;&#x7406;' >
<p>
<% set rs=server.createobject("adodb.recordset")
    sql="select * from article order by articleid desc"
    rs.open sql,conn,3,3
if rs.eof and rs.bof then
response.write "&#x6CA1;&#x6709;&#x4EFB;&#x4F55;&#x6587;&#x7AE0;"
else
If Request.QueryString("Page") = "" or Request.QueryString("Page") <= 0 then	
Page = 1
Else
Page = CINT(Request.QueryString("Page"))
End If
rs.pagesize =10
total  = rs.RecordCount
rs.absolutepage=page
mypagesize = rs.pagesize
	dim i 
	   	i=1 
	do while not rs.eof and i<=mypagesize 
if rs("articleon")=0 then
  %>
<a href='f_article.asp?id=<%=rs("articleid")%>'><%=(page-1)*10+i%>.<%=rs("title")%></a>
<a href='f_xuxe.asp?id=<%=rs("articleid")%>'>[&#x7EED;]</a> <a href='y_type.asp?id=<%=rs("classid")%>&amp;nclassid=<%=rs("nclassid")%>&amp;articleidid=<%=rs("articleid")%>'>[&#x79FB;]</a> <a href='f_del.asp?id=<%=rs("articleid")%>'>[&#x5220;]</a><br/>
<%end if%>
<% if rs("articleon")=1 then %>
<a href='f_article.asp?id=<%=rs("articleid")%>'><%=(page-1)*10+i%>.<%=rs("title")%></a> <a href='y_type.asp?id=<%=rs("classid")%>&amp;nclassid=<%=rs("nclassid")%>&amp;articleidid=<%=rs("articleid")%>'>[&#x79FB;&#x52A8;]</a> <a href='f_del.asp?id=<%=rs("articleid")%>'>[&#x5220;&#x9664;]</a><br/><%end if%>
<% if rs("articleon")=2 then 
response.write "<a href='softdown.asp?id="&rs("articleid")&"&amp;aid="&rs("classid")&"&amp;bid="&rs("Nclassid")&"'>"&((page-1)*10+i)&"."&c2u(rs("title"))&"</a>"
response.write "|<a href='updel.asp?id="&rs("articleid")&"&amp;aid="&rs("classid")&"&amp;bid="&rs("Nclassid")&"'>[&#x5220;&#x9664;]</a><br/>"
end if %>
<%
i=i+1
rs.movenext
loop
%>
<%
if page>1 then%>   
<a href='elist.asp?page=<%=page-1%>'>&#x4E0A;&#x9875;&lt;&lt;</a>
<%
end if
%>
<%
if page<rs.pagecount   then%>
<a href='elist.asp?page=<%=page+1%>'>&#x4E0B;&#x9875;&gt;&gt;</a>
<%
end if
%>
<br/><%=total%>&#x7BC7;&#x6587;&#x7AE0;&#xFF0C;<%=page%>/<%=rs.pagecount%>&#x9875;<%end if%>
<br/>------------
<br/><a href='query.asp'>&#x67E5;&#x627E;&#x6587;&#x7AE0;</a>
<br/><a href='main.asp'>&#x7BA1;&#x7406;&#x9996;&#x9875;</a></p>
</card>
</wml> 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -