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

Last change on this file since 8528 was 6109, checked in by grum, 14 years ago

Gally's themes compatibles with piwigo 2.1

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