?? modify22.asp
字號:
<!--#include file="Session.asp"-->
<!--#include file="Conn.asp"-->
<html>
<head>
<title>本類新聞列表</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="css.css" rel=STYLESHEET type=text/css>
</head>
<body leftmargin="0" topmargin="0">
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0" class="mainmiddle">
<tr>
<td width="29" height="32"> <div align="left">
<p class="maindaohang"> </p>
</div></td>
<td width="709"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="5"></td>
</tr>
</table>
<b><font color="#000000"><b> <span class="bigNavi">本類新聞列表</span> </b></font></b></td>
<td width="8" class="mainrights"></td>
</tr>
</table>
<br>
<table width="95%" height="22" border="0" align="center" cellpadding="3" cellspacing="1" class="tabbgcolor">
<tr class="tabbgcolorli">
<td width="39%"><div align="center">新聞標(biāo)題</div></td>
<td width="34%"><div align="center">加入時(shí)間</div></td>
<td width="15%"><div align="center">操作</div></td>
<td width="12%"><div align="center">操作</div></td>
</tr>
<%
'=======================================
'88red科技獨(dú)立開發(fā)完成本程序,并提供免費(fèi)技術(shù)支持與升級服務(wù)
'官方網(wǎng)站 http://www.88red.com QQ:8375158 TEL:13964489818
'對于商業(yè)客戶,本站提供細(xì)致周到的各項(xiàng)售后服務(wù);對于盜版客戶恕不提供,對于散播本程序者本站將追究其法律責(zé)任
'88red科技將陸續(xù)開發(fā)其他各種先進(jìn)程序,例如企業(yè)網(wǎng)站建站系統(tǒng)等等,對老客戶購買其他程序給予最大程度的優(yōu)惠,歡迎洽談
'=======================================
id2=request("sid")
page=request.querystring("page")
if page="" then page=1
if not(isnumeric(page)) then page=1
if page<1 then page=1
page=int(page)
set rs=server.createobject("adodb.recordset")
sql="select * from news where cstr(sclassid)='"+id2+"' order by id desc"
rs.open sql,conn,3,3
if rs.eof then
response.write "暫且沒有該類新聞"
response.end
else
rs.pagesize=100
totalrec=rs.recordcount
totalpage=rs.pagecount
if page>totalpage then page=totalpage
rs.absolutepage=page
i=0
dim id(),sp_name(),adddate(),filename()
do while not rs.eof and (i<rs.pagesize)
i=i+1
redim preserve id(i),sp_name(i),adddate(i),filename(i)
id(i)=rs("id")
sp_name(i)=rs("title")
adddate(i)=rs("date")
filename(i)=rs("filename")
rs.movenext
loop
end if
rs.close
%>
<%for i = 1 to ubound(id)%>
<tr class="tabbgcolorli">
<td width="39%"><div align="center"><a href="../news/<%=filename(i)%>.htm" target="_blank">
<%=sp_name(i)%>
</a><br>
</div></td>
<td width="34%"><div align="center">
<%=adddate(i)%>
</div></td>
<td width="15%"><div align="center"><a href="modifying.asp?id=<%=id(i)%>&theid=<%=id2%>">修改</a></div></td>
<td width="12%"><div align="center"><a href="deling.asp?id=<%=id(i)%>&theid=<%=id2%>">刪除</a></div></td>
</tr>
<%next%>
</table>
<br>
<table border="0" width="608" cellspacing="0" height="10" align="center">
<tr>
<td>
<p align="center">共<font color=red><%=totalpage%></font>頁 第<%=page%>頁<font color="666666"> </font>
<font color=666666> <a href="modify22.asp?sid=<%=id2%>">首頁</a>
<%if page-1>0 then%>
<a href="modify22.asp?sid=<%=id2%>&page=<%=page-1%>">上一頁</a>
<%else%>
<font color=666666>上一頁</font>
<%end if%>
<%if page+1<=totalpage then%>
<a href="modify22.asp?sid=<%=id2%>&page=<%=page+1%>">下一頁</a>
<%else%>
<font color=666666>下一頁</font>
<%end if%>
<a href="modify22.asp?sid=<%=id2%>&page=<%=totalpage%>">尾頁</a> 共<font color=red><%=totalrec%></font>件新聞
</font></p>
</td>
</tr>
<tr>
<td></td>
</tr>
</table>
<%
set rs=nothing
conn.close
set conn=nothing
%>
</body>
</html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -