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

Last change on this file since 21216 was 19125, checked in by plg, 11 years ago

categories renammed into albums

File size: 5.5 KB
Line 
1<div class="titrePage">
2        <div class="browsePath">
3                <h2>
4                        {if isset($MENUBAR)}
5                                <span id="menuswitcher" title="{'Show/hide menu'|@translate}">{'Menu'|@translate}</span><span class="arrow"> »</span>
6                        {/if}
7                        <a href="{$U_HOME}">{'Home'|@translate}</a>
8                        {$LEVEL_SEPARATOR}{'Search'|@translate}
9                </h2>
10        </div>
11        <div class="categoryActionsContainer">
12                <ul class="categoryActions">
13                        <li><a href="{$U_HELP}" onclick="popuphelp(this.href); return false;" title="{'Help'|@translate}" class="pwg-state-default pwg-button">
14                                <span class="pwg-icon pwg-icon-help">&nbsp;</span><span class="pwg-button-text">{'Help'|@translate}</span>
15                        </a></li>
16                </ul>
17        </div>
18</div>
19<div id="content">
20        {if isset($MENUBAR)}{$MENUBAR}{/if}
21        <div id="content_cell">
22                <div class="content_block">
23                        {include file='infos_errors.tpl'}
24                        <form class="filter" method="post" name="search" action="{$F_SEARCH_ACTION}">
25                                <fieldset>
26                                        <legend>{'Filter'|@translate}</legend>
27                                        <label>{'Search for words'|@translate}
28                                                <input type="text" style="width: 300px" name="search_allwords" size="30"  />
29                                        </label>
30                                        <ul>
31                                                <li><label>
32                                                        <input type="radio" name="mode" value="AND" checked="checked" />{'Search for all terms'|@translate}
33                                                </label></li>
34                                                <li><label>
35                                                        <input type="radio" name="mode" value="OR" />{'Search for any terms'|@translate}
36                                                </label></li>
37                                        </ul>
38                                        <label>{'Search for Author'|@translate}
39                                                <input type="text" style="width: 300px" name="search_author" size="30"  />
40                                        </label>
41                                </fieldset>
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                                <fieldset>
51                                        <legend>{'Search by Date'|@translate}</legend>
52                                        <ul>
53                                                <li><label>{'Kind of date'|@translate}</label></li>
54                                                <li><label>
55                                                        <input type="radio" name="date_type" value="date_creation" checked="checked" />{'Creation date'|@translate}
56                                                </label></li>
57                                                <li><label>
58                                                        <input type="radio" name="date_type" value="date_available" />{'Post date'|@translate}
59                                                </label></li>
60                                        </ul>
61                                        <ul>
62                                                <li><label>{'Date'|@translate}</label></li>
63                                                <li>
64                                                        <select id="start_day" name="start_day">
65                                                                <option value="0">--</option>
66                                                                {section name=day start=1 loop=32}
67                                                                        <option value="{$smarty.section.day.index}" {if $smarty.section.day.index==$START_DAY_SELECTED}selected="selected"{/if}>{$smarty.section.day.index}</option>
68                                                                {/section}
69                                                        </select>
70                                                        <select id="start_month" name="start_month">
71                                                                {html_options options=$month_list selected=$START_MONTH_SELECTED}
72                                                        </select>
73                                                        <input id="start_year" name="start_year" type="text" size="4" maxlength="4" >
74                                                        <input id="start_linked_date" name="start_linked_date" type="hidden" size="10" disabled="disabled">
75                                                </li>
76                                                <li>
77                                                        <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>
78                                                </li>
79                                        </ul>
80                                        <ul>
81                                                <li><label>{'End-Date'|@translate}</label></li>
82                                                <li>
83                                                        <select id="end_day" 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 id="end_month" name="end_month">
90                                                                {html_options options=$month_list selected=$END_MONTH_SELECTED}
91                                                        </select>
92                                                        <input id="end_year" name="end_year" type="text" size="4" maxlength="4" >
93                                                        <input id="end_linked_date" name="end_linked_date" type="hidden" size="10" disabled="disabled">
94                                                </li>
95                                                <li>
96                                                        <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>
97                                                </li>
98                                        </ul>
99                                </fieldset>
100                                <fieldset>
101                                        <legend>{'Search Options'|@translate}</legend>
102                                        <label>{'Search in albums'|@translate}
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 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                        <script type="text/javascript">
123                                <!--
124                                document.search.search_allwords.focus();
125                                //-->
126                        </script>
127                </div>
128        </div>
129</div> <!-- content -->
Note: See TracBrowser for help on using the repository browser.