1 | <div class="titrePage"> |
---|
2 | <ul class="categoryActions"> |
---|
3 | <li><a href="{$U_HOME}" title="{'return to homepage'|@translate}" rel="home">{'home'|@translate}</a></li> |
---|
4 | </ul> |
---|
5 | <h2>{'Search'|@translate}</h2> |
---|
6 | </div> |
---|
7 | <div id="content"> |
---|
8 | {if isset($errors) } |
---|
9 | <div class="errors"> |
---|
10 | <ul> |
---|
11 | {foreach from=$errors item=error} |
---|
12 | <li>{$error}</li> |
---|
13 | {/foreach} |
---|
14 | </ul> |
---|
15 | </div> |
---|
16 | {/if} |
---|
17 | <form class="filter" method="post" name="search" action="{$F_SEARCH_ACTION}"> |
---|
18 | <fieldset> |
---|
19 | <legend>{'Filter'|@translate}</legend> |
---|
20 | <label>{'search_keywords'|@translate} |
---|
21 | <input type="text" style="width: 300px" name="search_allwords" size="30" /> |
---|
22 | </label> |
---|
23 | <ul> |
---|
24 | <li><label> |
---|
25 | <input type="radio" name="mode" value="AND" checked="checked" />{'search_mode_and'|@translate} |
---|
26 | </label></li> |
---|
27 | <li><label> |
---|
28 | <input type="radio" name="mode" value="OR" />{'search_mode_or'|@translate} |
---|
29 | </label></li> |
---|
30 | </ul> |
---|
31 | <label>{'search_author'|@translate} |
---|
32 | <input type="text" style="width: 300px" name="search_author" size="30" /> |
---|
33 | </label> |
---|
34 | </fieldset> |
---|
35 | {if isset($TAG_SELECTION)} |
---|
36 | <fieldset> |
---|
37 | <legend>{'Search tags'|@translate}</legend> |
---|
38 | {$TAG_SELECTION} |
---|
39 | <label><span><input type="radio" name="tag_mode" value="AND" checked="checked" /> {'All tags'|@translate}</span></label> |
---|
40 | <label><span><input type="radio" name="tag_mode" value="OR" /> {'Any tag'|@translate}</span></label> |
---|
41 | </fieldset> |
---|
42 | {/if} |
---|
43 | <fieldset> |
---|
44 | <legend>{'search_date'|@translate}</legend> |
---|
45 | <ul> |
---|
46 | <li><label>{'search_date_type'|@translate}</label></li> |
---|
47 | <li><label> |
---|
48 | <input type="radio" name="date_type" value="date_creation" checked="checked" />{'Creation date'|@translate} |
---|
49 | </label></li> |
---|
50 | <li><label> |
---|
51 | <input type="radio" name="date_type" value="date_available" />{'Post date'|@translate} |
---|
52 | </label></li> |
---|
53 | </ul> |
---|
54 | <ul> |
---|
55 | <li> |
---|
56 | <label>{'search_date_from'|@translate}</label> |
---|
57 | <select name="start_day"> |
---|
58 | <option value="0">--</option> |
---|
59 | {section name=day start=1 loop=32} |
---|
60 | <option value="{$smarty.section.day.index}" {if $smarty.section.day.index==$START_DAY_SELECTED}selected="selected"{/if}>{$smarty.section.day.index}</option> |
---|
61 | {/section} |
---|
62 | </select> |
---|
63 | <select name="start_month"> |
---|
64 | {html_options options=$month_list selected=$START_MONTH_SELECTED} |
---|
65 | </select> |
---|
66 | <input name="start_year" type="text" size="4" maxlength="4" > |
---|
67 | <a href="#" onClick="document.search.start_day.value={$smarty.now|date_format:"%d"};document.search.start_month.value={$smarty.now|date_format:"%m"};document.search.start_year.value={$smarty.now|date_format:"%Y"};return false;">{'today'|@translate}</a> |
---|
68 | </li> |
---|
69 | </ul> |
---|
70 | <ul> |
---|
71 | <li> |
---|
72 | <label>{'search_date_to'|@translate}</label> |
---|
73 | <select name="end_day"> |
---|
74 | <option value="0">--</option> |
---|
75 | {section name=day start=1 loop=32} |
---|
76 | <option value="{$smarty.section.day.index}" {if $smarty.section.day.index==$END_DAY_SELECTED}selected="selected"{/if}>{$smarty.section.day.index}</option> |
---|
77 | {/section} |
---|
78 | </select> |
---|
79 | <select name="end_month"> |
---|
80 | {html_options options=$month_list selected=$END_MONTH_SELECTED} |
---|
81 | </select> |
---|
82 | <input name="end_year" type="text" size="4" maxlength="4" > |
---|
83 | <a href="#" onClick="document.search.end_day.value={$smarty.now|date_format:"%d"};document.search.end_month.value={$smarty.now|date_format:"%m"};document.search.end_year.value={$smarty.now|date_format:"%Y"};return false;">{'today'|@translate}</a> |
---|
84 | </li> |
---|
85 | </ul> |
---|
86 | </fieldset> |
---|
87 | <fieldset> |
---|
88 | <legend>{'search_options'|@translate}</legend> |
---|
89 | <label>{'search_categories'|@translate}<br/> |
---|
90 | <select class="categoryList" name="cat[]" multiple="multiple" > |
---|
91 | {html_options options=$category_options selected=$category_options_selected} |
---|
92 | </select> |
---|
93 | </label> |
---|
94 | <ul> |
---|
95 | <li><label>{'search_subcats_included'|@translate}</label></li> |
---|
96 | <li><label> |
---|
97 | <input type="radio" name="subcats-included" value="1" checked="checked" />{'Yes'|@translate} |
---|
98 | </label></li> |
---|
99 | <li><label> |
---|
100 | <input type="radio" name="subcats-included" value="0" />{'No'|@translate} |
---|
101 | </label></li> |
---|
102 | </ul> |
---|
103 | </fieldset> |
---|
104 | <p> |
---|
105 | <input class="submit" type="submit" name="submit" value="{'Submit'|@translate}" /> |
---|
106 | <input class="submit" type="reset" value="{'Reset'|@translate}" /> |
---|
107 | </p> |
---|
108 | </form> |
---|
109 | <script type="text/javascript"><!-- |
---|
110 | document.search.search_allwords.focus(); |
---|
111 | //--></script> |
---|
112 | </div> <!-- content --> |
---|