1 | |
---|
2 | {* Example of resizeable *} |
---|
3 | {* |
---|
4 | {include file='include/resize.inc.tpl'} |
---|
5 | *} |
---|
6 | |
---|
7 | {* Example of datepicker *} |
---|
8 | {* |
---|
9 | {include file='include/datepicker.inc.tpl'} |
---|
10 | |
---|
11 | {literal} |
---|
12 | <script type="text/javascript"> |
---|
13 | pwg_initialization_datepicker("#start_day", "#start_month", "#start_year", "#start_linked_date", null, null, "#end_linked_date"); |
---|
14 | pwg_initialization_datepicker("#end_day", "#end_month", "#end_year", "#end_linked_date", null, "#start_linked_date", null); |
---|
15 | jQuery().ready(function(){ $(".date_today").hide(); }); |
---|
16 | </script> |
---|
17 | {/literal} |
---|
18 | *} |
---|
19 | |
---|
20 | <div id="content" class="content"> |
---|
21 | |
---|
22 | <div class="titrePage"> |
---|
23 | <ul class="categoryActions"> |
---|
24 | <li><a 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> |
---|
25 | <li><a 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> |
---|
26 | </ul> |
---|
27 | <h2>{'Search'|@translate}</h2> |
---|
28 | </div> |
---|
29 | |
---|
30 | {if isset($errors) } |
---|
31 | <div class="errors"> |
---|
32 | <ul> |
---|
33 | {foreach from=$errors item=error} |
---|
34 | <li>{$error}</li> |
---|
35 | {/foreach} |
---|
36 | </ul> |
---|
37 | </div> |
---|
38 | {/if} |
---|
39 | |
---|
40 | <form class="filter" method="post" name="search" action="{$F_SEARCH_ACTION}"> |
---|
41 | <fieldset> |
---|
42 | <legend>{'Filter'|@translate}</legend> |
---|
43 | <label>{'search_keywords'|@translate} |
---|
44 | <input type="text" style="width: 300px" name="search_allwords" size="30" /> |
---|
45 | </label> |
---|
46 | <ul> |
---|
47 | <li><label> |
---|
48 | <input type="radio" name="mode" value="AND" checked="checked" />{'search_mode_and'|@translate} |
---|
49 | </label></li> |
---|
50 | <li><label> |
---|
51 | <input type="radio" name="mode" value="OR" />{'search_mode_or'|@translate} |
---|
52 | </label></li> |
---|
53 | </ul> |
---|
54 | <label>{'search_author'|@translate} |
---|
55 | <input type="text" style="width: 300px" name="search_author" size="30" /> |
---|
56 | </label> |
---|
57 | </fieldset> |
---|
58 | |
---|
59 | {if isset($TAG_SELECTION)} |
---|
60 | <fieldset> |
---|
61 | <legend>{'Search tags'|@translate}</legend> |
---|
62 | {$TAG_SELECTION} |
---|
63 | <label><span><input type="radio" name="tag_mode" value="AND" checked="checked" /> {'All tags'|@translate}</span></label> |
---|
64 | <label><span><input type="radio" name="tag_mode" value="OR" /> {'Any tag'|@translate}</span></label> |
---|
65 | </fieldset> |
---|
66 | {/if} |
---|
67 | |
---|
68 | |
---|
69 | <fieldset> |
---|
70 | <legend>{'search_date'|@translate}</legend> |
---|
71 | <ul> |
---|
72 | <li><label>{'search_date_type'|@translate}</label></li> |
---|
73 | <li><label> |
---|
74 | <input type="radio" name="date_type" value="date_creation" checked="checked" />{'Creation date'|@translate} |
---|
75 | </label></li> |
---|
76 | <li><label> |
---|
77 | <input type="radio" name="date_type" value="date_available" />{'Post date'|@translate} |
---|
78 | </label></li> |
---|
79 | </ul> |
---|
80 | <ul> |
---|
81 | <li><label>{'search_date_from'|@translate}</label></li> |
---|
82 | <li> |
---|
83 | <select id="start_day" name="start_day"> |
---|
84 | <option value="0">--</option> |
---|
85 | {section name=day start=1 loop=32} |
---|
86 | <option value="{$smarty.section.day.index}" {if $smarty.section.day.index==$START_DAY_SELECTED}selected="selected"{/if}>{$smarty.section.day.index}</option> |
---|
87 | {/section} |
---|
88 | </select> |
---|
89 | <select id="start_month" name="start_month"> |
---|
90 | {html_options options=$month_list selected=$START_MONTH_SELECTED} |
---|
91 | </select> |
---|
92 | <input id="start_year" name="start_year" type="text" size="4" maxlength="4" > |
---|
93 | <input id="start_linked_date" name="start_linked_date" type="hidden" size="10" disabled="disabled"/> |
---|
94 | </li> |
---|
95 | <li> |
---|
96 | <a class="date_today" 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> |
---|
97 | </li> |
---|
98 | </ul> |
---|
99 | <ul> |
---|
100 | <li><label>{'search_date_to'|@translate}</label></li> |
---|
101 | <li> |
---|
102 | <select id="end_day" name="end_day"> |
---|
103 | <option value="0">--</option> |
---|
104 | {section name=day start=1 loop=32} |
---|
105 | <option value="{$smarty.section.day.index}" {if $smarty.section.day.index==$END_DAY_SELECTED}selected="selected"{/if}>{$smarty.section.day.index}</option> |
---|
106 | {/section} |
---|
107 | </select> |
---|
108 | <select id="end_month" name="end_month"> |
---|
109 | {html_options options=$month_list selected=$END_MONTH_SELECTED} |
---|
110 | </select> |
---|
111 | <input id="end_year" name="end_year" type="text" size="4" maxlength="4" > |
---|
112 | <input id="end_linked_date" name="end_linked_date" type="hidden" size="10" disabled="disabled"/> |
---|
113 | </li> |
---|
114 | <li> |
---|
115 | <a class="date_today" 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> |
---|
116 | </li> |
---|
117 | </ul> |
---|
118 | </fieldset> |
---|
119 | |
---|
120 | <fieldset> |
---|
121 | <legend>{'search_options'|@translate}</legend> |
---|
122 | <label>{'search_categories'|@translate} |
---|
123 | <select class="categoryList" name="cat[]" multiple="multiple" > |
---|
124 | {html_options options=$category_options selected=$category_options_selected} |
---|
125 | </select> |
---|
126 | </label> |
---|
127 | <ul> |
---|
128 | <li><label>{'search_subcats_included'|@translate}</label></li> |
---|
129 | <li><label> |
---|
130 | <input type="radio" name="subcats-included" value="1" checked="checked" />{'Yes'|@translate} |
---|
131 | </label></li> |
---|
132 | <li><label> |
---|
133 | <input type="radio" name="subcats-included" value="0" />{'No'|@translate} |
---|
134 | </label></li> |
---|
135 | </ul> |
---|
136 | </fieldset> |
---|
137 | <p> |
---|
138 | <input class="submit" type="submit" name="submit" value="{'Submit'|@translate}" /> |
---|
139 | <input class="submit" type="reset" value="{'Reset'|@translate}" /> |
---|
140 | </p> |
---|
141 | </form> |
---|
142 | |
---|
143 | <script type="text/javascript"><!-- |
---|
144 | document.search.search_allwords.focus(); |
---|
145 | //--></script> |
---|
146 | |
---|
147 | </div> <!-- content --> |
---|