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

Last change on this file since 12878 was 12878, checked in by rvelices, 12 years ago

bug 2553 hide menubar/register on indentification page if gallery is locked or guest_access is false

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