📄 class_view.asp
字号:
<!-- POWERED BY 7WAP Enterprise Mobile Infomation System ●<%=now()%>-->
<!--#include file=conn.asp-->
<!--#include file=inc/function.asp-->
<html>
<head>
<title><%=ewap_name%></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="Robots" content="all">
<meta name="Generator" content="Ewap Enterprise Mobile Infomation System">
<meta name="copyright" content="sunyanqing">
<link rel='stylesheet' href='Ewap.css' type='text/css'>
</head>
<body>
<div class=main>
<p><span class=title><%=ewap_name%></span></p>
<!--#include file=top.asp-->
<%
DIM id
id=trim(request("cid"))
If id="" or( not isnumeric(id) )then
response.write ewap_(29)
response.end
end if
dim rs_s,sql_s
set rs_s=server.createobject("adodb.recordset")
sql_s="select * from class where p_class="&id&" order by id asc"
rs_s.open sql_s,cn,1,1
do while not rs_s.eof
%>
<a href="Class_View.asp?cid=<%=rs_s("id")%>"><%=rs_s("class_name")%></a>
<%
rs_s.movenext
loop
rs_s.close
set rs_s=nothing
%>
<%
dim rs,sql
set rs=server.createobject("adodb.recordset")
sql="select nid,ntitle,ntime from news where nclass="&id&" order by ntime desc"
rs.open sql,cn,1,1
%>
<div class=body>
<%
If rs.eof and rs.bof then
response.write ewap_(23)&"</div>"
else
count=ewap_top*3
rs.pagesize = count
rc=rs.recordcount
pgnm=rs.pagecount
page=request.QueryString("page")
If not isnumeric(page) then page=1
if page<>"" then page=clng(page)
if page="" or page=0 then page=1
if page>pgnm then page=pgnm
if pgnm>1 then rs.absolutepage=page
%>
<ul>
<%
do while not rs.eof and count>0
count=count-1
ntitle=uhtmlencode(rs("ntitle"))
ntime=rs("ntime")
If len(ntitle)>15 then
ntitle=left(ntitle,15)&"…"
end if
%>
<li><a href=view.asp?id=<%=rs("nid")%> title="<%=uhtmlencode(rs("ntitle"))%>"><%=ntitle%></a>
<%=ntime%>
<%
rs.movenext
loop
%>
</ul></div>
<br/>
【<%=ewap_(24)%>:<%=rc%>】<%=page%>/<%=pgnm%>
<%if page>1 and pgnm>1 then%>
<a href="Class_View.asp?page=1"><%=ewap_(19)%></a>-<a href="Class_View.asp?page=<%=page-1%>"><%=ewap_(22)%></a>-<%
end if
if page<pgnm and pgnm>1 then
%><a href="Class_View.asp?page=<%=page+1%>"><%=ewap_(21)%></a>-<a href="Class_View.asp?page=<%=pgnm%>"><%=ewap_(20)%></a>
<%
end if
rs.close
set rs=nothing
cn.close
set cn=nothing
end if
%>
<br/>
<a title="<%=ewap_(0)%> 2005 <%=ewap_(1)%>"><%=ewap_(0)%><%=ewap_(1)%></a>
</div>
<body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -