{*
  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">
{counter start=0 print=false name=membercount}
{foreach item=member from=$list}

{if $count == 0}
    {cycle values="listeven,listodd" assign=CLASS print=false}
    <div class="{$CLASS}" style="top:0px; margin:0; padding:0;">
{/if}
			<table width="100%" style="top:0px" border="0" cellpadding="0" cellspacing="0">
			<tr>
				<td width="17%" id="member">{$member.name}</td>
				<td width="17%" id="member">{$member.country}</td>
				<td width="17%" id="member">{$member.points} {$lang.web_money}</td>
            {if $editable}
			<form action="perm_members.php" method="post">
                <td width="17%" style="vertical-align:middle; text-align:center;">
					<input type="hidden" name="id" value="{$member.id}">
					<input class="onglet" type="submit" value="{$lang.edit}">
				</td>
			</form>
			<form action="delete.php" method="post">
                <td width="17%" style="vertical-align:middle; text-align:center;">
					<input type="hidden" name="id" value="{$member.id}">
					<input type="hidden" name="cat" value="11"/>
					<input type="submit" value="{$lang.del}" onclick="return(confirm('{$member.name|escape:javascript}: {$lang.msg_really_del}?'))" class="onglet"/>
				</td>
			</form>	
            {/if}
			<form action="show_members.php" method="post">
				<td width="17%" style="vertical-align:middle; text-align:center;">
					<input type="hidden" name="id" value="{$member.id}">
					<input class="onglet" type="submit" name="edit" value="{$lang.card}">
				</td>
			</form>
			</tr>
			</table>
		
{counter assign=count name=membercount}
{if $count == $memberslistcolumns}
    {counter start=0 print=false name=membercount}
    </div>
{/if}
{php}flush();{/php}
{/foreach}

{if $count != 0}
    {section name="columnLoop" start=$count loop=$memberslistcolumns}
        <td class="{$CLASS}">&nbsp;</td>
    {/section}
    </tr>
	</table>
    </div>
{/if}

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

</div>