产品展示: <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><%qid=request.QueryString("id") 'response.write qid set rs1=Server.CreateObject("ADODB.Recordset") sql1="select top 1 * from xld_product where pro_id="& qid-1 &"" 'response.Write(sql1) rs1.open sql1,conn,1,1 if rs1.eof and rs1.bof then %> <div align="center"> 上一个:暂时没有</div> <%else%> <div align="center"> 上一个:<a title="<%=rs1("pro_title")%>" href="zp_view.asp?id=<%=rs1("Pro_id")%>"><%=rs1("pro_title")%></a></div> <%end if%></td> <td><% set rs2=Server.CreateObject("ADODB.Recordset") sql2="select top 1 * from xld_product where pro_id>"& qid &" order by pro_id asc" 'response.Write(sql2) rs2.open sql2,conn,1,1 if rs2.eof and rs2.bof then 8 q- S7 r% e9 q6 E. o) `6 |
%> <div align="center"> 下一个:暂时没有</div> <%else%> <div align="center"> 下一个:<a title="<%=rs2("pro_title")%>" href="zp_view.asp?id=<%=rs2("pro_id")%>"><%=rs2("pro_title")%></a></div> <%end if%></td> </tr> </table> 6 l3 a h5 D) L2 T
& p: n X- |, f1 V
' Z$ ?" j% C# e, i M. l6 t 新闻页面: <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><%qid=request.QueryString("id") 'response.Write(hddido) set rs1=Server.CreateObject("ADODB.Recordset") sql1="select * from xld_news where news_id="& qid-1 &"" rs1.open sql1,conn,1,1 if rs1.eof and rs1.bof then %> <div align="center"> 上一篇文章:暂时没有</div> <%else%> <div align="center"> 上一篇文章:<a title="<%=rs1("news_title")%>" href="view.asp?id=<%=rs1("news_id")%>"><%=rs1("news_title")%></a></div> <%end if%></td> <td><% set rs2=Server.CreateObject("ADODB.Recordset") sql2="select * from xld_news where news_id>"&qid&"" rs2.open sql2,conn,1,1 if rs2.eof and rs2.bof then %> <div align="center"> 下一篇文章:暂时没有</div> <%else%> <div align="center"> 下一篇文章:<a title="<%=rs2("news_title")%>" href="view.asp?id=<%=rs2("news_id")%>"><%=rs2("news_title")%></a></div> <%end if%></td> </tr> </table>
|