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

📄 clist.asp

📁 这个东东叫<掌中无限>的WAP整站程序,但是用不鸟的.. 如果你们可以.改良 ..改良...弄好它..就好啦!
💻 ASP
字号:
<% @LANGUAGE="VBSCRIPT" CODEPAGE="65001" %>
<%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"-->
<!--#include file="const.asp"-->
<%
   	dim sql
   	dim rs
   	dim rstype
   	dim typesql
   	dim typeid,typename,classname,classid,Nclassname,Nclassid
   	dim title
	set rs=server.createobject("adodb.recordset")
 	sql="select Aclass.class,ANclass.Nclass,article.title,article.classid,article.Nclassid from article,Aclass,ANclass where article.classid=Aclass.id and article.Nclassid=ANclass.Nclassid and article.articleID="&request("id")
 	rs.open sql,conn,1,1
 	if not rs.eof then
	title=rs("title")
	classid=rs("classid")
	Nclassid=rs("Nclassid")
	classname=rs("class")
	Nclassname=rs("Nclass")
 	end if
	rs.close
%>
<wml>
<head>
<meta http-equiv='Cache-Control' content='no-Cache'/>
<meta http-equiv='Cache-Control' content='max-age=0'/>
</head>
<card id='main' title='<%=untow(Nclassname)%>'>
<p><%=untow(title)%>
<br/><img src="/hen.gif" alt="load.."/><br/>
<%
dim id
id=request("id")
set rs = server.createobject("adodb.recordset")
sql="select * from article where articleid="&request("id") 
rs.open sql,conn,1,1
Content=rs("content")
pageWordNum=898
StartWord = 1
Length=len(Content)
PageAll=(Length+PageWordNum-1)\PageWordNum
i=request("i")
if isnull(i) or i="" then
i=0
end if
Content = mid(Content,StartWord+i*PageWordNum,PageWordNum)
Response.Write ubbcode(content)
if 0<=i<PageAll then
if cint(i)<cint(PageAll)-1 then
response.write "<br/>-*-*-*-*-*-*-*-<br/>"
Response.Write "<a href='clist.asp?i=" & i+1 & "&amp;id=" & id &"'>&#19979;&#39029;</a>"
End if
if cint(i)>0 then 
Response.Write "&nbsp;" & "<a href='clist.asp?i=" & i-1 & "&amp;id=" & id & "'>&#19978;&#39029;</a>"
End if
End if
if cint(i)<cint(PageAll)-1 then
response.write "&nbsp;" & "&#40;" &  i+1 & "&#47;" & PageAll & "&#41;"
response.write "<a href='#card2'>&#x8DF3;&#x9875;</a>"
End if
%>
<br/>(<%=untow(rs("writer"))%>) <%=rs("dateandtime")%>
<br/>&#x70B9;&#x51FB;&#x6570;&#xFF1A;<% =rs("hits") %>
<br/><img src="/hen.gif" alt="load.."/>
<% if session("flag")<>"" then
if session("flag")<3 then
response.write "<br/><a href='wapadmin/f_article.asp?id="&rs("articleid")&"'>&#x7F16;&#x8F91;</a>"
response.write " <a href='wapadmin/f_del.asp?id="&rs("articleid")&"'>&#x5220;&#x9664;</a>"
response.write " <a href='wapadmin/f_xuxe.asp?id="&rs("articleid")&"'>&#x7EED;&#x5199;</a>"
end if 
else
end if%>
<br/><a href='ping/ping.asp?classid=<%=rs("classid")%>&amp;nclassid=<%=rs("nclassid")%>&amp;articleid=<%=request("id")%>'>&#x76F8;&#x5173;&#x8BC4;&#x8BBA;<% if rs("Nkey")<>"" then %>(<%=rs("Nkey")%>)<%else%>(0)<%end if%></a>
<br/><a href='lang.asp?classid=<%=rs("classid")%>&amp;nclassid=<%=rs("nclassid")%>'><%=untow(Nclassname)%></a>
<br/><a href='step.asp?id=<%=rs("classid")%>'><%=untow(classname)%></a>
<br/><a href='/bbs/index.asp'>&#x793E;&#x533A;&#x9996;&#x9875;</a>
<br/><a href='/index.asp'>&#x7F51;&#x7AD9;&#x9996;&#x9875;</a>
<br/><!--#include file="ad.asp"-->
</p>
</card>
<card id='card2' title='&#x6307;&#x5B9A;&#x9875;&#x9762;'>
<p>
<%
response.write "&#36339;&#21040;&#31532;&#65306;<input  name='i' value='0' format='*N'/><anchor>&#39029;&#65292;&#36339;&#21543;<go method='post' href='clist.asp'><postfield name='i' value='$(i)'/><postfield name='id' value='" & id & "'/></go></anchor>"
%>
</p>
</card>
</wml>  

⌨️ 快捷键说明

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