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

Last change on this file since 9134 was 9134, checked in by Zaphod, 13 years ago

[extension] stripped - version 1.2.0

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