请各位大侠请点,我网页的每个栏目下一页都是一样。

jenvu 2004-06-18 08:43:56
以下是原文件请各位大侠帮忙。

</tr>
<tr>
<td width="100%" height="26" valign="middle" align="center"> <a href="show.asp?p_name=%BD%F5%C2%DA%C9%FE%CF%B5%C1%D0"> 锦纶绳系列</a></td>
</tr>
<tr>
<td width="100%" height="29" valign="middle" align="center"> <a href="show.asp?p_name=%B2%BC%C1%CF%C9%FE%CF%B5%C1%D0"> 布料绳系列</a></td>
</tr>
<tr>
<td width="100%" height="33" valign="middle" align="center"> <a href="show.asp?p_name=%BD%BA%D6%CA%C9%FE%CF%B5%C1%D0"> 胶质绳系列</a></td>
</tr>
<tr>
<td width="100%" height="30" valign="middle" align="center"> <a href="show.asp?p_name=%C6%A4%D6%CA%C9%FE%CF%B5%C1%D0"> 皮质绳系列</a></td>
</tr>
<tr>
<td height="31" valign="middle"><div align="center"><a href="show.asp?p_name=PP绳系列">PP 绳系列</a></div></td>
</tr>
<tr>
<td height="31" valign="middle"><div align="center"><a href="show.asp?p_name=%CA%D6%BB%FA%B4%FC%CF%B5%C1%D0">手机袋系列</a></div></td>
</tr>
<tr>
<td height="31" valign="middle"><div align="center"><a href="show.asp?p_name=%C9%C1%B9%E2%B5%C6%CF%B5%C1%D0">闪光灯系列</a></div></td>
</tr>
<tr>
<td height="28" valign="middle"><div align="center"><a href="show.asp?p_name=珠绳系列">珠绳系列</a></div></td>
</tr>
<tr>
<td width="100%" height="25" valign="middle">
<div align="center"><a href="show.asp?p_name=锦纶绳系列">原 材 料</a> </div></td>
</tr>
<tr>
<td width="100%" height="28" valign="top"><a href="show.asp?p_name=%BD%F0%CA%F4%C5%E4%BC%FE"><br>
      </a><a href="show.asp?p_name=%CB%DC%C1%CF%C5%E4%BC%FE">塑料配件</a></td>
</tr>
<tr>
<td height="29" valign="top">  <br>
      <a href="show.asp?p_name=%BD%F0%CA%F4%C5%E4%BC%FE">金属配件</a></td>
</tr>
</table></td>
<td width="597" height="488" valign="top">
<table border="0" width="100%" cellspacing="0" cellpadding="0" height="260">
<tr>
<td width="100%" height="6"><img border="0" src="fuda/ehn.gif" width="600" height="4"></td>
</tr>
<tr>
<td width="100%" background="fuda/ehn.gif" height="254" valign="top"> <div align="center">
<center>
<table border="0" width="500" cellspacing="0" cellpadding="0">
<tr>
<td width="100%"><%
dim pic_class
pic_class=trim(request("p_name"))


set rst=server.createobject("adodb.recordset")
if pic_class="" then
sql="select * from pic order by id desc"
else
sql="select * from pic where pic_class='"&pic_class&"' order by id desc"
end if
rst.open sql,conn,3,1
if Not(rst.bof and rst.eof) then'判别数据表中是否为空记录
NumRecord=rst.recordcount
rst.pagesize=3
NumPage=rst.Pagecount
if request("page")=empty then
NoncePage=1
else
if Cint(request("page"))<1 then
NoncePage=1
else
NoncePage=request("page")
end if
if Cint(Trim(request("page")))>Cint(NumPage) then NoncePage=NumPage
end if
else
NumRecord=0
NumPage=0
NoncePage=0
end if
%>
<div align="center">
<center>
<table border="0" width="100%" bordercolorlight="#000000" cellspacing="0" cellpadding="2" bordercolordark="#FFFFFF">

<%if Not(rst.bof and rst.eof) then
rst.move (Cint(NoncePage)-1)*2,1
for i=1 to rst.pagesize
%>
<tr>
<td>
<table border="0" width="100%" cellspacing="0" cellpadding="5" height="167">
<tr>
<td width="28%" rowspan="6" height="134">
<p align="center"><a target="_blank" href="show_pic.asp?id=<%=rst("id")%>"><img border="0" src="<%=rst("pic_lurl")%>"></a></td>
<td width="33%" align="right" height="14">产品名称:</td>
<td width="39%" height="14"><%=rst("pic_name")%></td>
</tr>
<tr>
<td width="33%" align="right" height="14">产品类型:</td>
<td width="39%" height="14"><%=rst("pic_class")%></td>
</tr>
<tr>
<td width="33%" align="right" height="14">产品型号:</td>
<td width="39%" height="14"><%=rst("pic_type")%></td>
</tr>
<tr>
<td width="33%" align="right" height="14">产品介绍:</td>
<td width="39%" height="14"><%=rst("pic_text")%></td>
</tr>
<tr>
<td width="33%" align="right" height="14">点击数:</td>
<td width="39%" height="14"><%=rst("pic_count")%></td>
</tr>
<tr>
<td width="33%" align="right" height="14">发布时间:</td>
<td width="39%" height="14"><%=rst("pic_time")%></td>
</tr>
<tr>
<td height="14" colspan="3">
<hr size="1">
</td>
</tr>
</table>
</td>
</tr> <% rst.movenext
if rst.eof then exit for
next
else
response.write "<tr><td colspan=13><marquee scrolldelay=120 behavior=alternate>没有找到任何记录!!!</marquee></td></tr>"
end if

rst.close
set rst=nothing

%>

</table>
</div>
</table>
</center>
</div>
<table width="550" border="0" align="center">
<tr>
<td height="20">

<div align="right">
<input type="hidden" name="page" value="<%=NoncePage%>">
<%
if NoncePage>1 then
response.write "|<a href=show.asp?page=1>首 页</a>| |<a href=show.asp?page="&NoncePage-1&">上一页</a>| "
else
response.write "|首 页| |上一页| "
end if
if Cint(Trim(NoncePage))<Cint(Trim(NumPage)) then
response.write "|<a href=show.asp?page="&NoncePage+1&">下一页</a>| |<a href=show.asp?page="&NumPage&">尾 页</a>|"
else
response.write "|下一页| |尾 页|"
end if
%>
 页次:<font color="#0033CC"><%=NoncePage%></font>/<font color="#0033CC"><%=NumPage%></font>
共<font color="#0033CC"><%=NumRecord%></font>条记录  </div> </td>
</tr>
</table> </td>
</tr>
</table> </td>
</tr>
</table>
</div>
...全文
61 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
pboy116 2004-06-18
  • 打赏
  • 举报
回复
因为你的下一页都是从相同的数据库中取出数据所以都一样,
你要在上一页或下一页的连接中传递相关产品类别参数:
response.write "|<a href=show.asp?page=1>首 页</a>| |<a href=show.asp?page="&NoncePage-1&"&pic_class="&pic_class&">上一页</a>"
下一页的形式一样.
binghgo 2004-06-18
  • 打赏
  • 举报
回复


<!--#INCLUDE FILE="TheSame.ASP"-->
包含在每一个相同页面里

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧