source: extensions/stripped/template/search.tpl @ 14518

Last change on this file since 14518 was 12960, checked in by Zaphod, 12 years ago

version 2.1.0

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