{*
  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>
<br>
 <table id="tableshow" border="0" cellpadding="2" cellspacing="0" width="100%">
	<tr>
		<td id="toppage"><a href="show_members.php?id={$memberid.id}">{$memberid.name}</a>
		</td>
	</tr>
	{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>
		<form action="perm_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="perm_members.php" name="prevform">
				<input type="hidden" name="id" value="{$memberid.prev_id}"/>
				<span class="onglet">
				<input type="submit" value="&laquo;" {if !$memberid.prev_id}disabled="disabled"{/if} accesskey="," />
				</span>
			</form>
			<form action="perm_members.php" name="nextform">
				<input type="hidden" name="id" value="{$memberid.next_id}"/>
				<span class="onglet">
				<input type="submit" value="&raquo;" {if !$memberid.next_id}disabled="disabled"{/if} accesskey="." />
				</span>
			</form>
		 {/if}
		</td>
	</tr>
	
</table>
</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="0" cellpadding="2">
	
  <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="0" cellpadding="2" border="0" width="100%">
	  		<tr>
			<td class="lineeven"><b>{$lang.birthday} :</b></td><td class="lineeven">{$member.birthday}</td>
			</tr>
			<tr>
			<td class="lineodd"><b>{$lang.astrosign} :</b></td><td class="lineodd">{$member.astrosign}</td>			
			</tr>
			<tr>
			<td class="lineeven"><b>{$lang.country} :</b></td><td class="lineeven">{$member.country}</td>
			</tr>
			<tr>
			<td class="lineodd"><b>{$lang.birthcity} :</b></td><td class="lineodd">{$member.birthcity}</td>			
			</tr>		
      </table>
    </td>	
  </tr>
  
</table>
</div>
<!-- /showheader -->

{if $member.plot}
<table id="tableshow" 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" class="lineeven">
		<input type="checkbox" name="readflag" value="1" {if !$memberid.activedit}DISABLED{/if}{if $memberid.readflag} CHECKED{/if}>{$lang.readflag}
		</td>
	</tr>
	<tr>
		<td align="left" class="lineodd">
		<input type="checkbox" name="mkcommentflag" value="1" {if !$memberid.activedit}DISABLED{/if}{if $memberid.mkcommentflag} CHECKED{/if}>{$lang.mkcommentflag}
		</td>
	</tr>
	<tr>
		<td align="left" class="lineeven">
		<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" class="lineodd">
		<input type="checkbox" name="mkbetflag" value="1" {if !$memberid.activedit}DISABLED{/if}{if $memberid.mkbetflag} CHECKED{/if}>{$lang.mkbetflag}
		</td>
	</tr>
	<tr>
		<td align="left" class="lineeven">
		<input type="checkbox" name="addgalleryflag" value="1" {if !$memberid.activedit}DISABLED{/if}{if $memberid.addgalleryflag} CHECKED{/if}>{$lang.addgalleryflag}
		</td>
	</tr>
	<tr>
		<td align="left" class="lineodd">
		<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" class="lineeven">
		<input type="checkbox" name="permnewsflag" value="1" {if !$memberid.activedit}DISABLED{/if}{if $memberid.permnewsflag} CHECKED{/if}>{$lang.permnewsflag}
		</td>
	</tr>
	<tr>
		<td align="left" class="lineodd">
		<input type="checkbox" name="adminflag" value="1" {if !$memberid.activedit}DISABLED{/if}{if $memberid.adminflag} CHECKED{/if}>{$lang.adminflag}
		</td>
	</tr>
	<tr>
		<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}
			<span class="onglet">
			<input type="submit" value="{$lang.edit}" style="width:100%"/>
			</span>
			<span class="onglet">
			<input type="button" value="{$lang.back}" style="width:100%" onclick="javascript:history.go(-1);"/>
			</span>
		</form>
		</td>
	</tr>
</table>




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