{*
  Template for the club detailview
  $Id: show_members.tpl,v 1.00 2006/10/25 20:14:18
*}

{assign var=IMGWIDTH value="150"}
{assign var=IMGHEIGHT value="150"}

<!-- {$smarty.template} -->
<br>
<div id="toppage"><a href="show_members.php?id={$memberid.id}">{$memberid.name}</a></div>

<table id="actions" border="0" cellpadding="0" cellspacing="0" width="100%">
{if $memberid.editable}
	<tr>
		<td>
		<form action="perm_members.php" name="editform">
				<input type="hidden" name="id" value="{$memberid.id}"/>
				<span class="onglet-admin">
				<input type="submit" value="{$lang.edit}"/>
				</span>
		</form>
		<form action="delete.php" name="deleteform">
				<input type="hidden" name="id" value="{$memberid.id}"/>
				<input type="hidden" name="cat" value="11"/>
				<span class="onglet-admin">
				<input type="submit" value="{$lang.del}" onclick="return(confirm('{$memberid.name|escape:javascript}: {$lang.msg_really_del}?'))"/>
				</span>
		</form>
	</td>
	</tr>
{/if}
	<tr>
		<td id="barre-onglet">
		<form action="show_members.php" name="editform">
				<input type="hidden" name="id" value="{$memberid.id}"/>
				<input type="hidden" name="action" value="card"/>
				<span class="onglet">
				<input type="submit" value="{$lang.card}" />
				</span>
		</form>
		
			{if $memberid.prev_id || $memberid.next_id}
				<form action="show_members.php" name="prevform">
					<input type="hidden" name="id" value="{$memberid.prev_id}"/>
					<span class="onglet">
					<input type="submit" value="<" {if !$memberid.prev_id}disabled="disabled"{/if} accesskey="," />
					</span>
				</form>
				<form action="show_members.php" name="nextform">
					<input type="hidden" name="id" value="{$memberid.next_id}"/>
					<span class="onglet">
					<input type="submit" value=">" {if !$memberid.next_id}disabled="disabled"{/if} accesskey="." />
					</span>
				</form>
			 {/if}
		</td>
	</tr>

</table>


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

<div id="pagecontent">
<!-- content begin -->
<table id="tableshow" width="100%" border=0 cellspacing="1" cellpadding="2">  <tr>
    <td align="center" rowspan="2" width="{$IMGWIDTH}">
    {if $memberdata.avatar}
	<div class="img-shadow">
	<a title="{$memberid.name}" href="{$link}">
	<img alt="{$memberid.name}" src="{$memberdata.avatar}" border="0" hspace="5" vspace="5" width="{$IMGWIDTH}">
	</a>					
	</div>
	{else}
	 
	{/if}
    </td>    	
  </tr>  
  <tr>
    <td valign="top">
      <table width="100%" cellspacing="0" cellpadding="2" border="0">
	  		<tr>
			<td class="lineeven"><b>» {$lang.birthday} : </b></td>
			<td class="lineeven">{$memberdata.birthday}</td>
			</tr>
			<tr>
			<td class="lineodd"><b>» {$lang.astrosign} :</b></td>
			<td class="lineodd">{$memberdata.astrosign}</td>			
			</tr>
			<tr>
			<td class="lineeven"><b>» {$lang.country} :</b></td>
			<td class="lineeven">{$memberdata.country}</td>
			</tr>
			<tr>
			<td class="lineodd"><b>» {$lang.city} :</b></td>
			<td class="lineodd">{$memberdata.residence}</td>			
			</tr>
			<tr>
			<td class="lineeven"><b>» {$lang.points} :</b></td>
			<td class="lineeven">{$memberdata.points} {$lang.points}</td>			
			</tr>
			<tr>
			<td class="lineeven"><b>» {$lang.clubs} {$lang.administrator}:</b></td>
			<td class="lineeven">{$club_ownerid}
				{foreach item=option from=$club_ownerid}
				<a href="show_clubs.php?id={$option.id}">{$option.longname}</a>a>,
				{/foreach}
				</td>			
			</tr>
			<tr>
			<td class="lineeven"><b>» {$lang.competitions} {$lang.administrator}:</b></td>
			<td class="lineeven">
				{foreach item=option from=$compet_ownerid}
				<a href="show_competitions.php?id={$option.id}">{$option.longname}</a>a>,
				{/foreach}
				</td>			
			</tr>
      </table>
    </td>	
  </tr>
  
</table>
</div>
<!-- /showheader -->

{if $member.plot}
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left">

<a href="javascript:" onclick="blocking('bloc1','yes', 'block'); return false;"><h3>{$lang.plot}:</h3></a>
<div id="bloc1" class="show_plot" style="display: block;">{$memberdata.plot}</div>

 	</td>
  </tr>
</table>


{/if}



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