横向显示循环数据(二)
<!--#include file="include/buyok_shop_30_conn.asp"-->
<%
Set rsArticle= Server.CreateObject("ADODB.Recordset")

rsArticle.Open "select  * from buyok_produc where online=true order by AddDate desc",conn,3
%>
<%
if not rsArticle.eof then
 rsArticle.movefirst
%>
<table width="170"  border="1" cellpadding="1" cellspacing="0" bordercolordark="#FFFFFF" bordercolorlight="#cccccc" align=center frame=void>

<%
     do while not rsArticle.eof
%>
    <tr >
<%
       for i=1 to 3
           if not rsArticle.eof then
%>
  <td>
      <table width="170"  border="0" cellpadding="0" cellspacing="0" align=center>
            <tr >
              <td align="center" valign="middle" height=105 colspan=2><a href="<%=rsArticle("DefaultPicUrl")%>" target=_blank><img border=0 src="<%=rsArticle("DefaultPicUrl")%>"  width=100 height=100></a></td>
            </tr>
      <tr>
              <td align="center" valign="middle" height=15>产品名称:</td>
              <td valign="middle" height=15><a href="ArticleShow.asp?ArticleID=<%=rsArticle("articleid")%>" target=_blank><%=rsArticle("Title")%></a></td>
            </tr>
      <tr >
             <td align="center" valign="middle" height=15>产品类别:</td>
             <td valign="middle"><a href="Product.asp?BigClassName=<%=rsArticle("BigClassName")%>" target=_blank><%=rsArticle("BigClassName")%></a></td>
            </tr>
      <tr >
             <td align="center" valign="middle" height=15>产品编号:</td>
             <td valign="middle"><%=rsArticle("Product_Id")%></td>
            </tr>
      <tr >
              <td align="center" valign="middle" height=15 colspan=2><a href="ArticleShow.asp?ArticleID=<%=rsArticle("articleid")%>" target="_blank"><img src="Img/arrow_7.gif" border=0></a>&nbsp;<a href="javascript:eshop(<%=rsArticle("Product_Id")%>)"><img src="img/arrow_8.gif" border=0></a></td>
            </tr>
         </table>
  </td>
<% 
           else
%>
     <td>
        <table width="170"  border="0" cellpadding="0" cellspacing="0">
  
阅读更多
版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/haibo0668/article/details/51565597
个人分类: ASP技术
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

不良信息举报

横向显示循环数据(二)

最多只允许输入30个字

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭