<form action="{{ form_url }}" method="get">
<table style="width:100%;">
	<tr>
		<td class="search">
			<div align="center">
				<table style="width:100%;">
					<tr style="vertical-align: top;">
						<td>
							<fieldset style="margin:0px">
								<legend>{{ lang['search.title'] }}:</legend>
								<table style="width:100%;">
									<tr>
										<td>
											<input type=text name="search" value="{{ search }}" />
										</td>
									</tr>
								</table>
							</fieldset>
						</td>
						<td valign="top">
							<fieldset style="margin:0px">
								<legend>{{ lang['search.filter.author'] }}</legend>
								<table style="width:100%;">
									<tr>
										<td>
											<input type="text" name="author" value="{{ author }}" />
										</td>
									</tr>
								</table>
							</fieldset>
						</td>
					</tr>
					<tr style="vertical-align: top;">
						<td width="50%" valign="top">
							<fieldset style="margin:0px">
								<legend>{{ lang['search.filter.category'] }}</legend>
								{{ catlist }}
							</fieldset>
						</td>
						<td width="50%" valign="top">
							<fieldset style="margin:0px">
								<legend>{{ lang['search.filter.date'] }}</legend>
								<select name="postdate"><option value=""></option>{{ datelist }}</select>
							</fieldset>
						</td>
					</tr>
					<tr>
						<td colspan="2">
							<div style="margin-top:6px">
								<input type="submit" class="bbcodes" value="{{ lang['search.submit'] }}" />
							</div>
						</td>
					</tr>
				</table>
			</div>
		</td>
	</tr>
</table>
</form>
{% if (flags.found) %}
	<div class="box_info" style="margin:10px 0">
		{{ lang['search.found'] }}: <b>{{ count }}</b>
	</div>
{% endif %}
{% if (flags.notfound) %}
	<div class="box_info" style="margin:10px 0">
		{{ lang['search.notfound'] }}
	</div>
{% endif %}
{% if (flags.error) %}
	<div class="box_info" style="margin:10px 0">
		{{ lang['search.error'] }}
	</div>
{% endif %}
<div id='dle-content'>
	{% for entry in entries %}
		{{ entry }}
	{% endfor %}
</div>