21,886
社区成员
发帖
与我相关
我的任务
分享
{foreach item=category from=$categories}
<tr>
<td bgcolor="#COCOCO" colspan="2"> <strong>{$category.categoryj} </strong> </td>
</tr>
<tr>
<td colspan="2">
<table width="100%" border="1" cellspacing="0" cellpading="5">
{section name=product loop=$products}
{if $products[product].categoryid eq $category.categoryid}
<tr height="70">
<td rowspan="2" width="15%"> <a href="product.html">Thumbnail1 </a> </td>
<td colspan="2" width="35%">
{$products[$smarty.section.product.index].productname} <br>
{$products[product].description|nl2br}
</td>
{if $products[$smarty.section.product.index_next].categoryid eq $category.categoryid}
<td rowspan="2"> <a href="product.html">Thumbnail2 </a> </td>
<td colspan="2">
{$products[$smarty.section.product.index_next].productname} <br>
{$products[$smarty.section.product.index_next].description|nl2br}
</td>
{else}
<td rowspan="2"> </td>
<td colspan="2"> </td>
{/if}
</tr>
<tr>
<td align="center">Price: {$products[product].price} </td>
<td align="center" nowrap="nowrap"> <a href="product.html">Buy </a> </td>
{if $products[$smarty.section.product.index_next].categoryid eq $category.categoryid}
<td> <div align="center">Price: 4,000 </div> </td>
<td> <div align="center"> <a href="product.html">Buy </a> </div> </td>
{else}
<td> <div align="center"> </div> </td>
<td> <div align="center"> </div> </td>
{/if}
</tr>
{/if}
{/section}
</table>
</td>
</tr>
{/foreach}