<commit_before>{include file='header' pageTitle='wcf.acp.user.search'}

<script data-relocate="true">
	require(['WoltLabSuite/Core/Ui/User/Search/Input'], function(UiUserSearchInput) {
		new UiUserSearchInput(elBySel('input[name="username"]'));
	});
</script>

<header class="contentHeader">
	<div class="contentHeaderTitle">
		<h1 class="contentTitle">{lang}wcf.acp.user.search{/lang}</h1>
	</div>
	
	<nav class="contentHeaderNavigation">
		<ul>
			<li class="dropdown">
				<a class="button dropdownToggle"><span class="icon icon16 fa-search"></span> <span>{lang}wcf.acp.user.quickSearch{/lang}</span></a>
				<ul class="dropdownMenu">
					<li><a href="{link controller='UserQuickSearch'}mode=banned{/link}">{lang}wcf.acp.user.quickSearch.banned{/lang}</a></li>
					<li><a href="{link controller='UserQuickSearch'}mode=newest{/link}">{lang}wcf.acp.user.quickSearch.newest{/lang}</a></li>
					<li><a href="{link controller='UserQuickSearch'}mode=disabled{/link}">{lang}wcf.acp.user.quickSearch.disabled{/lang}</a></li>
					<li><a href="{link controller='UserQuickSearch'}mode=disabledAvatars{/link}">{lang}wcf.acp.user.quickSearch.disabledAvatars{/lang}</a></li>
					<li><a href="{link controller='UserQuickSearch'}mode=disabledSignatures{/link}">{lang}wcf.acp.user.quickSearch.disabledSignatures{/lang}</a></li>
					
					{event name='quickSearchItems'}
				</ul>
			</li>
			
			{event name='contentHeaderNavigation'}
		</ul>
	</nav>
</header>

{if $errorField == 'search'}
	<p class="error">{lang}wcf.acp.user.search.error.noMatches{/lang}</p>
{else}
	{include file='formError'}
{/if}

<form method="post" action="{link controller='UserSearch'}{/link}">
	<section class="section">
		<header class="sectionHeader">
			<h2 class="sectionTitle">{lang}wcf.acp.user.search.conditions{/lang}</h2>
		</header>
		
		{include file='userConditions'}
	</section>
	
	<section class="section">
		<h2 class="sectionTitle">{lang}wcf.acp.user.search.display{/lang}</h2>
		
		<section class="section">
			<h2 class="sectionTitle">{lang}wcf.acp.user.search.display.general{/lang}</h2>
			
			<dl>
				<dt><label for="sortField">{lang}wcf.acp.user.search.display.sort{/lang}</label></dt>
				<dd>
					<select id="sortField" name="sortField">
						<option value="userID"{if $sortField == 'userID'} selected{/if}>{lang}wcf.user.userID{/lang}</option>
						<option value="username"{if $sortField == 'username'} selected{/if}>{lang}wcf.user.username{/lang}</option>
						<option value="email"{if $sortField == 'email'} selected{/if}>{lang}wcf.user.email{/lang}</option>
						<option value="registrationDate"{if $sortField == 'registrationDate'} selected{/if}>{lang}wcf.user.registrationDate{/lang}</option>
						
						{if $additionalSortFields|isset}{@$additionalSortFields}{/if}
					</select>
					
					<select id="sortOrder" name="sortOrder">
						<option value="ASC"{if $sortOrder == 'ASC'} selected{/if}>{lang}wcf.global.sortOrder.ascending{/lang}</option>
						<option value="DESC"{if $sortOrder == 'DESC'} selected{/if}>{lang}wcf.global.sortOrder.descending{/lang}</option>
					</select>
				</dd>
			</dl>
			
			<dl>
				<dt><label for="itemsPerPage">{lang}wcf.acp.user.search.display.itemsPerPage{/lang}</label></dt>
				<dd>
					<input type="number" id="itemsPerPage" name="itemsPerPage" value="{@$itemsPerPage}" class="tiny">
				</dd>
			</dl>
			
			{event name='searchDisplayFields'}
		</section>
		
		<section class="section">
			<h2 class="sectionTitle">{lang}wcf.acp.user.search.display.columns{/lang}</h2>
			
			{if $columnOptions|count}
				<dl>
					<dt>
						<label>{lang}wcf.acp.user.search.display.columns.profile{/lang}</label>
					</dt>
					<dd>
						{foreach from=$columnOptions item=optionData}
							{assign var='option' value=$optionData.object}
							<label><input type="checkbox" name="columns[]" value="{$option->optionName}"{if $option->optionName|in_array:$columns} checked{/if}> {lang}wcf.user.option.{$option->optionName}{/lang}</label>
						{/foreach}
					</dd>
				</dl>
			{/if}
			
			<dl>
				<dt><label>{lang}wcf.acp.user.search.display.columns.other{/lang}</label></dt>
				<dd>
					{if $__wcf->session->getPermission('admin.user.canEditMailAddress')}<commit_msg>Removed the 'about me' column when searching for users<commit_after>{include file='header' pageTitle='wcf.acp.user.search'}

<script data-relocate="true">
	require(['WoltLabSuite/Core/Ui/User/Search/Input'], function(UiUserSearchInput) {
		new UiUserSearchInput(elBySel('input[name="username"]'));
	});
</script>

<header class="contentHeader">
	<div class="contentHeaderTitle">
		<h1 class="contentTitle">{lang}wcf.acp.user.search{/lang}</h1>
	</div>
	
	<nav class="contentHeaderNavigation">
		<ul>
			<li class="dropdown">
				<a class="button dropdownToggle"><span class="icon icon16 fa-search"></span> <span>{lang}wcf.acp.user.quickSearch{/lang}</span></a>
				<ul class="dropdownMenu">
					<li><a href="{link controller='UserQuickSearch'}mode=banned{/link}">{lang}wcf.acp.user.quickSearch.banned{/lang}</a></li>
					<li><a href="{link controller='UserQuickSearch'}mode=newest{/link}">{lang}wcf.acp.user.quickSearch.newest{/lang}</a></li>
					<li><a href="{link controller='UserQuickSearch'}mode=disabled{/link}">{lang}wcf.acp.user.quickSearch.disabled{/lang}</a></li>
					<li><a href="{link controller='UserQuickSearch'}mode=disabledAvatars{/link}">{lang}wcf.acp.user.quickSearch.disabledAvatars{/lang}</a></li>
					<li><a href="{link controller='UserQuickSearch'}mode=disabledSignatures{/link}">{lang}wcf.acp.user.quickSearch.disabledSignatures{/lang}</a></li>
					
					{event name='quickSearchItems'}
				</ul>
			</li>
			
			{event name='contentHeaderNavigation'}
		</ul>
	</nav>
</header>

{if $errorField == 'search'}
	<p class="error">{lang}wcf.acp.user.search.error.noMatches{/lang}</p>
{else}
	{include file='formError'}
{/if}

<form method="post" action="{link controller='UserSearch'}{/link}">
	<section class="section">
		<header class="sectionHeader">
			<h2 class="sectionTitle">{lang}wcf.acp.user.search.conditions{/lang}</h2>
		</header>
		
		{include file='userConditions'}
	</section>
	
	<section class="section">
		<h2 class="sectionTitle">{lang}wcf.acp.user.search.display{/lang}</h2>
		
		<section class="section">
			<h2 class="sectionTitle">{lang}wcf.acp.user.search.display.general{/lang}</h2>
			
			<dl>
				<dt><label for="sortField">{lang}wcf.acp.user.search.display.sort{/lang}</label></dt>
				<dd>
					<select id="sortField" name="sortField">
						<option value="userID"{if $sortField == 'userID'} selected{/if}>{lang}wcf.user.userID{/lang}</option>
						<option value="username"{if $sortField == 'username'} selected{/if}>{lang}wcf.user.username{/lang}</option>
						<option value="email"{if $sortField == 'email'} selected{/if}>{lang}wcf.user.email{/lang}</option>
						<option value="registrationDate"{if $sortField == 'registrationDate'} selected{/if}>{lang}wcf.user.registrationDate{/lang}</option>
						
						{if $additionalSortFields|isset}{@$additionalSortFields}{/if}
					</select>
					
					<select id="sortOrder" name="sortOrder">
						<option value="ASC"{if $sortOrder == 'ASC'} selected{/if}>{lang}wcf.global.sortOrder.ascending{/lang}</option>
						<option value="DESC"{if $sortOrder == 'DESC'} selected{/if}>{lang}wcf.global.sortOrder.descending{/lang}</option>
					</select>
				</dd>
			</dl>
			
			<dl>
				<dt><label for="itemsPerPage">{lang}wcf.acp.user.search.display.itemsPerPage{/lang}</label></dt>
				<dd>
					<input type="number" id="itemsPerPage" name="itemsPerPage" value="{@$itemsPerPage}" class="tiny">
				</dd>
			</dl>
			
			{event name='searchDisplayFields'}
		</section>
		
		<section class="section">
			<h2 class="sectionTitle">{lang}wcf.acp.user.search.display.columns{/lang}</h2>
			
			{if $columnOptions|count}
				<dl>
					<dt>
						<label>{lang}wcf.acp.user.search.display.columns.profile{/lang}</label>
					</dt>
					<dd>
						{foreach from=$columnOptions item=optionData}
							{assign var='option' value=$optionData.object}
							
							{* the 'about me' field does not qualify for display *}
							{if $option->optionName !== 'aboutMe'}
								<label><input type="checkbox" name="columns[]" value="{$option->optionName}"{if $option->optionName|in_array:$columns} checked{/if}> {lang}wcf.user.option.{$option->optionName}{/lang}</label>
							{/if}
						{/foreach}
					</dd>
				</dl>
			{/if}
			
			<dl>
				<dt><label>{lang}wcf.acp.user.search.display.columns.other{/lang}</label></dt>
				<dd>
					{if $__wcf->session->getPermission('admin.user.canEditMailAddress')}
{'fraction_non_alphanumeric': 0.20792654579265457, 'fraction_numerical': 0.002789400278940028, 'mean_word_length': 4.694904037061549, 'pattern_counts': {'":': 0, '<': 225, '<?xml version=': 0, '>': 236, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5211793', 'n_tokens_mistral': 3574, 'n_tokens_neox': 3009, 'n_words': 380}