source: extensions/Slim/template/search.tpl @ 28556

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