📄 view.asp
字号:
<!--#include file=conn.asp-->
<!--#include file=inc/function.asp-->
<!-- POWERED BY 7WAP Enterprise Mobile Infomation System ●<%=now()%>-->
<html>
<head>
<title><%=ewap_name%></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="/favicon.ico" rel="shortcut icon">
<meta name="Generator" content="<%=ewap_(0)%>">
<meta name="copyright" content="sunyanqing">
<link rel='stylesheet' href='Ewap.css' type='text/css'>
<body><div class=main><p><span class=title><%=ewap_name%></span></p>
<%
DIM id
id=trim(request("id"))
If id="" or( not isnumeric(id) )then
response.write"<script>alert('"&ewap_(29)&"');window.document.location.href='index.asp'</script>"
response.end
end if
dim rs,sql
set rs=server.createobject("adodb.recordset")
sql="select * from news where nid="&id
rs.open sql,cn,1,1
%>
<%
If rs.eof and rs.bof then
response.write"<script>alert('"&ewap_(29)&"');window.document.location.href='index.asp'</script>"
else %>
<!--#include file=top.asp-->
<span class=title><%=uhtmlencode(rs("ntitle"))%></span><br/>
<div class=view>
<%
Dim wap_size,wap_pagecount,wap_no,wap_length,page,ndetail
wap_size=1000
wap_length=len(rs("ndetail"))
wap_pagecount=int(wap_length/wap_size)+1
If request("page")<>"" and isnumeric(request("page")) then
page=clng(request("page"))
else
page=1
end if
If page<1 and isnull(page) then page=1
If page>wap_pagecount then page=pagecount
If page=1 then
wap_no=1
elseif page>1 then
wap_no=(page-1)*wap_size+1
end if
wap_news=rs("ndetail")
ndetail=mid(wap_news,wap_no,wap_size)
%><p nowrap>
<%=ndetail%></p><br/>
<%if page>1 and wap_pagecount>1 then%>
<a href="view.asp?id=<%=id%>&page=1"><%=ewap_(19)%></a>-<a href="view.asp?id=<%=id%>&page=<%=(page-1)%>"><%=ewap_(22)%></a>-<%
end if
if page<wap_pagecount and wap_pagecount>1 then
%><a href="view.asp?id=<%=id%>&page=<%=page+1%>"><%=ewap_(21)%></a>-<a href="view.asp?id=<%=id%>&page=<%=wap_pagecount%>"><%=ewap_(20)%></a>
<%
end if%>
<p class=time><%=ewap_(35)%><small><%=rs("ntime")%></small><br/> <a href=more.asp><%=ewap_(36)%></a></p></div>
<%
rs.close
set rs=nothing
end if
%>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -