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

Last change on this file since 28497 was 28497, checked in by mistic100, 10 years ago

feature 3080 : simpler date inputs (one input + fontello + picker selects)

  • Property svn:eol-style set to LF
File size: 5.0 KB
Line 
1{* Example of resizeable *}
2{*
3{include file='include/resize.inc.tpl'}
4*}
5
6{if isset($MENUBAR)}{$MENUBAR}{/if}
7<div id="content" class="content{if isset($MENUBAR)} contentWithMenu{/if}">
8
9        <div class="titrePage">
10                <ul class="categoryActions">
11                        {combine_script id='core.scripts' load='async' path='themes/default/js/scripts.js'}
12                        <li><a href="{$U_HELP}" onclick="popuphelp(this.href); return false;" title="{'Help'|@translate}" class="pwg-state-default pwg-button">
13                                <span class="pwg-icon pwg-icon-help"></span><span class="pwg-button-text">{'Help'|@translate}</span>
14                        </a></li>
15                </ul>
16                <h2><a href="{$U_HOME}">{'Home'|@translate}</a>{$LEVEL_SEPARATOR}{'Search'|@translate}</h2>
17        </div>
18
19{include file='infos_errors.tpl'}
20
21<form class="filter" method="post" name="search" action="{$F_SEARCH_ACTION}">
22<fieldset>
23  <legend>{'Filter'|@translate}</legend>
24  <label>{'Search for words'|@translate}
25    <input type="text" name="search_allwords" size="35">
26  </label>
27  <ul>
28    <li><label>
29      <input type="radio" name="mode" value="AND" checked="checked">{'Search for all terms'|@translate}
30    </label></li>
31    <li><label>
32      <input type="radio" name="mode" value="OR">{'Search for any term'|@translate}
33    </label></li>
34  </ul>
35  <label>{'Search for Author'|@translate}
36    <input type="text" name="search_author" size="35">
37  </label>
38</fieldset>
39
40{if isset($TAG_SELECTION)}
41<fieldset>
42  <legend>{'Search tags'|@translate}</legend>
43  {$TAG_SELECTION}
44  <label><span><input type="radio" name="tag_mode" value="AND" checked="checked"> {'All tags'|@translate}</span></label>
45  <label><span><input type="radio" name="tag_mode" value="OR"> {'Any tag'|@translate}</span></label>
46</fieldset>
47{/if}
48
49<fieldset>
50  <legend>{'Search by date'|@translate}</legend>
51  <ul>
52    <li><label>{'Kind of date'|@translate}</label></li>
53    <li><label>
54      <input type="radio" name="date_type" value="date_creation" checked="checked">{'Creation date'|@translate}
55    </label></li>
56    <li><label>
57      <input type="radio" name="date_type" value="date_available">{'Post date'|@translate}
58    </label></li>
59  </ul>
60  <ul>
61    <li><label>{'Date'|@translate}</label></li>
62    <li>
63      <select id="start_day" name="start_day">
64          <option value="0">--</option>
65        {section name=day start=1 loop=32}
66          <option value="{$smarty.section.day.index}" {if $smarty.section.day.index==$START_DAY_SELECTED}selected="selected"{/if}>{$smarty.section.day.index}</option>
67        {/section}
68      </select>
69      <select id="start_month" name="start_month">
70        {html_options options=$month_list selected=$START_MONTH_SELECTED}
71      </select>
72      <input id="start_year" name="start_year" type="text" size="4" maxlength="4" >
73      <input id="start_linked_date" name="start_linked_date" type="hidden" size="10" disabled="disabled">
74    </li>
75    <li>
76      <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>
77    </li>
78  </ul>
79  <ul>
80    <li><label>{'End-Date'|@translate}</label></li>
81    <li>
82      <select id="end_day" name="end_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==$END_DAY_SELECTED}selected="selected"{/if}>{$smarty.section.day.index}</option>
86        {/section}
87      </select>
88      <select id="end_month" name="end_month">
89        {html_options options=$month_list selected=$END_MONTH_SELECTED}
90      </select>
91      <input id="end_year" name="end_year" type="text" size="4" maxlength="4" >
92      <input id="end_linked_date" name="end_linked_date" type="hidden" size="10" disabled="disabled">
93    </li>
94    <li>
95      <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>
96    </li>
97  </ul>
98</fieldset>
99
100<fieldset>
101  <legend>{'Search in albums'|@translate}</legend>
102  <label>{'Albums'|@translate}
103    <select class="categoryList" name="cat[]" multiple="multiple" size="15">
104      {html_options options=$category_options selected=$category_options_selected}
105    </select>
106  </label>
107  <ul>
108    <li><label>{'Search in sub-albums'|@translate}</label></li>
109    <li><label>
110      <input type="radio" name="subcats-included" value="1" checked="checked">{'Yes'|@translate}
111    </label></li>
112    <li><label>
113      <input type="radio" name="subcats-included" value="0">{'No'|@translate}
114    </label></li>
115  </ul>
116</fieldset>
117<p>
118  <input class="submit" type="submit" name="submit" value="{'Submit'|@translate}">
119  <input class="submit" type="reset" value="{'Reset'|@translate}">
120</p>
121</form>
122
123<script type="text/javascript"><!--
124document.search.search_allwords.focus();
125//--></script>
126
127</div> <!-- content -->
Note: See TracBrowser for help on using the repository browser.