source: trunk/template/default/search.tpl @ 5095

Last change on this file since 5095 was 5095, checked in by plg, 14 years ago

feature 1494: move all *.tpl files from template/yoga to the new
template/default (from which yoga derives)

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