source: extensions/simple_themes/simple/template/search.tpl @ 13556

Last change on this file since 13556 was 13556, checked in by plg, 12 years ago

import theme Simple version 2.5.1

  • refactor code for #titrePage and add the link to switch the menu
  • fixes for comments page
  • fixes for pages where the $MENUBAR is present
File size: 4.8 KB
Line 
1{assign var='pagetitle' value='Search'}
2{include file='pagetitle.tpl'}
3
4<div id="content">
5  {if isset($MENUBAR)}{$MENUBAR}{/if}
6  {if isset($errors) }
7  <div class="errors">
8    <ul>
9      {foreach from=$errors item=error}
10      <li>{$error}</li>
11      {/foreach}
12    </ul>
13  </div>
14  {/if}
15  <form class="filter" method="post" name="search" action="{$F_SEARCH_ACTION}">
16  <fieldset>
17    <legend>{'Filter'|@translate}</legend>
18    <label>{'Search for words'|@translate}
19      <input type="text" style="width: 300px" name="search_allwords" size="30"  />
20    </label>
21    <ul>
22      <li><label>
23        <input type="radio" name="mode" value="AND" checked="checked" />{'Search for all terms'|@translate}
24      </label></li>
25      <li><label>
26        <input type="radio" name="mode" value="OR" />{'Search for any terms'|@translate}
27      </label></li>
28    </ul>
29    <label>{'Search for Author'|@translate}
30      <input type="text" style="width: 300px" name="search_author" size="30"  />
31    </label>
32  </fieldset>
33  {if isset($TAG_SELECTION)}
34  <fieldset>
35    <legend>{'Search tags'|@translate}</legend>
36    {$TAG_SELECTION}
37    <label><span><input type="radio" name="tag_mode" value="AND" checked="checked" /> {'All tags'|@translate}</span></label>
38    <label><span><input type="radio" name="tag_mode" value="OR" /> {'Any tag'|@translate}</span></label>
39  </fieldset>
40  {/if}
41  <fieldset>
42    <legend>{'Search by Date'|@translate}</legend>
43    <ul>
44      <li><label>{'Kind of date'|@translate}</label></li>
45      <li><label>
46        <input type="radio" name="date_type" value="date_creation" checked="checked" />{'Creation date'|@translate}
47      </label></li>
48      <li><label>
49        <input type="radio" name="date_type" value="date_available" />{'Post date'|@translate}
50      </label></li>
51    </ul>
52    <ul>
53    <li><label>{'Date'|@translate}</label></li>
54      <li>
55      <select id="start_day" name="start_day">
56          <option value="0">--</option>
57          {section name=day start=1 loop=32}
58          <option value="{$smarty.section.day.index}" {if $smarty.section.day.index==$START_DAY_SELECTED}selected="selected"{/if}>{$smarty.section.day.index}</option>
59          {/section}
60        </select>
61      <select id="start_month" name="start_month">
62          {html_options options=$month_list selected=$START_MONTH_SELECTED}
63        </select>
64      <input id="start_year" name="start_year" type="text" size="4" maxlength="4" >
65      <input id="start_linked_date" name="start_linked_date" type="hidden" size="10" disabled="disabled">
66    </li>
67    <li>
68      <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>
69      </li>
70    </ul>
71    <ul>
72    <li><label>{'End-Date'|@translate}</label></li>
73      <li>
74      <select id="end_day" name="end_day">
75            <option value="0">--</option>
76          {section name=day start=1 loop=32}
77            <option value="{$smarty.section.day.index}" {if $smarty.section.day.index==$END_DAY_SELECTED}selected="selected"{/if}>{$smarty.section.day.index}</option>
78          {/section}
79        </select>
80      <select id="end_month" name="end_month">
81          {html_options options=$month_list selected=$END_MONTH_SELECTED}
82        </select>
83      <input id="end_year" name="end_year" type="text" size="4" maxlength="4" >
84      <input id="end_linked_date" name="end_linked_date" type="hidden" size="10" disabled="disabled">
85    </li>
86    <li>
87      <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>
88      </li>
89    </ul>
90  </fieldset>
91  <fieldset>
92    <legend>{'Search Options'|@translate}</legend>
93  <label>{'Search in albums'|@translate}
94      <select class="categoryList" name="cat[]" multiple="multiple" >
95        {html_options options=$category_options selected=$category_options_selected}
96      </select>
97    </label>
98    <ul>
99      <li><label>{'Search in sub-albums'|@translate}</label></li>
100      <li><label>
101        <input type="radio" name="subcats-included" value="1" checked="checked" />{'Yes'|@translate}
102      </label></li>
103      <li><label>
104        <input type="radio" name="subcats-included" value="0" />{'No'|@translate}
105      </label></li>
106    </ul>
107  </fieldset>
108  <p>
109    <input class="submit" type="submit" name="submit" value="{'Submit'|@translate}" />
110    <input class="submit" type="reset" value="{'Reset'|@translate}" />
111  </p>
112  </form>
113  <script type="text/javascript"><!--
114  document.search.search_allwords.focus();
115  //--></script>
116</div> <!-- content -->
Note: See TracBrowser for help on using the repository browser.