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

Last change on this file since 8432 was 8076, checked in by rvelices, 14 years ago

css sprites (still ongoing)

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