{*
  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} -->
<div id="title"><a href="show_members.php?id={$memberid.id}">{$memberid.name}</a></div>

<div id="actions">
    <div id="barre-onglet">
	<form action="perm_members.php" name="editform">
            <input type="hidden" name="id" value="{$memberid.id}"/>
            <input type="hidden" name="action" value="card"/>
            <input type="submit" class="onglet" value="{$lang.card}" />
    </form>
	
		{if $memberid.prev_id || $memberid.next_id}
			<form action="perm_members.php" name="prevform">
				<input type="hidden" name="id" value="{$memberid.prev_id}"/>
				<input type="submit" class="onglet" value="<" {if !$memberid.prev_id}disabled="disabled"{/if} accesskey="," />
			</form>
			<form action="perm_members.php" name="nextform">
				<input type="hidden" name="id" value="{$memberid.next_id}"/>
				<input type="submit" class="onglet" value=">" {if !$memberid.next_id}disabled="disabled"{/if} accesskey="." />
			</form>
		 {/if}
	
    </div>
{if $memberid.editable}
	<div id="barre-season">
		<form action="perm_members.php" name="editform">
				<input type="hidden" name="id" value="{$memberid.id}"/>
				<input type="submit" value="{$lang.edit}" class="onglet"/>
		</form>
		<form action="delete.php" name="deleteform">
				<input type="hidden" name="id" value="{$memberid.id}"/>
				<input type="hidden" name="cat" value="11"/>
				<input type="submit" value="{$lang.del}" onclick="return(confirm('{$memberid.name|escape:javascript}: {$lang.msg_really_del}?'))" class="onglet"/>
		</form>
	</div>
{/if}
</div>


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

<div id="pagecontent">
<!-- content begin -->
<table id="tableshow" width="100%" border=0 cellspacing="5" cellpadding="5">
	
  <tr>
    <td width="{$IMGWIDTH}" rowspan="2">
    <div class="img-shadow">{html_image file=$member.avatar link=$link max_width=$IMGWIDTH max_height=$IMGHEIGHT}</div>
    </td>    	
  </tr>  
  <tr>
    <td>
      <table cellspacing="1" cellpadding="2" border="0" width="100%">
	  		<tr>
			<td class="td-opt">{$lang.birthday}:</td><td class="td-value">{$member.birthday}</td>
			<td class="td-opt">{$lang.astrosign}:</td><td class="td-value">{$member.astrosign}</td>			
			</tr>
			<tr>
			<td class="td-opt">{$lang.country}:</td><td class="td-value">{$member.country}</td>
			<td class="td-opt">{$lang.birthcity}:</td><td class="td-value">{$member.birthcity}</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;">{$member.plot}</div>

 	</td>
  </tr>
</table>
{/if}

{*
  Administration permissions tables
*}

<form action="perm_members.php" method="post">
<table id="tablefilter" width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td align="left">
		<input type="checkbox" name="readflag" value="1" {if !$memberid.activedit}DISABLED{/if}{if $memberid.readflag} CHECKED{/if}>{$lang.readflag}
		</td>
		<td align="left">
		<input type="checkbox" name="mkcommentflag" value="1" {if !$memberid.activedit}DISABLED{/if}{if $memberid.mkcommentflag} CHECKED{/if}>{$lang.mkcommentflag}
		</td>
		<td align="left">
		<input type="checkbox" name="galleryflag" value="1" {if !$memberid.activedit}DISABLED{/if}{if $memberid.readflag} CHECKED{/if}>{$lang.galleryflag}
		</td>
	</tr>
	<tr>
		<td align="left">
		<input type="checkbox" name="mkbetflag" value="1" {if !$memberid.activedit}DISABLED{/if}{if $memberid.mkbetflag} CHECKED{/if}>{$lang.mkbetflag}
		</td>
		<td align="left">
		<input type="checkbox" name="addgalleryflag" value="1" {if !$memberid.activedit}DISABLED{/if}{if $memberid.addgalleryflag} CHECKED{/if}>{$lang.addgalleryflag}
		</td>
		<td align="left">
		<input type="checkbox" name="permwriteflag" value="1" {if !$memberid.activedit}DISABLED{/if}{if $memberid.permwriteflag} CHECKED{/if}>{$lang.permwriteflag}
		</td>
	</tr>
	<tr>
		<td align="left">
		<input type="checkbox" name="permnewsflag" value="1" {if !$memberid.activedit}DISABLED{/if}{if $memberid.permnewsflag} CHECKED{/if}>{$lang.permnewsflag}
		</td>
		<td align="left">
		<input type="checkbox" name="adminflag" value="1" {if !$memberid.activedit}DISABLED{/if}{if $memberid.adminflag} CHECKED{/if}>{$lang.adminflag}
		</td>
		<td align="left">
		
			<input type="hidden" name="id" value="{$memberid.id}"/>
			<input type="hidden" name="activedit" value="1"/>
			{if $memberid.activedit}<input type="hidden" name="edit" value="1"/>{/if}
			<input type="submit" value="{$lang.edit}" class="button" style="width:100%"/>
		</form>
		</td>
	</tr>
</table>




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