source: extensions/gally/gally-default/template/search.tpl @ 16016

Last change on this file since 16016 was 16016, checked in by grum, 12 years ago

feature:2664- compatibility with Piwigo 2.4

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