📄 jinghua.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="opendb.asp" -->
<% dim sql,sql1,board,adm
adm=session("level")
submit=request("submit")
'管理员选择精华文章-----------
if submit="非精华帖子" and adm="3" then
for each item in request("non_jh")
updatesql="update yfindex set good=false where indexid="&item&""
conn.execute(updatesql)
next
end if
'结束---------------
%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="bbs.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width="95%" border="0" align="center" cellspacing="0">
<tr>
<td align="center" bgcolor="#0065CA" class="px14"><font color="#FFFFFF">论
坛 精 华 区</font></td>
</tr>
<tr>
<td valign="top" bgcolor="#BBDDFF">
<%if adm="3" then%>
<form method="post">
<%end if%>
<table width="95%" border="0" align="center">
<tr>
<td>
<%
sql="select top 10 indexid,title,board from yfindex where good=true and board="&request("board")&" order by time desc"
set rscust=Server.Createobject("ADODB.Recordset")
rscust.open sql,conn,1,3
if rscust.recordcount=0 then%>
<br> <br> <br> <br> <br> <span class="x14">本版未有精华内容! </span> <br>
<br> <br> <br> <br>
<% else%>
<%
rscust.pagesize=20
if request("page_code")="" then
page=0
else
page=clng(request("page_code"))
end if
if page<1 then page=1
if page>rscust.pagecount then page=rscust.pagecount
rscust.AbsolutePage=page
%>
<%for ipage=1 to rscust.pagesize%>
<img src="images/dianh.gif">
<%if adm="3" then%>
<input type="checkbox" name="non_jh" value="<%=rscust("indexid")%>">
<%end if%>
<a href="jhbbs.asp?indexid=<%=rscust("indexid")%>"><%=server.HTMLEncode(rscust("title"))%>
</a><br>
<% rscust.movenext
if rscust.eof then exit for
next
%>
</td>
</tr>
</table>
<%if adm="3" then%>
<br>
<input type="hidden" name="page_code" value="<%= page %>">
<input type="hidden" name="board" value="<%= request("board") %>">
<input type="hidden" name="suboard" value="<%= request("suboard") %>">
<input type="submit" name="Submit" value="非精华帖子" class="9t">
</form>
<% End If %>
</td>
</tr>
<tr>
<td align="right" valign="top" bgcolor="#BBDDFF">
<% if page<>1 then
response.write "<a href=jinghua.asp?board="&request("board")&"&page_code=1>第一页</a>"
response.write "<a href=jinghua.asp?board="&request("board")&"&page_code="&(page-1)&">上一页</a>"
end if
if page<>rscust.pagecount then
response.write "<a href=jinghua.asp?board="&request("board")&"&page_code="&(page+1)&">下一页</a> "
response.write "<a href=jinghua.asp?board="&request("board")&"&page_code="&rscust.pagecount&">最后一页</a>"
end if %>
<%set rscust=nothing
end if%>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -