source: extensions/gally/search.tpl @ 4446

Last change on this file since 4446 was 4446, checked in by grum, 14 years ago

[Template:Gally] Add template to subversion

  • Property svn:executable set to *
File size: 4.9 KB
Line 
1<!-- **GBL** >SEARCH> -->
2{* $Id: search.tpl 2352 2008-05-20 00:27:26Z patdenice $ *}
3<div id="content" class="content">
4
5  <div class="titrePage">
6    <ul class="categoryActions">
7      <li><a id="icon_help" class="button" 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>
8      <li><a id="icon_home" class="button" href="{$U_HOME}" title="{'return to homepage'|@translate}" rel="home"> <!--<img src="{$ROOT_URL}{$themeconf.icon_dir}/home.png" class="button" alt="{'home'|@translate}"/>--> </a></li>
9    </ul>
10    <h2>{'Search'|@translate}</h2>
11  </div>
12
13{if isset($errors) }
14<div class="errors">
15  <ul>
16    {foreach from=$errors item=error}
17    <li>{$error}</li>
18    {/foreach}
19  </ul>
20</div>
21{/if}
22
23<form class="filter" method="post" name="search" action="{$F_SEARCH_ACTION}">
24<fieldset>
25  <legend>{'Filter'|@translate}</legend>
26  <label>{'search_keywords'|@translate}
27    <input type="text" style="width: 300px" name="search_allwords" size="30"  />
28  </label>
29  <ul>
30    <li><label>
31      <input type="radio" name="mode" value="AND" checked="checked" />{'search_mode_and'|@translate}
32    </label></li>
33    <li><label>
34      <input type="radio" name="mode" value="OR" />{'search_mode_or'|@translate}
35    </label></li>
36  </ul>
37  <label>{'search_author'|@translate}
38    <input type="text" style="width: 300px" name="search_author" size="30"  />
39  </label>
40</fieldset>
41
42{if isset($TAG_SELECTION)}
43<fieldset>
44  <legend>{'Search tags'|@translate}</legend>
45  {$TAG_SELECTION}
46  <label><span><input type="radio" name="tag_mode" value="AND" checked="checked" /> {'All tags'|@translate}</span></label>
47  <label><span><input type="radio" name="tag_mode" value="OR" /> {'Any tag'|@translate}</span></label>
48</fieldset>
49{/if}
50
51<fieldset>
52  <legend>{'search_date'|@translate}</legend>
53  <ul>
54    <li><label>{'search_date_type'|@translate}</label></li>
55    <li><label>
56      <input type="radio" name="date_type" value="date_creation" checked="checked" />{'Creation date'|@translate}
57    </label></li>
58    <li><label>
59      <input type="radio" name="date_type" value="date_available" />{'Post date'|@translate}
60    </label></li>
61  </ul>
62  <ul>
63    <li><label>{'search_date_from'|@translate}</label></li>
64    <li>
65      <select name="start_day">
66          <option value="0">--</option>
67        {section name=day start=1 loop=32}
68          <option value="{$smarty.section.day.index}" {if $smarty.section.day.index==$START_DAY_SELECTED}selected="selected"{/if}>{$smarty.section.day.index}</option>
69        {/section}
70      </select>
71      <select name="start_month">
72        {html_options options=$month_list selected=$START_MONTH_SELECTED}
73      </select>
74      <input name="start_year" type="text" size="4" maxlength="4" >
75    </li>
76    <li>
77      <a 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>
78    </li>
79  </ul>
80  <ul>
81    <li><label>{'search_date_to'|@translate}</label></li>
82    <li>
83      <select name="end_day">
84          <option value="0">--</option>
85        {section name=day start=1 loop=32}
86          <option value="{$smarty.section.day.index}" {if $smarty.section.day.index==$END_DAY_SELECTED}selected="selected"{/if}>{$smarty.section.day.index}</option>
87        {/section}
88      </select>
89      <select name="end_month">
90        {html_options options=$month_list selected=$END_MONTH_SELECTED}
91      </select>
92      <input name="end_year" type="text" size="4" maxlength="4" >
93    </li>
94    <li>
95      <a 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_options'|@translate}</legend>
102  <label>{'search_categories'|@translate}<br/>
103    <select class="categoryList" name="cat[]" multiple="multiple" >
104      {html_options options=$category_options selected=$category_options_selected}
105    </select>
106  </label>
107  <ul>
108    <li><label>{'search_subcats_included'|@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 -->
128
129<!-- **GBL** <SEARCH< -->
Note: See TracBrowser for help on using the repository browser.