<div class="post">
	<form action="{{ form_url }}" method="get" class="newtopic">
		<div class="postinfotop">
			<h2>{{ lang['search.site_search'] }}</h2>
		</div>
		<div class="accsection">
			<div class="topwrap">
				<div class="card">
					{% if (flags.found) %}
						<div class="alert alert-success">{{ lang['search.found'] }}: <b>{{ count }}</b></div>
					{% endif %}
					{% if (flags.notfound) %}
						<div class="alert alert-info">{{ lang['search.notfound'] }}</div>
					{% endif %}
					{% if (flags.error) %}
						<div class="alert alert-warning"><b>{{ lang['search.error'] }}</b></div>
					{% endif %}
					<div class="row">
						<div class="col-lg-4 col-md-4">
							<label>{{ lang['search.filter.author'] }}</label>
							<input type="text" name="author" value="{{ author }}" class="form-control" />
						</div>
						<div class="col-lg-4 col-md-4">
							<label>{{ lang['search.filter.category'] }}</label>
							<div class="search_catz">{{ catlist }}</div>
						</div>
						<div class="col-lg-4 col-md-4">
							<label>{{ lang['search.filter.date'] }}</label>
							<select name="postdate" class="form-control">
								<option value=""></option>
								{{ datelist }}
							</select>
						</div>
					</div>
					<div>
						<input type=text name="search" value="{{ search }}" class="form-control" />
					</div>
					<div class="postinfobot">
						<div class="pull-right postreply">
							<div class="pull-left"><button class="btn btn-primary" type="submit">{{ lang['search.submit'] }}</button></div>
							<div class="clearfix"></div>
						</div>
						<div class="clearfix"></div>
					</div>
				</div>
				<div class="clearfix"></div>
			</div>
		</div>
	</form>
</div>
{{ entries }}