{*
  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="content">

<table id="tableshow" width="100%" style="top:0px" border="0" cellpadding="0" cellspacing="5">
	<tr>
		<td>
		<div id="filtertitle">
			<div>
			{if $number}
					<span class="footer-links">
					{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}
						{$totalresults} {$lang.records}.
					{/if}
					{if $number && !$totalresults}
						{$number} displayed.
					{/if}
					</span>
			{/if}
			</div>
		</div>
		</td>
	</tr>
	<tr>
		<td>

{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" width="{math equation="floor(100/x)" x=$prizelistcolumns}%">
			{assign var="nextyear" value="`$club.season+1`"}
			<div id="theme">{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}">
			<img alt="{$club.longname}" src="{$club.imgurl}" border="0" hspace="5" vspace="5" width="{$IMGWIDTH}">
			</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 class="{$CLASS}">&nbsp;</td>
    {/section}
    </tr>
	</table>
    </div>
{/if}
		</td>
	</tr>
</table>

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

</div>