{*
  Output of search results/browselist
  $Id: list.tpl,v 1.00 2006/10/24 22:00:00
*}

{if $stadiumslistcolumns == 1}
    {assign var=IMGWIDTH value="75"}
    {assign var=IMGHEIGHT value="75"}
    {assign var=ROWSPAN value="2"}
{else}
    {assign var=IMGWIDTH value="100"}
    {assign var=IMGHEIGHT value="100"}
    {assign var=ROWSPAN value="3"}
{/if}


<div id="docpart_list_target">

<div id="docpart_list_target_loading">
Loading...
</div>

<div id="content">
{counter start=0 print=false name=stadiumcount}
{foreach item=stadium from=$list}

{if $count == 0}
	<table width="90%" style="top:0px" border="0" cellpadding="0" cellspacing="5">
        <tr>
{/if}

    <td class="table-info" align="center" width="{math equation="floor(100/x)" x=$stadiumslistcolumns}%">
			<div class="title-classement"><a href="show_stadiums.php?id={$stadium.id}"><b>{$stadium.longname}</b></a></div>
			{if $stadium.imgurl && $showimg}
			<a title="{$stadium.longname}" href="show_stadiums.php?id={$stadium.id}">
			{html_image alt="$stadium.longname" file=$stadium.imgurl max_width="$IMGWIDTH" max_height="$IMGHEIGHT" border="0"}
			</a>
			{/if}
    </td>


{counter assign=count name=stadiumcount}
{if $count == $stadiumslistcolumns}
    {counter start=0 print=false name=stadiumcount}
    </tr>
	</table>
{/if}
{php}flush();{/php}
{/foreach}

{if $count != 0}
    {section name="columnLoop" start=$count loop=$stadiumslistcolumns}
        <td>&nbsp;</td>
    {/section}
    </tr>
	</table>
{/if}

</div>
<!-- /content -->

</div>