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

Last change on this file since 10824 was 10824, checked in by mistic100, 13 years ago

restore HOME links, change parameter name for remove menu on certain page

  • Property svn:eol-style set to LF
File size: 5.7 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">
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      <li><a href="{$U_HOME}" title="{'Home'|@translate}" class="pwg-state-default pwg-button">
27        <span class="pwg-icon pwg-icon-home">&nbsp;</span><span class="pwg-button-text">{'Home'|@translate}</span>
28      </a></li>
29                </ul>
30                <h2>{'Search'|@translate}</h2>
31        </div>
32
33{if isset($errors) }
34<div class="errors">
35  <ul>
36    {foreach from=$errors item=error}
37    <li>{$error}</li>
38    {/foreach}
39  </ul>
40</div>
41{/if}
42
43<form class="filter" method="post" name="search" action="{$F_SEARCH_ACTION}">
44<fieldset>
45  <legend>{'Filter'|@translate}</legend>
46  <label>{'Search for words'|@translate}
47    <input type="text" style="width: 300px" name="search_allwords" size="30">
48  </label>
49  <ul>
50    <li><label>
51      <input type="radio" name="mode" value="AND" checked="checked">{'Search for all terms'|@translate}
52    </label></li>
53    <li><label>
54      <input type="radio" name="mode" value="OR">{'Search for any terms'|@translate}
55    </label></li>
56  </ul>
57  <label>{'Search for Author'|@translate}
58    <input type="text" style="width: 300px" name="search_author" size="30">
59  </label>
60</fieldset>
61
62{if isset($TAG_SELECTION)}
63<fieldset>
64  <legend>{'Search tags'|@translate}</legend>
65  {$TAG_SELECTION}
66  <label><span><input type="radio" name="tag_mode" value="AND" checked="checked"> {'All tags'|@translate}</span></label>
67  <label><span><input type="radio" name="tag_mode" value="OR"> {'Any tag'|@translate}</span></label>
68</fieldset>
69{/if}
70
71<fieldset>
72  <legend>{'Search by Date'|@translate}</legend>
73  <ul>
74    <li><label>{'Kind of date'|@translate}</label></li>
75    <li><label>
76      <input type="radio" name="date_type" value="date_creation" checked="checked">{'Creation date'|@translate}
77    </label></li>
78    <li><label>
79      <input type="radio" name="date_type" value="date_available">{'Post date'|@translate}
80    </label></li>
81  </ul>
82  <ul>
83    <li><label>{'Date'|@translate}</label></li>
84    <li>
85      <select id="start_day" name="start_day">
86          <option value="0">--</option>
87        {section name=day start=1 loop=32}
88          <option value="{$smarty.section.day.index}" {if $smarty.section.day.index==$START_DAY_SELECTED}selected="selected"{/if}>{$smarty.section.day.index}</option>
89        {/section}
90      </select>
91      <select id="start_month" name="start_month">
92        {html_options options=$month_list selected=$START_MONTH_SELECTED}
93      </select>
94      <input id="start_year" name="start_year" type="text" size="4" maxlength="4" >
95      <input id="start_linked_date" name="start_linked_date" type="hidden" size="10" disabled="disabled">
96    </li>
97    <li>
98      <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>
99    </li>
100  </ul>
101  <ul>
102    <li><label>{'End-Date'|@translate}</label></li>
103    <li>
104      <select id="end_day" name="end_day">
105          <option value="0">--</option>
106        {section name=day start=1 loop=32}
107          <option value="{$smarty.section.day.index}" {if $smarty.section.day.index==$END_DAY_SELECTED}selected="selected"{/if}>{$smarty.section.day.index}</option>
108        {/section}
109      </select>
110      <select id="end_month" name="end_month">
111        {html_options options=$month_list selected=$END_MONTH_SELECTED}
112      </select>
113      <input id="end_year" name="end_year" type="text" size="4" maxlength="4" >
114      <input id="end_linked_date" name="end_linked_date" type="hidden" size="10" disabled="disabled">
115    </li>
116    <li>
117      <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>
118    </li>
119  </ul>
120</fieldset>
121
122<fieldset>
123  <legend>{'Search Options'|@translate}</legend>
124  <label>{'Search in albums'|@translate}
125    <select class="categoryList" name="cat[]" multiple="multiple" >
126      {html_options options=$category_options selected=$category_options_selected}
127    </select>
128  </label>
129  <ul>
130    <li><label>{'Search in sub-albums'|@translate}</label></li>
131    <li><label>
132      <input type="radio" name="subcats-included" value="1" checked="checked">{'Yes'|@translate}
133    </label></li>
134    <li><label>
135      <input type="radio" name="subcats-included" value="0">{'No'|@translate}
136    </label></li>
137  </ul>
138</fieldset>
139<p>
140  <input class="submit" type="submit" name="submit" value="{'Submit'|@translate}">
141  <input class="submit" type="reset" value="{'Reset'|@translate}">
142</p>
143</form>
144
145<script type="text/javascript"><!--
146document.search.search_allwords.focus();
147//--></script>
148
149</div> <!-- content -->
Note: See TracBrowser for help on using the repository browser.