求助,产品排列问题

2013 年 8 月 29 日3780

下面代码的产品排列是一行三个,但实际只是一行一个.因为其中也设计到页面翻页的代码,所以总没弄好,请大伙帮忙看看,谢谢!!

<tr> <td colspan="2"><img src="images/line_151x1.gif"
width="100%"></td> </tr> <%if Not rs.EOF thendim newsperpagenewsperpage=5rs.movefirstrs.pagesize=newsperpageif trim(request("page"))<>"" then page1=trim(request("page")) if check_num(page1)=true then currentpage=clng(request("page")) if currentpage>rs.pagecount then currentpage=rs.pagecount End if else currentpage=1 end ifelse currentpage=1End if totalnews=rs.recordcount if currentpage<>1 then if (currentpage-1)*newsperpage<totalnews then rs.move(currentpage-1)*newsperpage dim bookmark bookmark=rs.bookmark End if End if if (totalnews mod newsperpage)=0 then totalpages=totalnews\newsperpage else totalpages=totalnews\newsperpage+1 End ifi=0Do While Not rs.EOF and i<newsperpage%> <tr> <td valign="top"><a href="showpic.asp?p_id=<%= rs("p_id") %
>&path=<%= rs("p_pic") %>&pname=<%= rs("p_name") %>" target="_blank"><imgp_name") %>" src="UploadFile/<%= rs("p_pic") %>" alt="名称:<%= rs("p_name") %>-型号:<%= rs("p_spec") %>" ></a><br> <br> 【<a href="showpic.asp?p_id=<%= rs("p_id") %>&path=<%= rs("p_pic") %>&pname=<%=
rs("p_name") %>" target="_blank">12<%= rs("p_name") %>-<%= rs("p_spec") %></a>】</td>
<%if i mod 3 = 0 then%>
</tr>

<td colspan="2"><img src="images/line_151x1.gif"
width="100%"></td>

<% end if
i=i+1rs.movenextloopelseif rs.EOF and rs.BOF then%> <tr> <td colspan="2">当前没有产品!</td> </tr> <% End ifEnd if%>

0 0