Ignore:
Timestamp:
Feb 9, 2011, 9:17:48 PM (13 years ago)
Author:
Zaphod
Message:

[extension] stripped - version 1.2.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/stripped/template/search.tpl

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