elasticsearch bulk:asp一行只显示3个产品怎么写呀?

来源:百度文库 编辑:神马品牌网 时间:2024/04/30 23:56:39
<table>
<tr>
<td> <%
if not rs.eof then
i=0
do while not rs.eof
%>

<table border="0" cellspacing="0" cellpadding="0">

<tr>
<td width="155" height="191" valign="top" background="images/baihuotu.jpg">
<table width="150" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><table width="150" height="189" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="24" colspan="2"><table width="150" height="24" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="26"> </td>
<td width="124"><%=rs("title")%></td>
</tr>
</table></td>
</tr>
<tr>
<td height="12" colspan="2"></td>
</tr>
<tr>
<td height="90" colspan="2"><div align="center"><img name="" src="../<%=rs("img")%>" width="120" height="90" alt=""></div></td>
</tr>
<tr>
<td height="11" colspan="2"></td>
</tr>
<tr>
<td width="46" height="21"><div align="right">楼层:</div></td>
<td width="104"><%=rs("title2")%></td>
</tr>
<tr>
<td height="8" colspan="2"></td>
</tr>
<tr>
<td><div align="right">类别:</div></td>
<td><%=rs("title3")%></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>

<%
i=i+1
if i >= MaxPerpage then exit do
rs.movenext
loop
end if
%>

<td/><tr/>
<table/>

response.write("<table>")
for i= 1 to maxrow
if rs.eof then exit for
response.write("<TR>")
for j= 1 to 3
response.write("<TD>"&ProductInfo&"</TD>")
rs.movenext
if rs.eof then exit for
next
response.write("</tr>")
next
response.write("</table>")

循环嵌套:
内循环控列,外循控制行;