[29449] | 1 | <div class="titrePage"> |
---|
| 2 | <div class="browsePath"> |
---|
| 3 | <h2> |
---|
| 4 | <a href="{$U_HOME}">{'Home'|@translate}</a> |
---|
| 5 | {$LEVEL_SEPARATOR}{'Search'|@translate} |
---|
| 6 | </h2> |
---|
| 7 | </div> |
---|
| 8 | <div class="categoryActionsContainer"> |
---|
| 9 | <ul class="categoryActions"> |
---|
| 10 | <li><a href="{$U_HELP}" onclick="popuphelp(this.href); return false;" title="{'Help'|@translate}" class="pwg-state-default pwg-button"> |
---|
| 11 | <span class="pwg-icon pwg-icon-help"> </span><span class="pwg-button-text">{'Help'|@translate}</span> |
---|
| 12 | </a></li> |
---|
| 13 | </ul> |
---|
| 14 | </div> |
---|
| 15 | </div> |
---|
| 16 | <div id="content"> |
---|
[29453] | 17 | {if !$stripped_responsive.menuOnRight} |
---|
| 18 | {if isset($MENUBAR)}{$MENUBAR}{/if} |
---|
| 19 | {/if} |
---|
[29449] | 20 | <div id="content_cell"> |
---|
| 21 | <div class="content_block"> |
---|
[31577] | 22 | |
---|
| 23 | {* copied and modified from themes/default/template.search.tpl, starts here *} |
---|
| 24 | {combine_script id='core.scripts' load='async' path='themes/default/js/scripts.js'} |
---|
| 25 | {combine_script id='jquery.selectize' load='footer' path='themes/default/js/plugins/selectize.min.js'} |
---|
| 26 | |
---|
| 27 | {combine_css id='jquery.selectize' path="themes/default/js/plugins/selectize.{$themeconf.colorscheme}.css"} |
---|
| 28 | |
---|
| 29 | {footer_script} |
---|
| 30 | jQuery(document).ready(function() { |
---|
| 31 | jQuery("#authors, #tags, #categories").each(function() { |
---|
| 32 | jQuery(this).selectize({ |
---|
| 33 | plugins: ['remove_button'], |
---|
| 34 | maxOptions:jQuery(this).find("option").length |
---|
| 35 | }); |
---|
| 36 | }) |
---|
| 37 | }); |
---|
| 38 | {/footer_script} |
---|
| 39 | |
---|
| 40 | {include file='infos_errors.tpl'} |
---|
| 41 | |
---|
| 42 | <form class="filter" method="post" name="search" action="{$F_SEARCH_ACTION}"> |
---|
| 43 | <fieldset> |
---|
| 44 | <legend>{'Search for words'|@translate}</legend> |
---|
| 45 | <p> |
---|
| 46 | <input type="text" name="search_allwords"> |
---|
| 47 | <br> |
---|
| 48 | <label><input type="radio" name="mode" value="AND" checked="checked"> {'Search for all terms'|@translate}</label> |
---|
| 49 | <label><input type="radio" name="mode" value="OR"> {'Search for any term'|@translate}</label> |
---|
| 50 | </p> |
---|
| 51 | |
---|
| 52 | <p> |
---|
| 53 | <strong>{'Apply on properties'|translate}</strong><br> |
---|
| 54 | <label><input type="checkbox" name="fields[]" value="name" checked="checked"> {'Photo title'|translate}</label> |
---|
| 55 | <label><input type="checkbox" name="fields[]" value="comment" checked="checked"> {'Photo description'|translate}</label> |
---|
| 56 | <label><input type="checkbox" name="fields[]" value="file" checked="checked"> {'File name'|translate}</label> |
---|
| 57 | {if isset($TAGS)} |
---|
| 58 | <label><input type="checkbox" name="search_in_tags" value="tags"> {'Tags'|translate}</label> |
---|
| 59 | {/if} |
---|
| 60 | </p> |
---|
| 61 | |
---|
| 62 | </fieldset> |
---|
| 63 | |
---|
| 64 | {if count($AUTHORS)>=1} |
---|
| 65 | <fieldset> |
---|
| 66 | <legend>{'Search for Author'|@translate}</legend> |
---|
| 67 | <p> |
---|
| 68 | <select id="authors" placeholder="{'Type in a search term'|translate}" name="authors[]" multiple> |
---|
| 69 | {foreach from=$AUTHORS item=author} |
---|
| 70 | <option value="{$author.author|strip_tags:false|escape:html}">{$author.author|strip_tags:false} ({$author.counter|translate_dec:'%d photo':'%d photos'})</option> |
---|
| 71 | {/foreach} |
---|
| 72 | </select> |
---|
| 73 | </p> |
---|
| 74 | </fieldset> |
---|
| 75 | {/if} |
---|
| 76 | |
---|
| 77 | {if isset($TAGS)} |
---|
| 78 | <fieldset> |
---|
| 79 | <legend>{'Search tags'|@translate}</legend> |
---|
| 80 | <p> |
---|
| 81 | <select id="tags" placeholder="{'Type in a search term'|translate}" name="tags[]" multiple> |
---|
| 82 | {foreach from=$TAGS item=tag} |
---|
| 83 | <option value="{$tag.id}">{$tag.name} ({$tag.counter|translate_dec:'%d photo':'%d photos'})</option> |
---|
| 84 | {/foreach} |
---|
| 85 | </select> |
---|
| 86 | <label><span><input type="radio" name="tag_mode" value="AND" checked="checked"> {'All tags'|@translate}</span></label> |
---|
| 87 | <label><span><input type="radio" name="tag_mode" value="OR"> {'Any tag'|@translate}</span></label> |
---|
| 88 | </p> |
---|
| 89 | </fieldset> |
---|
| 90 | {/if} |
---|
| 91 | |
---|
| 92 | <fieldset> |
---|
| 93 | <legend>{'Search by date'|@translate}</legend> |
---|
| 94 | <ul> |
---|
| 95 | <li><label>{'Kind of date'|@translate}</label></li> |
---|
| 96 | <li><label> |
---|
| 97 | <input type="radio" name="date_type" value="date_creation" checked="checked"> {'Creation date'|@translate} |
---|
| 98 | </label></li> |
---|
| 99 | <li><label> |
---|
| 100 | <input type="radio" name="date_type" value="date_available"> {'Post date'|@translate} |
---|
| 101 | </label></li> |
---|
| 102 | </ul> |
---|
| 103 | <ul> |
---|
| 104 | <li><label>{'Date'|@translate}</label></li> |
---|
| 105 | <li> |
---|
| 106 | <select id="start_day" name="start_day"> |
---|
| 107 | <option value="0">--</option> |
---|
| 108 | {section name=day start=1 loop=32} |
---|
| 109 | <option value="{$smarty.section.day.index}" {if $smarty.section.day.index==$START_DAY_SELECTED}selected="selected"{/if}>{$smarty.section.day.index}</option> |
---|
| 110 | {/section} |
---|
| 111 | </select> |
---|
| 112 | <select id="start_month" name="start_month"> |
---|
| 113 | {html_options options=$month_list selected=$START_MONTH_SELECTED} |
---|
| 114 | </select> |
---|
| 115 | <input id="start_year" name="start_year" type="text" size="4" maxlength="4" > |
---|
| 116 | <input id="start_linked_date" name="start_linked_date" type="hidden" size="10" disabled="disabled"> |
---|
| 117 | </li> |
---|
| 118 | <li> |
---|
| 119 | <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> |
---|
| 120 | </li> |
---|
| 121 | </ul> |
---|
| 122 | <ul> |
---|
| 123 | <li><label>{'End-Date'|@translate}</label></li> |
---|
| 124 | <li> |
---|
| 125 | <select id="end_day" name="end_day"> |
---|
| 126 | <option value="0">--</option> |
---|
| 127 | {section name=day start=1 loop=32} |
---|
| 128 | <option value="{$smarty.section.day.index}" {if $smarty.section.day.index==$END_DAY_SELECTED}selected="selected"{/if}>{$smarty.section.day.index}</option> |
---|
| 129 | {/section} |
---|
| 130 | </select> |
---|
| 131 | <select id="end_month" name="end_month"> |
---|
| 132 | {html_options options=$month_list selected=$END_MONTH_SELECTED} |
---|
| 133 | </select> |
---|
| 134 | <input id="end_year" name="end_year" type="text" size="4" maxlength="4" > |
---|
| 135 | <input id="end_linked_date" name="end_linked_date" type="hidden" size="10" disabled="disabled"> |
---|
| 136 | </li> |
---|
| 137 | <li> |
---|
| 138 | <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> |
---|
| 139 | </li> |
---|
| 140 | </ul> |
---|
| 141 | </fieldset> |
---|
| 142 | |
---|
| 143 | <fieldset> |
---|
| 144 | <legend>{'Search in albums'|@translate}</legend> |
---|
| 145 | <p> |
---|
| 146 | <select id="categories" name="cat[]" multiple> |
---|
| 147 | {html_options options=$category_options selected=$category_options_selected} |
---|
| 148 | </select> |
---|
| 149 | <label><input type="checkbox" name="subcats-included" value="1" checked="checked"> {'Search in sub-albums'|@translate}</label> |
---|
| 150 | </p> |
---|
| 151 | </fieldset> |
---|
| 152 | <p> |
---|
| 153 | <input type="submit" name="submit" value="{'Submit'|@translate}"> |
---|
| 154 | <input type="reset" value="{'Reset'|@translate}"> |
---|
| 155 | </p> |
---|
| 156 | </form> |
---|
| 157 | |
---|
| 158 | <script type="text/javascript"><!-- |
---|
| 159 | document.search.search_allwords.focus(); |
---|
| 160 | //--></script> |
---|
| 161 | |
---|
| 162 | {* copied and modified from themes/default/template.search.tpl, stops here *} |
---|
| 163 | |
---|
| 164 | |
---|
[29449] | 165 | </div> |
---|
| 166 | </div> |
---|
[29453] | 167 | {if $stripped_responsive.menuOnRight} |
---|
| 168 | {if isset($MENUBAR)}{$MENUBAR}{/if} |
---|
| 169 | {/if} |
---|
[29910] | 170 | <div style="clear: both;"></div> |
---|
[29449] | 171 | </div> <!-- content --> |
---|