{*
  Output of search results/browselist
  $Id: list.tpl,v 1.00 2006/10/24 22:00:00
*}
{assign var=memberslistcolumns value="1"}
{if $memberslistcolumns == 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%" border="0" cellpadding="0" cellspacing="0">
<tr>
	<td id="toppage" colspan="{if $editable}6{else}4{/if}"><a href="#">{$lang.members}</a></td>
</tr>
{counter start=0 print=false name=membercount}
{foreach item=member from=$list}


{if $count == 0}
    {cycle values="lineeven,lineodd" assign=CLASS print=false}
{/if}
			
			<tr>
				<td class="{$CLASS}"><b>{$member.name}</b></td>
				<td class="{$CLASS}"><b>{$member.country}</b></td>
				<td class="{$CLASS}" align="center"><b>{$member.points} {$lang.web_money}</b></td>
            {if $editable}
				<form action="perm_members.php" method="post">
					<td class="{$CLASS}" style="vertical-align:middle; text-align:center;">
						<input type="hidden" name="id" value="{$member.id}">
						<span class="onglet-admin">
						<input type="submit" value="{$lang.edit}">
						</span>
					</td>
				</form>
				<form action="delete.php" method="post">
					<td class="{$CLASS}" style="vertical-align:middle; text-align:center;">
						<input type="hidden" name="id" value="{$member.id}">
						<input type="hidden" name="cat" value="11"/>
						<span class="onglet-admin">
						<input type="submit" value="{$lang.del}" onclick="return(confirm('{$member.name|escape:javascript}: {$lang.msg_really_del}?'))"/>
						</span>
					</td>
				</form>	
            {/if}
			<form action="show_members.php" method="post">
				<td class="{$CLASS}" style="vertical-align:middle; text-align:center;">
					<input type="hidden" name="id" value="{$member.id}">
					<span class="onglet">
					<input type="submit" name="edit" value="{$lang.card}">
					</span>
				</td>
			</form>
			</tr>
			
		
{counter assign=count name=membercount}
{if $count == $memberslistcolumns}
    {counter start=0 print=false name=membercount}
{/if}

{php}flush();{/php}
{/foreach}
</table>
</div>
<!-- /content -->

</div>