📄 hyzxdel.asp
字号:
<!--#include file="no.asp"-->
<!--#include file="dbconn.asp"-->
<% zhql="select * from hyzx order by ID desc"
Set zhrs= Server.CreateObject("ADODB.Recordset")
zhrs.open zhql,conn,1,1
if zhrs.eof or zhrs.bof then
response.write "<br><br><font size=2 color=red>对不起,目前还没有任何资讯。</font>"
response.End()
zhrs.close
set zhrs=nothing
else
'分页输出程序
zhrs.pagesize=10
page=request("page")
'if page>rs.pagecount then
'page=rs.pagecount
'end if
if page="" or page=0 then
page=1
else
zhrs.move(page-1)*zhrs.pagesize
end if
%>
<HTML><HEAD><TITLE>中国库存商贸网---库存商机</TITLE>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<meta name=″keywords″ content=″中国,商贸,库存,中国库存,中国库存商贸网,中国商贸″>
<META content="text/html; charset=gb2312" http-equiv=Content-Type><LINK
href="../css.css" rel=stylesheet type=text/css>
<META content="MSHTML 5.00.3502.5390" name=GENERATOR></HEAD>
<BODY leftMargin=0 topMargin=0>
<!--#include file="main.asp"-->
<table width="644" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="263" height="25">资讯标题</td>
<td width="162" height="25">类别</td>
<td width="127" height="25">加入时间</td>
<td height="25" colspan="2"><a href="hyzxadd.asp">添加资讯</a></td>
</tr>
<%
for i=1 to zhrs.pagesize
%>
<tr>
<td height="25"><%=zhrs("title")%></td>
<td height="25"><%=zhrs("fl")%></td>
<td height="25"><%=zhrs("addtime")%></td>
<td width="46"><a href="hyzx_edit.asp?id=<%=zhrs("id")%>">编辑</a></td>
<td width="46"><a href="hyzx_del.asp?id=<%=zhrs("id")%>">删除</a></td>
</tr>
<%if not zhrs.eof then zhrs.movenext%>
<%if zhrs.eof then exit for%>
<%next%>
</table>
<div align="center"><br>
<font size="2">
<%if page<>1 then%>
<a href="hyzxdel.asp?page=1">首页</a>
<%else%>
首页
<%end if%>
<%if page>1 then%>
<a href="hyzxdel.asp?page=<%=page-1%>">上一页</a>
<%else%>
上一页
<%end if%>
<%if int(page)<zhrs.pagecount then%>
<a href="hyzxdel.asp?page=<%=page+1%>">下一页</a>
<%else%>
下一页
<%end if%>
<%if int(page)<>zhrs.pagecount then%>
<a href="hyzxdel.asp?page=<%=zhrs.pagecount%>">尾页</a>
<%else%>
尾页
<%end if%>
共<font color="#FF0000"><%=zhrs.recordcount%></font>条资讯 分<font color="#FF0000"><%=zhrs.pagecount%></font>页 当前第<font color="#FF0000"><%=page%></font>页 </font> </div>
</BODY></HTML><% end if %>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -