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

{if $clubslistcolumns == 1}
    {assign var=IMGWIDTH value="50"}
    {assign var=IMGHEIGHT value="50"}
    {assign var=ROWSPAN value="2"}
{else}
    {assign var=IMGWIDTH value="75"}
    {assign var=IMGHEIGHT value="75"}
    {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=clubcount}
{foreach item=club 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" valign="baseline" width="{math equation="floor(100/x)" x=$clubslistcolumns}%">
			<div style="top:0px;"><a class="title-club" href="show_clubs.php?id={$club.id}"><b>{$club.shortname}</b></a></div>
			{if $club.imgurl && $showimg}
			<a title="{$club.longname}" href="show_clubs.php?id={$club.id}">
			<img alt="{$club.longname}" src="{$club.imgurl}" border="0" hspace="5" vspace="5" width="{$IMGWIDTH}" width="{$IMGHEIGHT}">
			</a>
			{/if}
    </td>


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

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

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

</div>