{*
  Template for the club detailview
  $Id: show_competitions.tpl,v 1.00 2006/10/25 20:14:18
*}
{assign var=IMGWIDTH value="75"}
{assign var=IMGHEIGHT value="75"}
{assign var=CLUBWIDTH value="150"}
{assign var=CLUBHEIGHT value="150"}

<script language="JavaScript" type="text/javascript" src="javascript/look.js"></script>


<!-- content begin -->


<table id="tableshow" width="97%" border="0" cellspacing="0" cellpadding="2">
  <tr>
    <td class="center" width="{$CLUBWIDTH}">
    <div class="img-shadow">
		<a title="{$categorie.longname}" href="{$link}">
		<img alt="{$categorie.longname}" src="{$categorie.imgurl}" border="0" hspace="5" vspace="5" width="150" />
		</a>
	</div>
    </td>
    <td valign="top">
      <table cellspacing="0" cellpadding="2" border="0" width="100%">
            <tr>
			<td class="lineodd"><b>» {$lang.country} :</b></td>
			<td class="lineodd">{$categorie.country}</td>
			</tr>		
            <tr>
			<td class="lineeven"><b>» {$lang.shortname} :</b></td>
			<td class="lineeven">{$categorie.shortname}</td>			
			</tr>		
		</table>	
    </td>	
  </tr>
  {if $categorie.plot}
  <tr>
	<td class="lineeven" colspan="2"><b>» {$lang.comments} :</b></td>
  </tr>
  <tr>
    <td class="lineeven" colspan="2" align="justify">{$categorie.plot}</td>
  </tr>
  {/if}

{if $competitions}
<tr>
	<td colspan="2">
		<table width="100%" border="0" cellpadding="0" cellspacing="1">
		  <tr>
			<td class="td-opt">{$lang.competitions}: </td>
		  </tr>
		  <tr>
			<td> 
			{counter start=0 print=false name=competitioncount}
			{counter start=0 print=false name=countseason}
			{assign var="countseason" value="0"}
			{foreach item=competition from=$competitions}
				
		{if $competition.id}
			{if $count == 0}
			{cycle values="lineeven,lineodd" assign=CLASS print=false}
			<div class="{$CLASS}">
				<table width="100%" border="0" cellpadding="0" cellspacing="5">
				<tr>
			{/if}

					<td width="{math equation="floor(100/x)" x=$prizelistcolumns}%">
						<table id="tableshow" width="100%" style="top:0px" border="0" cellpadding="0" cellspacing="1">
							<tr>
								<td class="td-value" align="center">
									<a title="{$competition.longname}" href="show_competitions.php?id={$competition.id}">
									<b>{$competition.shortname}</b>
									</a>
								</td>
							</tr>
							<tr>
								<td class="td-value" align="center">
									<a title="{$competition.longname}" href="show_competitions.php?id={$competition.id}">
									<img alt="{$competition.longname}" src="{$competition.imgurl}" border="0" hspace="5" vspace="5" width="{$IMGWIDTH}" />
									</a>
								</td>
							</tr>
						</table>
					</td>

			{counter assign=countseason name=countseason}
			{counter assign=count name=competitioncount}
			{if $count == $prizelistcolumns}
				{counter start=0 print=false name=competitioncount}
					</tr>
				</table>
				</div>
			{/if}
				{/if}
				{php}flush();{/php}
			{/foreach}
			
			{if $count != 0}
				{section name="columnLoop" start=$count loop=$prizelistcolumns}
					<td>&nbsp;</td>
				{/section}
				</tr>
				</table>
				</div>
			{/if}
			</td>
		</tr>
		</table>
	</td>
</tr>
{/if}

</table> 
<!-- /content -->
