<script type="text/javascript" src='jscripts/ipb_xhr_findnames.js'></script>
<script type="text/javascript">
//<![CDATA[
<!-- // Hide js from html validator
	function go_gadget_simple(){
		window.location = "{$this->ipsclass->js_base_url}act=Search&mode=simple&f={$this->ipsclass->input['f']}";
	}
	
	function win_pop(){
		window.open("{$this->ipsclass->js_base_url}act=Search&CODE=explain","WIN","width=400,height=300,resizable=yes,scrollbars=yes"); 
	}
//-->
//]]>
</script>
<form action="{$this->ipsclass->base_url}act=Search&amp;CODE=01" id='postingform' method="post" name="sForm">
<div id='ipb-get-members' style='border:1px solid #000; background:#FFF; padding:2px;position:absolute;width:210px;display:none;z-index:1'></div>
<div class="borderwrap">
	<table class='ipbtable' cellspacing="0">
		<tr>
			<td colspan="2" class="maintitle"  align="center">{$this->ipsclass->lang['keywords_title']}</td>
		</tr>
		<tr>
			<td class="subtitle" width="50%">{$this->ipsclass->lang['key_search']}</td>
			<td class="subtitle" width="50%">{$this->ipsclass->lang['mem_search']}</td>
		</tr>
		<tr>
			<td class="row1" valign="top">
				<input type="text" maxlength="100" size="40" name="keywords" id="keywords" />
				<br /><br />
				<label for="keywords">{$this->ipsclass->lang['keysearch_text']}</label> <!--IBF.BOOLEAN_EXPLAIN-->
			</td>
			<td class="row2" valign="top">
				<table class='ipbtable' cellspacing="0">
					<tr>
						<td><input type="text" maxlength="100" size="50" id="entered_name" style='width:210px' name="namesearch" /></td>
					</tr>
					<tr>
						<td width="40%"><input type="checkbox" name="exactname" id="matchexact" value="1" class="checkbox" /><label for="matchexact">{$this->ipsclass->lang['match_name_ex']}</label></td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
</div>
<br />
<div class="borderwrap">
	<table class='ipbtable' cellspacing="0">         
		<tr>
			<td colspan="2" class="maintitle"  align="center">{$this->ipsclass->lang['search_options']}</td>
		</tr>
		<tr>
			<td class="subtitle" width="50%" valign="middle">{$this->ipsclass->lang['search_where']}</td>
			<td class="subtitle" width="50%" valign="middle">{$this->ipsclass->lang['search_refine']}</td>
		</tr>
		<tr>
			<td class="row1" valign="middle">
				$forums
				<br />
				<input type="checkbox" name="searchsubs" value="1" id="searchsubs" checked="checked" class='checkbox' />&nbsp;<label for="searchsubs">{$this->ipsclass->lang['search_in_subs']}</label>
			</td>
			<td class="row2" valign="top">
				<table class='ipbtable' cellspacing="1">
					<tr>
						<td valign="top">
							<fieldset class="search">
							<legend><b>{$this->ipsclass->lang['search_from']}</b></legend>
								<select name="prune">
									<option value="1">{$this->ipsclass->lang['today']}</option>
									<option value="7">{$this->ipsclass->lang['this_week']}</option>
									<option value="30">{$this->ipsclass->lang['this_month']}</option>
									<option value="60">{$this->ipsclass->lang['this_60']}</option>
									<option value="90">{$this->ipsclass->lang['this_90']}</option>
									<option value="180">{$this->ipsclass->lang['this_180']}</option>
									<option value="365">{$this->ipsclass->lang['this_year']}</option>
									<option value="0" selected="selected">{$this->ipsclass->lang['ever']}</option>
								</select><br />
								<input type="radio" name="prune_type" id="prune_older" value="older" class="radiobutton" />&nbsp;<label for="prune_older">{$this->ipsclass->lang['older']}</label><br />
								<input type="radio" name="prune_type" id="prune_newer" value="newer" class="radiobutton" checked="checked" />&nbsp;<label for="prune_newer">{$this->ipsclass->lang['newer']}</label>
							</fieldset>
						</td>
						<td valign="top">
							<fieldset class="search">
								<legend><b>{$this->ipsclass->lang['sort_results']}</b></legend>
									<select name="sort_key">
										<option value="last_post">{$this->ipsclass->lang['last_date']}</option>
										<option value="posts">{$this->ipsclass->lang['number_topics']}</option>
										<option value="starter_name">{$this->ipsclass->lang['poster_name']}</option>
										<option value="forum_id">{$this->ipsclass->lang['forum_name']}</option>
									</select><br />
									<input type="radio" name="sort_order" id="sort_desc" class="radiobutton" value="desc" checked="checked" /><label for="sort_desc">{$this->ipsclass->lang['descending']}</label><br />
									<input type="radio" name="sort_order" id="sort_asc" class="radiobutton" value="asc" /><label for="sort_asc">{$this->ipsclass->lang['ascending']}</label>
								</fieldset>
							</td>
						</tr>
						<tr>
							<td nowrap="nowrap">
								<fieldset class="search">
								<legend><b>{$this->ipsclass->lang['search_where']}</b></legend>
									<input type="radio" name="search_in" class="radiobutton" id="search_in_posts" value="posts" checked="checked" /><label for="search_in_posts">{$this->ipsclass->lang['in_posts']}</label><br />
									<input type="radio" name="search_in" class="radiobutton" id="search_in_titles" value="titles" /><label for="search_in_titles">{$this->ipsclass->lang['in_topics']}</label>
								</fieldset>
							</td>
							<td>
								<fieldset class="search">
								<legend><b>{$this->ipsclass->lang['result_type']}</b></legend>
									<input type="radio" name="result_type" class="radiobutton" value="topics" id="result_topics" checked="checked" /><label for="result_topics">{$this->ipsclass->lang['results_topics']}</label><br />
									<input type="radio" name="result_type" class="radiobutton" value="posts" id="result_posts" /><label for="result_posts">{$this->ipsclass->lang['results_post']}</label>
								</fieldset>
							</td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td class="formbuttonrow" colspan="2" align="center"><input class='button' type="submit" value="{$this->ipsclass->lang['do_search']}" /><!--IBF.SIMPLE_BUTTON--></td>
			</tr>
		</table>
	</div>
</form>
<script type="text/javascript">
	// INIT find names
	formobj = document.getElementById('postingform');
	formobj.entered_name.autocomplete = 'off';
	init_js( 'postingform', 'entered_name', 'get-member-names');
	// Run main loop
	setTimeout( 'main_loop()', 10 );
</script>