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