{include file="../head.tpl"} {if $smethod != 1}

<form action="user.php" method="post" name="uform" id="uform">
  <table width="100%"  border="0" cellpadding="4" cellspacing="1" class="tableborder">
    <tr>
      <td class="secondrow"><table border="0" align="center" cellpadding="0" cellspacing="2">
          <tr>
            <td><select name="group" id="group">
                <option value="all"> {$langadmin.alleuser} </option>
                
                
								{foreach from=$guests item=guest}
								
                
                <option value="{$guest->ugroup}" {if $smarty.request.group == $guest->ugroup}selected{/if}> {$guest->groupname} </option>
                
                
								{/foreach}
							
              
              </select>
            </td>
            <td><select name="selby" id="selby">
                <option value="joindate" {if $smarty.request.selby == "joindate"}selected{/if}>{$langadmin.usersortby} {$langadmin.sortbyreg} </option>
                <option value="posts" {if $smarty.request.selby == "posts"}selected{/if}>{$langadmin.usersortby} {$langadmin.sortbyposts} </option>
                <option value="username" {if $smarty.request.selby == "username"}selected{/if}>{$langadmin.usersortby} {$langadmin.sortbyname} </option>
                <option value="user_lastonline" {if $smarty.request.selby == "user_lastonline"}selected{/if}>{$langadmin.usersortby} {$langadmin.lastonline} </option>
              </select>
            </td>
            <td><select name="ud" id="ud">
                <option value="DESC" {if $smarty.request.ud == "DESC"}selected{/if}> {$langadmin.sortbydesc} </option>
                <option value="ASC" {if $smarty.request.ud == "ASC"}selected{/if}> {$langadmin.sortbyasc} </option>
              </select>
            </td>
            <td><select name="pp" id="pp">
                
                
								{section name=pp loop=105 start=5 max=100 step=5}
									
                
                <option value="{$smarty.section.pp.index}" {if $smarty.request.pp == $smarty.section.pp.index}selected{/if}> {$smarty.section.pp.index} {$langadmin.showpp} </option>
                
                
								{/section}
							
              
              </select>
            </td>
            <td><input type="submit" class="button" value="{$langadmin.showthis}">
            </td>
          </tr>
        </table>
      </td>
    </tr>
  </table>
</form>
{/if}
<form name="kform" method="post">
  <table width="100%"  border="0" cellpadding="4" cellspacing="1" class="tableborder">
    <tr>
      <td colspan="9" class="header"><b>{$langadmin.menue_usershow}</b> ({$number}) </td>
    </tr>
    <tr class="selectrow">
      <th width="1%"> <input name="allbox" type="checkbox" id="d" onclick="selall();" value="" />
      </th>
      <th> {$langadmin.username} </th>
      <th width="5%"> {$langadmin.lastonline} </th>
      <th width="5%"> {$langadmin.groupsmain_once} </th>
      <th width="5%"> {$langadmin.posts} </th>
      {* <th>&nbsp;</th> *}
      <th> {$langadmin.actions} </th>
    </tr>
    {foreach from=$user item=usr}
    <tr class="{cycle name="c0" values="c1,c2"}">
      <td class="selectrow"><div align="center">
          <input name="user_{$usr->uid}" type="checkbox" id="d" value="1" onclick="changesel(this);">
        </div></td>
      <td class="tdspacer"> {if $usr->status == 1} <a href="user.php?action=edit&id={$usr->uid}" class="nav"><b>{$usr->uname|truncate:25}</b></a><br>
        <a class="top" href="mailto:{$usr->email}">{$usr->email}</a> {else} <b>{$usr->uname|truncate:25}</b><br>
      <a class="top" href="mailto:{$usr->email}">{$usr->email}</a> {/if} | 
      {$usr->regdate}</td>
      <td nowrap="nowrap" class="tdspacer"><div align="center"> {if $usr->ulast > 1}{$usr->ulast} {else}- {/if} </div></td>
      <td class="tdspacer"><div align="center"> {$usr->fgroupname} </div></td>
      <td class="tdspacer"><div align="center"> {numposts uid=$usr->uid} </div></td>
      {*
	  <td width="10%"  nowrap="nowrap">
	  <div align="center">
        <input class="button" onclick="window.open('user.php?subaction=userfiles&uid={$usr->uid}','uf_{$usr->uid}','height=600px,width=720px,scrollbars=yes,left=10,top=10')" type="button" value="{$langadmin.text_downloads}">
      </div>
	  </td>
	  *}
	  
      <td width="10%"  nowrap="nowrap"><div align="center">
          <select onchange="eval(this.options[this.selectedIndex].value);selectedIndex=0;" name="mf{$usr->uid}" id="mf{$usr->uid}">
            <option value="location.href = 'user.php?action=edit&id={$usr->uid}'">{$langadmin.editonce}</option>
            <option value="location.href = 'user.php?action=moveto&utd=usr_{$usr->uid}&mode=7'">{$langadmin.movetogroup}</option>
            
	    {if $usr->status != 1}
	   
            <option value="location.href = 'user.php?action=activate&utd=usr_{$usr->uid}&mode=7'">{$langadmin.massactivate}</option>
            
	   {else}
	   
            <option value="location.href = 'user.php?action=deactivate&utd=usr_{$usr->uid}&mode=7'">{$langadmin.massdeactivate}</option>
            
	   {/if}
	   
            <option value="if(confirm('{$langadmin.confirmdeluser}')) location.href = 'user.php?action=del&utd=usr_{$usr->uid}&mode=7'">{$langadmin.delete}</option>
          </select>
          <input onclick="eval(document.getElementById('mf{$usr->uid}').value);" type="button" class="button" value="{$langadmin.go}">
        </div></td>
    </tr>
    {/foreach}
    <tr>
      <td colspan="7" nowrap class="secondrow"><div align="center"> {$crt}{$langadmin.marked}:
          <select name="action" id="action">
            <option value="del">{$langadmin.delete}</option>
            <option value="moveto">{$langadmin.movetogroup}</option>
            <option value="activate">{$langadmin.massactivate}</option>
            <option value="deactivate">{$langadmin.massdeactivate}</option>
          </select>
          <input name="Submit" type="submit" class="button" value="{$langadmin.go}">
        </div></td>
    </tr>
  </table>
  {if $navi}
  <table width="100%"  border="0" cellpadding="4" cellspacing="1" class="tableborder">
    <tr>
      <td class="firstrow">{$navi}</td>
    </tr>
  </table>
  {/if}
</form>
{include file="../foot.tpl"}