{*
  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="125"}
    {assign var=IMGHEIGHT value="125"}
    {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}
    {cycle values="listeven,listodd" assign=CLASS print=false}
    <div class="{$CLASS}">
        <table width="100%" style="top:0px" border="0" cellpadding="0" cellspacing="5">
        <tr>
{/if}

    <td id="vignette" align="center" width="{math equation="floor(100/x)" x=$stadiumslistcolumns}%">
			<div id="theme"><a href="show_stadiums.php?id={$stadium.id}">{$stadium.longname}</a></div>
			{if $stadium.imgurl && $showimg}
			<a title="{$stadium.longname}" href="show_stadiums.php?id={$stadium.id}">
			<img alt="{$stadium.longname}" src="{$stadium.imgurl}" border="0" hspace="5" vspace="5" width="{$IMGWIDTH}">
			</a>
			{/if}
    </td>


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

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

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

</div>