asp 分行分列

风清扬斈 15年前 (2007-02-28) 信息科技 7036 0
asp 分行分列
                                <%
          j=1
          do while not (rs.eof or err)
          if (j mod 3)=1 then
              response.write "<tr>"
          end if
        %>
                                <td align="center" valign="top"> 
                                  <table width="100%" height="125" border="0" align="center" cellpadding="4" cellspacing="0">
                                    <tr> 
                                      <td width="150" align="center" valign="middle"> 
                                        <table width="80" border="0" cellpadding="1" cellspacing="0" bgcolor="#666666">
                                          <tr> 
                                            <td> 
                                              <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="eeeeee">
                                                <tr> 
                                                  <td align="center" valign="middle"> 
                                                    <%If rs("Pic")<>" then%>
                                                    <a href=’show.asp?Shop_ID=<%=rs("Shop_ID")%>’ target=_blank><img border=’0’ width=’160’ height=’120’ src="Pic/<%=rs("pic")%>" align=’center’></a> 
                                                    <%Else%>
                                                    <a href=’show.asp?Shop_ID=<%=rs("Shop_ID")%>’ target=_blank><img border=’0’ width=’160’ height=’120’ src=’Pic/no.jpg’ align=’center’></a> 
                                                    <%End If%>
                                                  </td>
                                                </tr>
                                              </table>
                                            </td>
                                          </tr>
                                        </table>
                                        <table width="100%" height="22"  border="0" align="center" cellpadding="0" cellspacing="0">
                                          <tr> 
                                            <td align="center" height="30"><a class=a4 href="show.asp?Shop_id=<%=rs("shop_id")%>" target=_blank><%=left(rs("shop_name"),12)%></a></td>
                                          </tr>
                                        </table>
                                      </td>
                                      <td align="center" valign="middle" bgcolor="#eeeeee"> </td>
                                    </tr>
                                  </table>
                                </td>
                                <%  
          if (j mod 3)=0 then
       response.write "</tr>"
          end if
       j=j+1
    rs.moveNext
    if j>9 then exit do
          loop
"

相关推荐

  • 网友评论

    • (*)

    最新评论