aboutsummaryrefslogtreecommitdiffstats
path: root/theme/default/html/search/result.php
blob: 044afe10151dee90fd97df021114683bf1d1a835 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<h1><?=$Language->text('search_result_heading_text', escapeHTML($SEARCH['TEXT']))?></h1>
<p><?=$Language->text('search_result_heading_desc')?></p>

<form action="" method="GET">
	<input autofocus type="search" name="q" placeholder="<?=$Language->text('search_form_placeholder')?>" value="<?=escapeHTML($SEARCH['TEXT'])?>" />

	<select name="d">
		<option value=""><?=$Language->text('date_d')?></option>

		<?php foreach($FORM['OPTIONS']['D'] as $option): ?>
			<option value="<?=$option?>"<?=($FORM['SELECT']['D'] === $option) ? ' selected' : '' ?>><?=$option?></option>
		<?php endforeach; ?>
	</select>
	<select name="m">
		<option value=""><?=$Language->text('date_m')?></option>

		<?php foreach($FORM['OPTIONS']['M'] as $option): ?>
			<option value="<?=$option?>"<?=($FORM['SELECT']['M'] === $option) ? ' selected' : '' ?>><?=$option?></option>
		<?php endforeach; ?>
	</select>
	<select name="y">
		<option value=""><?=$Language->text('date_y')?></option>

		<?php foreach($FORM['OPTIONS']['Y'] as $option): ?>
			<option value="<?=$option?>"<?=($FORM['SELECT']['Y'] === $option) ? ' selected' : '' ?>><?=$option?></option>
		<?php endforeach; ?>
	</select>

	<input type="submit" value="<?=$Language->text('search')?>" />
</form>

<div class="item-container post">
	<?php foreach($RESULT['LIST'] as $post): ?>
		<?php echo $post; ?>
	<?php endforeach; ?>
</div>