Changeset 12960 for extensions/stripped/template/search.tpl
- Timestamp:
- Jan 28, 2012, 6:45:06 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/stripped/template/search.tpl
r9134 r12960 5 5 <div class="titrePage"> 6 6 <div class="browsePath"> 7 <h2><a href="{$U_HOME}" title="{'Home'|@translate}">{'Home'|@translate}</a>{$LEVEL_SEPARATOR}{'Search'|@translate}</h2> 7 <h2> 8 {if isset($MENUBAR)} 9 <span id="menuswitcher" title="{'Show/hide menu'|@translate}">{'Menu'|@translate}</span><span class="arrow"> »</span> 10 {/if} 11 <a href="{$U_HOME}">{'Home'|@translate}</a> 12 {$LEVEL_SEPARATOR}{'Search'|@translate} 13 </h2> 14 </div> 15 <div class="categoryActionsContainer"> 16 <ul class="categoryActions"> 17 <li><a href="{$U_HELP}" onclick="popuphelp(this.href); return false;" title="{'Help'|@translate}" class="pwg-state-default pwg-button"> 18 <span class="pwg-icon pwg-icon-help"> </span><span class="pwg-button-text">{'Help'|@translate}</span> 19 </a></li> 20 </ul> 8 21 </div> 9 22 </div> 10 23 <div id="content"> 11 {if isset($errors) } 12 <div class="errors"> 13 <ul> 14 {foreach from=$errors item=error} 15 <li>{$error}</li> 16 {/foreach} 17 </ul> 24 {if isset($MENUBAR)}{$MENUBAR}{/if} 25 <div id="content_cell"> 26 <div class="content_block"> 27 {if isset($errors) } 28 <div class="errors"> 29 <ul> 30 {foreach from=$errors item=error} 31 <li>{$error}</li> 32 {/foreach} 33 </ul> 34 </div> 35 {/if} 36 <form class="filter" method="post" name="search" action="{$F_SEARCH_ACTION}"> 37 <fieldset> 38 <legend>{'Filter'|@translate}</legend> 39 <label>{'Search for words'|@translate} 40 <input type="text" style="width: 300px" name="search_allwords" size="30" /> 41 </label> 42 <ul> 43 <li><label> 44 <input type="radio" name="mode" value="AND" checked="checked" />{'Search for all terms'|@translate} 45 </label></li> 46 <li><label> 47 <input type="radio" name="mode" value="OR" />{'Search for any terms'|@translate} 48 </label></li> 49 </ul> 50 <label>{'Search for Author'|@translate} 51 <input type="text" style="width: 300px" name="search_author" size="30" /> 52 </label> 53 </fieldset> 54 {if isset($TAG_SELECTION)} 55 <fieldset> 56 <legend>{'Search tags'|@translate}</legend> 57 {$TAG_SELECTION} 58 <label><span><input type="radio" name="tag_mode" value="AND" checked="checked" /> {'All tags'|@translate}</span></label> 59 <label><span><input type="radio" name="tag_mode" value="OR" /> {'Any tag'|@translate}</span></label> 60 </fieldset> 61 {/if} 62 <fieldset> 63 <legend>{'Search by Date'|@translate}</legend> 64 <ul> 65 <li><label>{'Kind of date'|@translate}</label></li> 66 <li><label> 67 <input type="radio" name="date_type" value="date_creation" checked="checked" />{'Creation date'|@translate} 68 </label></li> 69 <li><label> 70 <input type="radio" name="date_type" value="date_available" />{'Post date'|@translate} 71 </label></li> 72 </ul> 73 <ul> 74 <li><label>{'Date'|@translate}</label></li> 75 <li> 76 <select id="start_day" name="start_day"> 77 <option value="0">--</option> 78 {section name=day start=1 loop=32} 79 <option value="{$smarty.section.day.index}" {if $smarty.section.day.index==$START_DAY_SELECTED}selected="selected"{/if}>{$smarty.section.day.index}</option> 80 {/section} 81 </select> 82 <select id="start_month" name="start_month"> 83 {html_options options=$month_list selected=$START_MONTH_SELECTED} 84 </select> 85 <input id="start_year" name="start_year" type="text" size="4" maxlength="4" > 86 <input id="start_linked_date" name="start_linked_date" type="hidden" size="10" disabled="disabled"> 87 </li> 88 <li> 89 <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> 90 </li> 91 </ul> 92 <ul> 93 <li><label>{'End-Date'|@translate}</label></li> 94 <li> 95 <select id="end_day" name="end_day"> 96 <option value="0">--</option> 97 {section name=day start=1 loop=32} 98 <option value="{$smarty.section.day.index}" {if $smarty.section.day.index==$END_DAY_SELECTED}selected="selected"{/if}>{$smarty.section.day.index}</option> 99 {/section} 100 </select> 101 <select id="end_month" name="end_month"> 102 {html_options options=$month_list selected=$END_MONTH_SELECTED} 103 </select> 104 <input id="end_year" name="end_year" type="text" size="4" maxlength="4" > 105 <input id="end_linked_date" name="end_linked_date" type="hidden" size="10" disabled="disabled"> 106 </li> 107 <li> 108 <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> 109 </li> 110 </ul> 111 </fieldset> 112 <fieldset> 113 <legend>{'Search Options'|@translate}</legend> 114 <label>{'Search in Categories'|@translate} 115 <select class="categoryList" name="cat[]" multiple="multiple" > 116 {html_options options=$category_options selected=$category_options_selected} 117 </select> 118 </label> 119 <ul> 120 <li><label>{'Search in subcategories'|@translate}</label></li> 121 <li><label> 122 <input type="radio" name="subcats-included" value="1" checked="checked" />{'Yes'|@translate} 123 </label></li> 124 <li><label> 125 <input type="radio" name="subcats-included" value="0" />{'No'|@translate} 126 </label></li> 127 </ul> 128 </fieldset> 129 <p> 130 <input class="submit" type="submit" name="submit" value="{'Submit'|@translate}" /> 131 <input class="submit" type="reset" value="{'Reset'|@translate}" /> 132 </p> 133 </form> 134 <script type="text/javascript"> 135 <!-- 136 document.search.search_allwords.focus(); 137 //--> 138 </script> 18 139 </div> 19 {/if} 20 <form class="filter" method="post" name="search" action="{$F_SEARCH_ACTION}"> 21 <fieldset> 22 <legend>{'Filter'|@translate}</legend> 23 <label>{'Search for words'|@translate} 24 <input type="text" style="width: 300px" name="search_allwords" size="30" /> 25 </label> 26 <ul> 27 <li><label> 28 <input type="radio" name="mode" value="AND" checked="checked" />{'Search for all terms'|@translate} 29 </label></li> 30 <li><label> 31 <input type="radio" name="mode" value="OR" />{'Search for any terms'|@translate} 32 </label></li> 33 </ul> 34 <label>{'Search for Author'|@translate} 35 <input type="text" style="width: 300px" name="search_author" size="30" /> 36 </label> 37 </fieldset> 38 {if isset($TAG_SELECTION)} 39 <fieldset> 40 <legend>{'Search tags'|@translate}</legend> 41 {$TAG_SELECTION} 42 <label><span><input type="radio" name="tag_mode" value="AND" checked="checked" /> {'All tags'|@translate}</span></label> 43 <label><span><input type="radio" name="tag_mode" value="OR" /> {'Any tag'|@translate}</span></label> 44 </fieldset> 45 {/if} 46 <fieldset> 47 <legend>{'Search by Date'|@translate}</legend> 48 <ul> 49 <li><label>{'Kind of date'|@translate}</label></li> 50 <li><label> 51 <input type="radio" name="date_type" value="date_creation" checked="checked" />{'Creation date'|@translate} 52 </label></li> 53 <li><label> 54 <input type="radio" name="date_type" value="date_available" />{'Post date'|@translate} 55 </label></li> 56 </ul> 57 <ul> 58 <li><label>{'Date'|@translate}</label></li> 59 <li> 60 <select id="start_day" name="start_day"> 61 <option value="0">--</option> 62 {section name=day start=1 loop=32} 63 <option value="{$smarty.section.day.index}" {if $smarty.section.day.index==$START_DAY_SELECTED}selected="selected"{/if}>{$smarty.section.day.index}</option> 64 {/section} 65 </select> 66 <select id="start_month" name="start_month"> 67 {html_options options=$month_list selected=$START_MONTH_SELECTED} 68 </select> 69 <input id="start_year" name="start_year" type="text" size="4" maxlength="4" > 70 <input id="start_linked_date" name="start_linked_date" type="hidden" size="10" disabled="disabled"> 71 </li> 72 <li> 73 <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> 74 </li> 75 </ul> 76 <ul> 77 <li><label>{'End-Date'|@translate}</label></li> 78 <li> 79 <select id="end_day" name="end_day"> 80 <option value="0">--</option> 81 {section name=day start=1 loop=32} 82 <option value="{$smarty.section.day.index}" {if $smarty.section.day.index==$END_DAY_SELECTED}selected="selected"{/if}>{$smarty.section.day.index}</option> 83 {/section} 84 </select> 85 <select id="end_month" name="end_month"> 86 {html_options options=$month_list selected=$END_MONTH_SELECTED} 87 </select> 88 <input id="end_year" name="end_year" type="text" size="4" maxlength="4" > 89 <input id="end_linked_date" name="end_linked_date" type="hidden" size="10" disabled="disabled"> 90 </li> 91 <li> 92 <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> 93 </li> 94 </ul> 95 </fieldset> 96 <fieldset> 97 <legend>{'Search Options'|@translate}</legend> 98 <label>{'Search in Categories'|@translate} 99 <select class="categoryList" name="cat[]" multiple="multiple" > 100 {html_options options=$category_options selected=$category_options_selected} 101 </select> 102 </label> 103 <ul> 104 <li><label>{'Search in subcategories'|@translate}</label></li> 105 <li><label> 106 <input type="radio" name="subcats-included" value="1" checked="checked" />{'Yes'|@translate} 107 </label></li> 108 <li><label> 109 <input type="radio" name="subcats-included" value="0" />{'No'|@translate} 110 </label></li> 111 </ul> 112 </fieldset> 113 <p> 114 <input class="submit" type="submit" name="submit" value="{'Submit'|@translate}" /> 115 <input class="submit" type="reset" value="{'Reset'|@translate}" /> 116 </p> 117 </form> 118 <script type="text/javascript"> 119 <!-- 120 document.search.search_allwords.focus(); 121 //--> 122 </script> 140 </div> 123 141 </div> <!-- content -->
Note: See TracChangeset
for help on using the changeset viewer.