📄 admin_news_pl.asp
字号:
<!--#include file = admin_chk.asp -->
<!--#include file = admin_conn.asp -->
<!--#include file = titleb.asp -->
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<STYLE type="text/css">
<!--
a:link {text-decoration: none; font-family: AdobeSm; color: #000000 }
a:visited {text-decoration: none; color: #000000 }
A:hover {COLOR: green; FONT-FAMILY: "宋体,MingLiU"; TEXT-DECORATION: underline}
body {font-size: 9pt; font-family: 宋体,MingLiU, Arial;color: #000000}
TD {FONT-SIZE: 9pt; FONT-FAMILY: "宋体,MingLiU, Arial";color: #000000;table-layout:fixed;word-break:break-all}
p {FONT-SIZE: 9pt; FONT-FAMILY: "宋体,MingLiU, Arial";color: #000000}
input {FONT-SIZE: 9pt; FONT-FAMILY: "宋体,MingLiU, Arial";color: #000000}
body {margin-top: 0; margin-bottom: 0;margin-left:0;margin-right:0; color: #000000}
select {FONT-SIZE: 9PT;}
option {FONT-SIZE: 9pt;}
textarea {FONT-SIZE: 9pt;}
-->
</STYLE>
</head>
<BR>
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="760" id="table3" background="images/012.jpg">
<tr>
<td>
<div align="center">
<table border="0" cellpadding="3" cellspacing="0" width="750" id="table1">
<!--webbot BOT="GeneratedScript" PREVIEW=" " startspan --><script Language="JavaScript" Type="text/javascript"><!--
function FrontPage_Form1_Validator(theForm)
{
if (theForm.word.value == "")
{
alert("请在 关键字 域中输入值。");
theForm.word.focus();
return (false);
}
if (theForm.word.value.length < 1)
{
alert("在 关键字 域中,请至少输入 1 个字符。");
theForm.word.focus();
return (false);
}
if (theForm.word.value.length > 20)
{
alert("在 关键字 域中,请最多输入 20 个字符。");
theForm.word.focus();
return (false);
}
return (true);
}
//--></script><!--webbot BOT="GeneratedScript" endspan --><form method="POST" action="<%=request.servervariables("URL")%>" onsubmit="return FrontPage_Form1_Validator(this)" language="JavaScript" name="FrontPage_Form1"><tr>
<td width="750" height="29">
<font color="#FFFFFF"><b>查看评论</b></font></td>
</tr><tr>
<td width="750">
<p align="center">
<!--webbot bot="Validation" s-display-name="关键字" b-value-required="TRUE" i-minimum-length="1" i-maximum-length="20" --><input type="text" name="word" size="20" maxlength="20"> <select size="1" name="zd">
<option value="content">内容</option>
<option value="username">作者</option>
</select> <input type="submit" value="搜索评论" name="B1"></p>
</td>
</tr></form>
</table>
</div>
<div align="center">
<table border="1" cellpadding="3" width="745" id="table2" style="border-collapse: collapse" bordercolor="#6BC7FF">
<tr>
<td width="440" align="center" height="36"><b>作者 内容</b></td>
<td width="133" align="center" height="36"><b>发布时间 IP</b></td>
<td width="156" align="center" height="36"><b>相关操作</b></td>
</tr>
<%
word=trim(request("word"))
zd=trim(request("zd"))
sql = "select * from newspl order by id desc"
if word<>"" and zd<>"" then sql = "select * from newspl where "&zd&" like '%"&word&"%' order by id desc"
Set rs = Server.CreateObject("ADODB.RecordSet")
rs.Open sql,conn,1,1
if rs.recordcount<>0 then
page=int(request("page"))
rs.PageSize=10
pagecount=rs.pagesize
if page<=0 then page=1
if request("page")="" then page=1
rs.AbsolutePage=page
for i=1 to pagecount
%>
<tr>
<td width="440"><font color="#0066CC"><%=rs("username")%></font><br>
<a href=# onclick='window.open("admin_news_pl_view.asp?id=<%=rs("id")%>","newsplview","width=680,height=400,top=70,left=150,scrollbars=yes" )'><%=titleb(rs("content"),66)%></a></td>
<td width="133"><%=rs("IP")%><br><%=rs("addtime")%></td>
<td width="156">
<p align="center">
<a target="_blank" href="news_view.asp?newsid=<%=rs("newsid")%>">相关新闻</a> <a href=# onclick='window.open("NewsPL.asp?id=<%=rs("newsid")%>","newsview","width=680,height=400,top=70,left=150,scrollbars=yes" )'>相关评论</a> <a onclick='{if(confirm("您确定删除吗?此操作将不能恢复!")){return true;}return false;}' href="admin_newspl_del.asp?id=<%=rs("id")%>">删除</a></td>
</tr>
<%
rs.movenext
if rs.eof then exit for
next
else
Response.Write "<tr><td colspan=3>暂无信息</td></tr>"
end if
%>
</table>
</div>
<BR>
<center>
<%if rs.recordcount<>0 then
if page>1 then
response.write "<a href="&request.servervariables("URL")&"?page=1>首页</a> "
response.write "<a href="&request.servervariables("URL")&"?page="&page-1&">上一页</a> "
end if
if page<rs.pagecount then
response.write "<a href="&request.servervariables("URL")&"?page="&page+1&">下一页</a> "
response.write "<a href="&request.servervariables("URL")&"?page="&rs.pagecount&">尾页</a> "
end if
response.write "共"&rs.recordcount&"条 每页显示"&pagecount&"条 共"&rs.pagecount&"页 "
%>
<script language="JavaScript">
<!--
function FP_jumpMenu(el,frm,sel) {//v1.0
var href=el.options[el.selectedIndex].value; if(sel) el.selectedIndex=0;
if('_new'==frm) open(href); else eval(frm+".location='"+href+"'");
}
// -->
</script>
<select size="1" onchange="FP_jumpMenu(this,'window',false)" id="id1" name="D1" style="font-size: 9pt; border-style: solid; border-width: 1px">
<%for i=1 to rs.pagecount%>
<option value="<%=request.servervariables("URL")%>?page=<%=i%>" <%if page=i then response.write "selected"%> style="font-size: 9pt">第<%=i%>页</option>
<%next%>
</select>
<%end if%>
</center>
</td>
</tr>
<tr>
<td>
</td>
</tr>
<tr>
<td height=50 background="images/011.jpg">
</td>
</tr>
</table>
</div>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -