source: trunk/themes/default/template/search.tpl @ 14240

Last change on this file since 14240 was 14240, checked in by Zaphod, 12 years ago

feature 2588: template harmonization
All templates (tags, comments etc...) have now a "Home" link at the beginning of the page title (like index.tpl), instead of a home icon.

  • Property svn:eol-style set to LF
File size: 5.4 KB
Line 
1{* Example of resizeable *}
2{*
3{include file='include/resize.inc.tpl'}
4*}
5
6{* Example of datepicker *}
7{*
8{include file='include/datepicker.inc.tpl'}
9
10{footer_script}{literal}
11  pwg_initialization_datepicker("#start_day", "#start_month", "#start_year", "#start_linked_date", null, null, "#end_linked_date");
12  pwg_initialization_datepicker("#end_day", "#end_month", "#end_year", "#end_linked_date", null, "#start_linked_date", null);
13 jQuery().ready(function(){ $(".date_today").hide(); });
14{/literal}{/footer_script}
15*}
16
17{if isset($MENUBAR)}{$MENUBAR}{/if}
18<div id="content" class="content{if isset($MENUBAR)} contentWithMenu{/if}">
19
20        <div class="titrePage">
21                <ul class="categoryActions">
22                        {combine_script id='core.scripts' load='async' path='themes/default/js/scripts.js'}
23                        <li><a href="{$U_HELP}" onclick="popuphelp(this.href); return false;" title="{'Help'|@translate}" class="pwg-state-default pwg-button">
24                                <span class="pwg-icon pwg-icon-help">&nbsp;</span><span class="pwg-button-text">{'Help'|@translate}</span>
25                        </a></li>
26                </ul>
27                <h2><a href="{$U_HOME}">{'Home'|@translate}</a>{$LEVEL_SEPARATOR}{'Search'|@translate}</h2>
28        </div>
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 -->
Note: See TracBrowser for help on using the repository browser.