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

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

version 2.2.0.beta2 for Piwigo 2.4

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