summaryrefslogtreecommitdiff
path: root/templates/articles_mini_search.tpl
blob: e3246c6834586c58f8c71fcdb83b60d3cd6c54d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{form method="get" ipackage="articles" ifile="list.php"}
	<input type="text" name="find" value="{$find|escape}" />
	<input type="submit" class="btn btn-default" value="{tr}find{/tr}" name="search" />
	<input type="hidden" name="sort_mode" value="{$sort_mode|escape}" />
	<select name="type">
		<option value="" {if $find_type eq ''}selected="selected"{/if}>{tr}all{/tr}</option>
		{section name=t loop=$types}
			<option value="{$types[t].type|escape}" {if $type eq $types[t].type}selected="selected"{/if}>{$types[t].type}</option>
		{/section}
	</select>
	<select name="topic">
		<option value="" {if $find_topic eq ''}selected="selected"{/if}>{tr}all{/tr}</option>
		{section name=ix loop=$topics}
			<option value="{$topics[ix].topic_id|escape}" {if $find_topic eq $topics[ix].topic_id}selected="selected"{/if}>{tr}{$topics[ix].name}{/tr}</option>
		{/section}
	</select>
{/form}