📄 lang.asp
字号:
<% @LANGUAGE="VBSCRIPT" CODEPAGE="65001" %>
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd"><html xmlns="http://www.w3.org/1999/xhtml">
<!--#include file="conn.asp"-->
<!--#include file="char.asp"-->
<!--#include file="const.asp"-->
<%
classid=request("classid")
Nclassid=request("Nclassid")
set rs = server.createobject("adodb.recordset")
sql="select * from ANclass where NclassID="&request("Nclassid")
rs.open sql,conn,1,1
if not rs.eof then
Nclassname=rs("Nclass")
nclassurl=rs("nclassurl")
end if
set rs = server.createobject("adodb.recordset")
sql="select * from Aclass where id="&request("classid")
rs.open sql,conn,1,1
if not rs.eof then
classname=rs("class")
end if
%>
<wml>
<head><meta http-equiv="Cache-Control" content="no-cache"/><meta http-equiv="content-type" content="text/html;charset=UTF-8"/>
</head>
<card id='main' title='<%=untow(Nclassname)%>'>
<p>
<% if nclassurl<>"" then
response.write ""&ubbcodex(nclassurl)&"<br/>"
end if %>
<img src="/hen.gif" alt="..."/><br/>
<%
set rs = server.createobject("adodb.recordset")
sql="select * from article where Nclassid="&Nclassid&" order by articleid desc"
rs.open sql,conn,1,1
if rs.eof and rs.bof then
response.write "没有任何文章<br/>"
else
If Request.QueryString("Page") = "" or Request.QueryString("Page") <= 0 then
Page = 1
Else
Page = CINT(Request.QueryString("Page"))
End If
rs.pagesize =30
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
response.write "<a href='list.asp?id="&rs("articleid")&"'>"&((page-1)*30+i)&"."&untow(rs("title"))&"</a><br/> "
end if
if rs("articleon")=1 then
response.write "<a href='lianjie.asp?id="&rs("articleid")&"'>"&((page-1)*30+i)&"."&untow(rs("title"))&"</a><br/>"
end if%>
<%
i=i+1
rs.movenext
loop
end if %>
<%if page>1 then%>
<a href='lang.asp?classid=<%=classid%>&nclassid=<%=Nclassid%>&page=<%=page-1%>'>上页<<</a>
<%end if%>
<%if page<rs.pagecount then%>
<a href='lang.asp?classid=<%=classid%>&nclassid=<%=Nclassid%>&page=<%=page+1%>'>下页>></a>
<%end if%>
<%if rs.pagecount=0 then%>
<%else%>
(<%=page%>/<%=rs.pagecount%>)<%=total%>条
<a href='#card2'>跳页</a><%end if%>
<br/><img src="/hen.gif" alt="..."/>
<br/><a href='step.asp?id=<%=classid%>'><%=untow(classname)%></a>
<br/><a href='/bbs/index.asp'>社区首页</a>
<br/><a href='index.asp'>网站首页</a>
<br/><!--#include file="ad.asp"-->
<!--#include file="online.asp"--></p>
</card>
<card id='card2' title='<%=untow(Nclassname)%>'>
<p>输入页码:
<input name='pages' value='<%=page%>' format='*N'/>
<anchor>[去吧]
<go href='lang.asp' accept-charset='utf-8'>
<postfield name='classid' value='<%=classid%>'/>
<postfield name='nclassid' value='<%=Nclassid%>'/>
<postfield name='page' value='$(pages)'/>
</go>
</anchor></p>
</card>
</wml>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -