81,092
社区成员
发帖
与我相关
我的任务
分享
<table width="80%" align="center" border="1">
<tr height="30">
<td width="20%" align="center" background="../images/4.jpg" colspan="3"><strong>案例</strong></td>
</tr>
<tr height="30">
<td align="center" background="../images/4.jpg">案例类型</td>
<td align="center" colspan="2"><%= productType%></td>
</tr>
<tr height="30">
<td align="center" background="../images/4.jpg">案例标题</td>
<td align="center" colspan="2"><%= title%></td>
</tr>
<tr height="200">
<td align="center" background="../images/4.jpg">案例图片</td>
<td align="center" valign="top" colspan="2">
<table cellpadding="0" cellspacing="0">
<%
int number = 0;
int rows = (photoName.length%2)==0 ? (photoName.length/2) : (photoName.length/2+1);
int cols = 2;
for(int i = 0; i < rows; i++)
{
%>
<tr>
<%
for(int j=0; j < cols; j++)
{
if(number<photoName.length)
{
String path = "../product_IMG/" + photoName[number];
number++;
%>
<td><a href="<%= path%>" target="_blank">
<IMG src="<%= path%>" width=320 height=260 border="0"></a></td>
<td width="20"></td>
<%
}
}
%>
</tr>
<tr height="20">
<td colspan="2"></td></tr>
<%
}
%>
</table>
</td>
</tr>
</table>