每两条一行显示数据
<%
String[] arr = new String[6];
int i = 1;
String s=request.getParameter( "pages ");
if(s!=null){
i=Integer.parseInt(s);
}else{
i=1;
}
db.setIpage(6);
db.setSql_all( "select count(*) as counter from car ");
db.setSql_page( "select * from car ");
db.setCpage(i);
Iterator it = db.getPageInfo();
for(int j=0;j <=5 && it.hasNext();j++){
Map record = (Map)it.next();
if(arr[j]!= " "){%>
<td>
<table width= "95% " border= "0 " align= "center " cellpadding= "0 " cellspacing= "3 ">
<tr>
<td align= "center "> <img src= " <%=path %> /images/ <%=record.get
( "picname ") %> " alt= " " width= "209 " height= "138 " align= "left "> </td>
</tr>
<tr>
<td> 编号: <%=record.get( "id ") %> </td>
</tr>
<tr>
<td> 种类: <%=record.get( "btype ") %> </td>
</tr>
<tr>
<td> 描述: <%=record.get( "stype ") %> </td>
</tr>
<tr>
&nbs