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

{if $prizelistcolumns == 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="pagecontent">

<table width="90%" border="0" cellpadding="2" cellspacing="0">
	<tr>
		<td class="title-classement">
			{if $pageno && $maxpageno}
				{if $pageno != 1}<a href="?pageno={$pageno-1}&competition={$competition.id}"><img src="templates/classic/images/back.gif" align="absmiddle" hspace="5" width="22" height="18"></a>{/if}Page {$pageno} sur {$maxpageno}
				{if $pageno != $maxpageno}<a href="?pageno={$pageno+1}&competition={$competition.id}"><img src="templates/classic/images/next.gif" align="absmiddle" hspace="5" width="22" height="18"></a>{/if}
			{/if}
		</td>
		<td class="title-classement" align="right">
			{if $totalresults}
				{$totalresults} {$lang.records}
			{/if}
		</td>
	</tr>
</table>
<table width="90%" style="top:0px" border="0" cellpadding="0" cellspacing="5">
	<tr>
		<td>

{counter start=0 print=false name=clubcount}
{foreach item=club from=$list}

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

    <td class="table-info" align="center" width="{math equation="floor(100/x)" x=$prizelistcolumns}%">
			{assign var="nextyear" value="`$club.season+1`"}
			<div class="title-classement">{if $competition.oneyear}{$club.season}{else}{$club.season} / {$nextyear}{/if}</div>
			{if $club.imgurl && $showimg}
			<a title="{$club.longname}" href="show_clubs.php?id={$club.id_club}">
			{html_image alt="$club.longname" file=$club.imgurl max_width="$IMGWIDTH" max_height="$IMGHEIGHT" border="0"}
			</a>
			{/if}
    </td>


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

{if $count != 0}
    {section name="columnLoop" start=$count loop=$prizelistcolumns}
        <td width="{math equation="floor(100/x)" x=$prizelistcolumns}%">&nbsp;</td>
    {/section}
    </tr>
	</table>
    </div>
{/if}
		</td>
	</tr>
</table>

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

</div>