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