<!-- IF TPL_ADMIN_USER_SEARCH_MAIN -->
<!--========================================================================-->

<h1>{L_SEARCH_USERS_ADVANCED}</h1>

<p>{L_SEARCH_USERS_EXPLAIN}</p>
<br />

<form method="post" name="post" action="{S_SEARCH_ACTION}"><input type="hidden" name="dosearch" value="true" />

<table class="forumline">
	<tr>
		<th>{L_SEARCH_USERS_ADVANCED}</th>
	</tr>
	<tr>
		<td class="row1"><span class="gen"><b>{L_USERNAME}:</b>&nbsp;<input class="post" type="text" name="username" maxlength="255" size="25" />&nbsp;<input type="submit" name="usersubmit" value="{L_FIND_USERNAME}" onclick="window.open('{U_SEARCH_USER}', '_bbsearch', 'HEIGHT=250,resizable=yes,WIDTH=400');return false;" />&nbsp;<input type="submit" class="post2" name="search_username" value="{L_SEARCH}" /></span><br /><span class="small">{L_SEARCH_USERNAME_EXPLAIN}</span></td>
	</tr>
	<tr>
		<td class="row2">&nbsp;</td>
	</tr>
	<tr>
		<td class="row1"><span class="gen"><b>{L_EMAIL_ADDRESS}:</b>&nbsp;<input class="post" type="text" name="email" maxlength="255" size="25" />&nbsp;<input type="submit" class="post2" name="search_email" value="{L_SEARCH}" /></span><br /><span class="small">{L_SEARCH_EMAIL_EXPLAIN}</span></td>
	</tr>
	<tr>
		<td class="row2">&nbsp;</td>
	</tr>
	<tr>
		<td class="row1"><span class="gen"><b>{L_IP_ADDRESS}:</b>&nbsp;<input class="post" type="text" name="ip_address" maxlength="255" size="25" />&nbsp;<input type="submit" class="post2" name="search_ip" value="{L_SEARCH}" /></span><br /><span class="small">{L_SEARCH_IP_EXPLAIN}</span></td>
	</tr>
	<tr>
		<td class="row2">&nbsp;</td>
	</tr>
	<tr>
		<td class="row1"><span class="gen"><b>{L_SEARCH_USERS_JOINED}:</b>&nbsp;<select name="date_type" class="post"><option value="before" selected="selected">{L_BEFORE}</option><option value="after">{L_AFTER}</option></select>&nbsp;<input class="post" type="text" name="date_year" value="{YEAR}" size="4" maxlength="4" />/<input class="post" type="text" name="date_month" value="{MONTH}" size="2" maxlength="2" />/<input class="post" type="text" name="date_day" value="{DAY}" maxlength="2" size="2" />&nbsp;<input type="submit" class="post2" name="search_joindate" value="{L_SEARCH}" /></span><br /><span class="small">{L_SEARCH_USERS_JOINED_EXPLAIN}</span></td>
	</tr>
	<tr>
		<td class="row2">&nbsp;</td>
	</tr>
	<!-- BEGIN groups_exist -->
	<tr>
		<td class="row1"><span class="gen"><b>{L_GROUP_MEMBERS}:</b>&nbsp;<select name="group_id" class="post">{GROUP_LIST}</select>&nbsp;<input type="submit" class="post2" name="search_group" value="{L_SEARCH}" /></span><br /><span class="small">{L_SEARCH_USERS_GROUPS_EXPLAIN}</span></td>
	</tr>
	<tr>
		<td class="row2">&nbsp;</td>
	</tr>
	<!-- END groups_exist -->
	<!-- BEGIN ranks_exist -->
	<tr>
		<td class="row1"><span class="gen"><b>{L_POSTER_RANK}:</b>&nbsp;<select name="rank_id" class="post">{RANK_SELECT_BOX}</select>&nbsp;<input type="submit" class="post2" name="search_rank" value="{L_SEARCH}" /></span><br /><span class="small">{L_SEARCH_USERS_RANKS_EXPLAIN}</span></td>
	</tr>
	<tr>
		<td class="row2">&nbsp;</td>
	</tr>
	<!-- END ranks_exist -->
	<tr>
		<td class="row1"><span class="gen"><b>{L_POSTCOUNT}:</b>&nbsp;<select name="postcount_type"><option value="equals" selected="selected">{L_EQUALS}</option><option value="lesser">{L_LESS_THAN}</option><option value="greater">{L_GREATER_THAN}</option></select>&nbsp;<input value="0" class="post" type="text" name="postcount_value" maxlength="25" size="5" />&nbsp;<input type="submit" class="post2" name="search_postcount" value="{L_SEARCH}" /></span><br /><span class="small">{L_SEARCH_USERS_POSTCOUNT_EXPLAIN}</span></td>
	</tr>
	<tr>
		<td class="row2">&nbsp;</td>
	</tr>
	<tr>
		<td class="row1"><span class="gen"><b>{L_USERFIELD}:</b>&nbsp;<select name="userfield_type"><option value="icq" selected="selected">{L_ICQ}</option><option value="skype">{L_SKYPE}</option><option value="twitter">{L_TWITTER}</option><option value="website">{L_WEBSITE}</option><option value="location">{L_LOCATION}</option><option value="interests">{L_INTERESTS}</option></select>&nbsp;<input class="post" type="text" name="userfield_value" maxlength="25" size="25" />&nbsp;<input type="submit" class="post2" name="search_userfield" value="{L_SEARCH}" /></span><br /><span class="small">{L_SEARCH_USERS_USERFIELD_EXPLAIN}</span></td>
	</tr>
	<tr>
		<td class="row2">&nbsp;</td>
	</tr>
	<tr>
		<td class="row1"><span class="gen"><b>{L_SEARCH_USERS_LASTVISITED}:</b>&nbsp;<select name="lastvisited_type"><option value="in">{L_IN_THE_LAST}</option><option value="after">{L_AFTER_THE_LAST}</option></select>&nbsp;<select name="lastvisited_days">{LASTVISITED_LIST}</select>&nbsp;<input type="submit" class="post2" name="search_lastvisited" value="{L_SEARCH}" /></span><br /><span class="small">{L_SEARCH_USERS_LASTVISITED_EXPLAIN}</span></td>
	</tr>
	<tr>
		<td class="row2">&nbsp;</td>
	</tr>
	<tr>
		<td class="row1"><span class="gen"><b>{L_BOARD_LANG}:</b>&nbsp;{LANGUAGE_LIST}&nbsp;<input type="submit" class="post2" name="search_language" value="{L_SEARCH}" /></span><br /><span class="small">{L_SEARCH_USERS_LANGUAGE_EXPLAIN}</span></td>
	</tr>
	<tr>
		<td class="row2">&nbsp;</td>
	</tr>
	<tr>
		<td class="row1"><span class="gen"><b>{L_TIMEZONE}:</b>&nbsp;{TIMEZONE_LIST}&nbsp;<input type="submit" class="post2" name="search_timezone" value="{L_SEARCH}" /></span><br /><span class="small">{L_SEARCH_USERS_TIMEZONE_EXPLAIN}</span></td>
	</tr>
	<tr>
		<td class="row2">&nbsp;</td>
	</tr>
	<!-- BEGIN forums_exist -->
	<tr>
		<td class="row1"><span class="gen"><b>{L_MODERATORS_OF}:</b>&nbsp;<select name="moderators_forum">{FORUMS_LIST}</select>&nbsp;<input type="submit" class="post2" name="search_moderators" value="{L_SEARCH}" /></span><br /><span class="small">{L_SEARCH_USERS_MODERATORS_EXPLAIN}</span></td>
	</tr>
	<tr>
		<td class="row2">&nbsp;</td>
	</tr>
	<!-- END forums_exist -->
	<tr>
		<td class="row1"><span class="gen"><b>{L_ROLE}</b>&nbsp;<select name="misc" class="post"><option value="admins" selected="selected">{L_ADMINISTRATORS}</option><option value="mods">{L_MODERATORS}</option><option value="banned">{L_BANNED_USERS}</option><option value="disabled">{L_DISABLED_USERS}</option></select>&nbsp;<input type="submit" class="post2" name="search_misc" value="{L_SEARCH}" /></span><br /><span class="small">{L_SEARCH_USERS_MISC_EXPLAIN}</span></td>
	</tr>
	<tr>
		<td class="row2">&nbsp;</td>
	</tr>
</table>
</form>

<!--========================================================================-->
<!-- ENDIF / TPL_ADMIN_USER_SEARCH_MAIN -->

<!-- IF TPL_ADMIN_USER_SEARCH_RESULTS -->
<!--========================================================================-->

<h1>{L_SEARCH_USERS_ADVANCED}</h1>

<p>{NEW_SEARCH}</p>
<br />

<form action="{S_POST_ACTION}" method="post" name="post">
<table width="98%" align="center">
	<tr>
		<td align="center" class="nav"><span class="gen">{L_SORT_OPTIONS}</span> <a href="{U_USERNAME}">{L_USERNAME}</a> | <a href="{U_EMAIL}">{L_EMAIL_ADDRESS}</a> | <a href="{U_POSTS}">{L_POSTS}</a> | <a href="{U_JOINDATE}">{L_JOINED}</a> | <a href="{U_LASTVISIT}">{L_LAST_VISIT}</a></td>
	</tr>
</table>
<p>&nbsp;</p>
<table width="98%" align="center">
	<tr>
		<td class="nav"><span class="gen">{PAGE_NUMBER}</span></td>
		<td align="right" class="nav" nowrap="nowrap"><span class="gen">{PAGINATION}</span></td>
	</tr>
</table>
<table class="forumline">
	<tr>
		<th>{L_USERNAME}</th>
		<th>{L_EMAIL_ADDRESS}</th>
		<th>{L_JOINED}</th>
		<th>{L_POSTS}</th>
		<th>{L_LAST_VISIT}</th>
		<th>&nbsp;</th>
		<th>&nbsp;</th>
		<th>&nbsp;</th>
		<th>{L_ACCOUNT_STATUS}</th>
	</tr>
	<!-- BEGIN userrow -->
	<tr class="gen nowrap tCenter {userrow.ROW_CLASS}">
		<td>&nbsp;{userrow.USER}&nbsp;</td>
		<td>&nbsp;{userrow.EMAIL}&nbsp;</td>
		<td>&nbsp;{userrow.JOINDATE}&nbsp;</td>
		<td>&nbsp;<a href="{userrow.U_VIEWPOSTS}" class="gen" target="_blank">{userrow.POSTS}&nbsp;</td>
		<td>&nbsp;{userrow.LASTVISIT}&nbsp;</td>
		<td>&nbsp;<a href="{userrow.U_MANAGE}" class="gen">{L_MANAGE}</a>&nbsp;</td>
		<td>&nbsp;<a href="{userrow.U_PERMISSIONS}" class="gen">{L_PERMISSIONS}</a>&nbsp;</td>
		<td>&nbsp;{userrow.BAN}&nbsp;</td>
		<td>&nbsp;{userrow.ABLED}&nbsp;</td>
	</tr>
	<!-- END userrow -->
	<tr>
		<td class="row3" colspan="9"><img src="{SPACER}" width="1" height="1" alt="."></td>
	</tr>
</table>
<table width="100%">
	<tr>
		<td align="right" valign="top"></td>
	</tr>
</table>
</form>

<!--========================================================================-->
<!-- ENDIF / TPL_ADMIN_USER_SEARCH_RESULTS -->
