I’m using a smarty script to display some grids. I’ve tinkered around with the script to try and get the grids displayed in specific cells in a table but with no joy.
Below is the code which generates the grids.
Code: Select all
<table cellspacing="0" cellpadding="0" width="1000" align="center" border="0">
{foreach item=grids from=$rows}
<tr>
{foreach item=grid from=$grids}
<td>
<img src="{$grid->url()|escape}" usemap="#grid_{$grid->id}" width="{$grid->width|escape}" height="{$grid->height|escape}" alt="" border="0" /></div><div style="clear: both"></div>
</td>
{/foreach}
</tr>
{/foreach}
</table>
{foreach item=rid_id from=$rids_ids}
<div id="region-hint-{$rid_id}" class="hidde"><img src="show_image.php?rid={$rid_id}" /></div>
{/foreach}Code: Select all
<table width="500" border="1">
<tr>
<td width="100">grid id=2 to be displayed here</td>
<td width="33"> </td>
<td width="100">grid id=3 to be displayed here</td>
<td width="34"> </td>
<td width="100">grid id=4 to be displayed here</td>
<td width="33"> </td>
<td width="100">grid id=5 to be displayed here</td>
</tr>
<tr>
<td colspan="7">grid id=1 to be displayed here</td>
</tr>
</table>Many thanks Dan