[18811] | 1 | {php} global $Slim; $this->assign( 'Slim', $Slim );{/php} |
---|
| 2 | |
---|
| 3 | {if ($Slim.style_slim)==1} |
---|
| 4 | {php} |
---|
| 5 | header("Refresh: 2; index.php" ); |
---|
| 6 | {/php} |
---|
| 7 | |
---|
| 8 | <div> |
---|
| 9 | <h3>{'You are not authorized to access the requested page'|@translate}</h3> |
---|
| 10 | </div> |
---|
| 11 | {else} |
---|
| 12 | |
---|
| 13 | {$MENUBAR} |
---|
| 14 | <div id="content" class="content{if isset($MENUBAR)} contentWithMenu{/if}"> |
---|
| 15 | <div id="infoBlock"> |
---|
| 16 | <div class="titrePage"> |
---|
| 17 | <ul class="categoryActions"> |
---|
| 18 | {combine_script id='core.scripts' load='async' path='themes/default/js/scripts.js'} |
---|
| 19 | <li><a href="{$U_HELP}" onclick="popuphelp(this.href); return false;" title="{'Help'|@translate}" class="pwg-state-default pwg-button"> |
---|
| 20 | <span class="pwg-icon pwg-icon-help"> </span><span class="pwg-button-text">{'Help'|@translate}</span> |
---|
| 21 | </a></li> |
---|
| 22 | </ul> |
---|
| 23 | <h2><a href="{$U_HOME}">{'Home'|@translate}</a>{$LEVEL_SEPARATOR}{'Search'|@translate}</h2> |
---|
| 24 | </div> |
---|
| 25 | </div> |
---|
| 26 | {include file='infos_errors.tpl'} |
---|
| 27 | |
---|
| 28 | |
---|
| 29 | <form class="filter" method="post" name="search" action="{$F_SEARCH_ACTION}"> |
---|
| 30 | <fieldset> |
---|
| 31 | <legend>{'Filter'|@translate}</legend> |
---|
| 32 | <label>{'Search for words'|@translate} |
---|
| 33 | <input type="text" style="width: 300px" name="search_allwords" size="30"> |
---|
| 34 | </label> |
---|
| 35 | <ul> |
---|
| 36 | <li><label> |
---|
| 37 | <input type="radio" name="mode" value="AND" checked="checked">{'Search for all terms'|@translate} |
---|
| 38 | </label></li> |
---|
| 39 | <li><label> |
---|
| 40 | <input type="radio" name="mode" value="OR">{'Search for any term'|@translate} |
---|
| 41 | </label></li> |
---|
| 42 | </ul> |
---|
| 43 | <label>{'Search for Author'|@translate} |
---|
| 44 | <input type="text" style="width: 300px" name="search_author" size="30"> |
---|
| 45 | </label> |
---|
| 46 | </fieldset> |
---|
| 47 | |
---|
| 48 | {if isset($TAG_SELECTION)} |
---|
| 49 | <fieldset> |
---|
| 50 | <legend>{'Search tags'|@translate}</legend> |
---|
| 51 | {$TAG_SELECTION} |
---|
| 52 | <label><span><input type="radio" name="tag_mode" value="AND" checked="checked"> {'All tags'|@translate}</span></label> |
---|
| 53 | <label><span><input type="radio" name="tag_mode" value="OR"> {'Any tag'|@translate}</span></label> |
---|
| 54 | </fieldset> |
---|
| 55 | {/if} |
---|
| 56 | |
---|
| 57 | <fieldset> |
---|
| 58 | <legend>{'Search by date'|@translate}</legend> |
---|
| 59 | <ul> |
---|
| 60 | <li><label>{'Kind of date'|@translate}</label></li> |
---|
| 61 | <li><label> |
---|
| 62 | <input type="radio" name="date_type" value="date_creation" checked="checked">{'Creation date'|@translate} |
---|
| 63 | </label></li> |
---|
| 64 | <li><label> |
---|
| 65 | <input type="radio" name="date_type" value="date_available">{'Post date'|@translate} |
---|
| 66 | </label></li> |
---|
| 67 | </ul> |
---|
| 68 | <ul> |
---|
| 69 | <li><label>{'Date'|@translate}</label></li> |
---|
| 70 | <li> |
---|
| 71 | <select id="start_day" name="start_day"> |
---|
| 72 | <option value="0">--</option> |
---|
| 73 | {section name=day start=1 loop=32} |
---|
| 74 | <option value="{$smarty.section.day.index}" {if $smarty.section.day.index==$START_DAY_SELECTED}selected="selected"{/if}>{$smarty.section.day.index}</option> |
---|
| 75 | {/section} |
---|
| 76 | </select> |
---|
| 77 | <select id="start_month" name="start_month"> |
---|
| 78 | {html_options options=$month_list selected=$START_MONTH_SELECTED} |
---|
| 79 | </select> |
---|
| 80 | <input id="start_year" name="start_year" type="text" size="4" maxlength="4" > |
---|
| 81 | <input id="start_linked_date" name="start_linked_date" type="hidden" size="10" disabled="disabled"> |
---|
| 82 | </li> |
---|
| 83 | <li> |
---|
| 84 | <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> |
---|
| 85 | </li> |
---|
| 86 | </ul> |
---|
| 87 | <ul> |
---|
| 88 | <li><label>{'End-Date'|@translate}</label></li> |
---|
| 89 | <li> |
---|
| 90 | <select id="end_day" name="end_day"> |
---|
| 91 | <option value="0">--</option> |
---|
| 92 | {section name=day start=1 loop=32} |
---|
| 93 | <option value="{$smarty.section.day.index}" {if $smarty.section.day.index==$END_DAY_SELECTED}selected="selected"{/if}>{$smarty.section.day.index}</option> |
---|
| 94 | {/section} |
---|
| 95 | </select> |
---|
| 96 | <select id="end_month" name="end_month"> |
---|
| 97 | {html_options options=$month_list selected=$END_MONTH_SELECTED} |
---|
| 98 | </select> |
---|
| 99 | <input id="end_year" name="end_year" type="text" size="4" maxlength="4" > |
---|
| 100 | <input id="end_linked_date" name="end_linked_date" type="hidden" size="10" disabled="disabled"> |
---|
| 101 | </li> |
---|
| 102 | <li> |
---|
| 103 | <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> |
---|
| 104 | </li> |
---|
| 105 | </ul> |
---|
| 106 | </fieldset> |
---|
| 107 | |
---|
| 108 | <fieldset> |
---|
| 109 | <legend>{'Search in albums'|@translate}</legend> |
---|
| 110 | <label>{'Albums'|@translate} |
---|
| 111 | <select class="categoryList" name="cat[]" multiple="multiple" > |
---|
| 112 | {html_options options=$category_options selected=$category_options_selected} |
---|
| 113 | </select> |
---|
| 114 | </label> |
---|
| 115 | <ul> |
---|
| 116 | <li><label>{'Search in sub-albums'|@translate}</label></li> |
---|
| 117 | <li><label> |
---|
| 118 | <input type="radio" name="subcats-included" value="1" checked="checked">{'Yes'|@translate} |
---|
| 119 | </label></li> |
---|
| 120 | <li><label> |
---|
| 121 | <input type="radio" name="subcats-included" value="0">{'No'|@translate} |
---|
| 122 | </label></li> |
---|
| 123 | </ul> |
---|
| 124 | </fieldset> |
---|
| 125 | <p> |
---|
| 126 | <input class="submit" type="submit" name="submit" value="{'Submit'|@translate}"> |
---|
| 127 | <input class="submit" type="reset" value="{'Reset'|@translate}"> |
---|
| 128 | </p> |
---|
| 129 | </form> |
---|
| 130 | <script type="text/javascript"><!-- |
---|
| 131 | document.search.search_allwords.focus(); |
---|
| 132 | //--></script> |
---|
| 133 | |
---|
| 134 | </div> <!-- content --> |
---|
| 135 | {/if} |
---|