source: extensions/simple_themes/simple/template/search.tpl @ 13551

Last change on this file since 13551 was 13551, checked in by plg, 12 years ago

import theme Simple version 2.4

compatibility with piwigo 2.2:

  • update template, language strings + misc things
  • use rating and core.scripts from default theme
  • cleanup useless javascript stuff
  • use new combined_css feature - thanks to P@t
  • replace known_script with combine_script
File size: 4.8 KB
Line 
1<div class="titrePage">
2  <ul class="categoryActions">
3    <li><a href="{$U_HOME}" title="{'Home'|@translate}" rel="home">{'Home'|@translate}</a></li>
4  </ul>
5  <h2>{'Search'|@translate}</h2>
6</div>
7<div id="content">
8  {if isset($errors) }
9  <div class="errors">
10    <ul>
11      {foreach from=$errors item=error}
12      <li>{$error}</li>
13      {/foreach}
14    </ul>
15  </div>
16  {/if}
17  <form class="filter" method="post" name="search" action="{$F_SEARCH_ACTION}">
18  <fieldset>
19    <legend>{'Filter'|@translate}</legend>
20    <label>{'Search for words'|@translate}
21      <input type="text" style="width: 300px" name="search_allwords" size="30"  />
22    </label>
23    <ul>
24      <li><label>
25        <input type="radio" name="mode" value="AND" checked="checked" />{'Search for all terms'|@translate}
26      </label></li>
27      <li><label>
28        <input type="radio" name="mode" value="OR" />{'Search for any terms'|@translate}
29      </label></li>
30    </ul>
31    <label>{'Search for Author'|@translate}
32      <input type="text" style="width: 300px" name="search_author" size="30"  />
33    </label>
34  </fieldset>
35  {if isset($TAG_SELECTION)}
36  <fieldset>
37    <legend>{'Search tags'|@translate}</legend>
38    {$TAG_SELECTION}
39    <label><span><input type="radio" name="tag_mode" value="AND" checked="checked" /> {'All tags'|@translate}</span></label>
40    <label><span><input type="radio" name="tag_mode" value="OR" /> {'Any tag'|@translate}</span></label>
41  </fieldset>
42  {/if}
43  <fieldset>
44    <legend>{'Search by Date'|@translate}</legend>
45    <ul>
46      <li><label>{'Kind of date'|@translate}</label></li>
47      <li><label>
48        <input type="radio" name="date_type" value="date_creation" checked="checked" />{'Creation date'|@translate}
49      </label></li>
50      <li><label>
51        <input type="radio" name="date_type" value="date_available" />{'Post date'|@translate}
52      </label></li>
53    </ul>
54    <ul>
55    <li><label>{'Date'|@translate}</label></li>
56      <li>
57      <select id="start_day" name="start_day">
58          <option value="0">--</option>
59          {section name=day start=1 loop=32}
60          <option value="{$smarty.section.day.index}" {if $smarty.section.day.index==$START_DAY_SELECTED}selected="selected"{/if}>{$smarty.section.day.index}</option>
61          {/section}
62        </select>
63      <select id="start_month" name="start_month">
64          {html_options options=$month_list selected=$START_MONTH_SELECTED}
65        </select>
66      <input id="start_year" name="start_year" type="text" size="4" maxlength="4" >
67      <input id="start_linked_date" name="start_linked_date" type="hidden" size="10" disabled="disabled">
68    </li>
69    <li>
70      <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>
71      </li>
72    </ul>
73    <ul>
74    <li><label>{'End-Date'|@translate}</label></li>
75      <li>
76      <select id="end_day" name="end_day">
77            <option value="0">--</option>
78          {section name=day start=1 loop=32}
79            <option value="{$smarty.section.day.index}" {if $smarty.section.day.index==$END_DAY_SELECTED}selected="selected"{/if}>{$smarty.section.day.index}</option>
80          {/section}
81        </select>
82      <select id="end_month" name="end_month">
83          {html_options options=$month_list selected=$END_MONTH_SELECTED}
84        </select>
85      <input id="end_year" name="end_year" type="text" size="4" maxlength="4" >
86      <input id="end_linked_date" name="end_linked_date" type="hidden" size="10" disabled="disabled">
87    </li>
88    <li>
89      <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>
90      </li>
91    </ul>
92  </fieldset>
93  <fieldset>
94    <legend>{'Search Options'|@translate}</legend>
95  <label>{'Search in albums'|@translate}
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 sub-albums'|@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  <script type="text/javascript"><!--
116  document.search.search_allwords.focus();
117  //--></script>
118</div> <!-- content -->
Note: See TracBrowser for help on using the repository browser.