|
|
|
| нужно нарисовать таблицу с тремя колонками
типа:
пробую такой код
<table>
{section name=items loop=$content}
{if $smarty.section.items.iteration % 3 == 1 }</tr><tr>{/if}
<td><img src=models/{$content[items].img}></td>
{/section}
</tr>
</table>
|
получаю
<table>
</tr><tr><td><img src=models/61062_small.jpg></td>
<td><img src=models/61063_small.jpg></td>
<td><img src=models/61075_small.jpg></td>
</tr><tr><td><img src=models/61079_small.jpg></td>
<td><img src=models/61083_small.jpg></td>
<td><img src=models/61094_small.jpg></td>
</tr><tr><td><img src=models/61102_small.jpg></td>
</tr>
</table>
|
как избавить от самого первого тега </tr> ведь он ничего не закрывает то! | |
|
|