{assign var="page_title" value="Accountliste"}
{assign var="page_title_long" value="Mitglieder Bereich &raquo; Accountliste"}
{assign var="page_title_site" value="Accountliste"}

<table>
	<tr style="background-color: {$style.bg_1}">
    	<th>Benutzername</th>
        <th>eMail-Adresse</th>
        <th>ICQ</th>
        <th>Mitglied seit</th>
        <th>Foren-Account</th>
        <th>Abwesenheit</th>
        {if $user->can_access("accounts_admin")}<th>bearbeiten</th>{/if}
    </tr>
{foreach from=$accounts item=c_acc}
	<tr>
    	<td>{$c_acc->name}</td>
        <td>{if $c_acc->show_email}<a href="mailto:{$c_acc->email}" title="eMail an '{$c_acc->email}' versenden">{$c_acc->email}</a>{/if}</td>
        <td>{$c_acc->icq}</td>
        <td>{$c_acc->register_time|date_format:"%d.%m.%Y"}</td>
        <td>{if $c_acc->bb_userid > 0}<a href="http://wbb2.uo-mittelerde.ch/profile.php?userid={$c_acc->bb_userid}" target="_blank" title="Forenprofil von {$c_acc->bb_useraccount.username} anzeigen">{$c_acc->bb_useraccount.username}</a>{/if}</td>
        <td>
            {if $c_acc->away_msg != null}
            <a href="#" title="{$c_acc->away_msg|stripslashes|strip_tags}">[MouseOver]</a>
            {/if}
        </td>
        {if $user->can_access("accounts_admin")}<td><a href="accounts_admin.php?edit_account={$c_acc->ID}&amp;{$SID}">bearbeiten</a></td>{/if}
    </tr>
{/foreach}
</table>
<form method="post" action="accountlist.php">
	<input type="hidden" name="sid" value="{$SID_SHORT}">
    <input type="hidden" name="page_num" value="{$page_num}">
	Sortiere nach
	<select name="sort_field" class="list_form">
	    {html_options options=$sort_fields selected=$formvalues.sort_field}
	</select>
	in
	<select name="sort_order" class="list_form">
	    {html_options options=$sort_order selected=$formvalues.sort_order}
	</select>
	Reihenfolge.
    <input type="submit" name="sort" value="GO" class="button_form" />
</form>

{$page_navigation}