diff options
Diffstat (limited to 'template/yoga/search.tpl')
-rw-r--r-- | template/yoga/search.tpl | 106 |
1 files changed, 51 insertions, 55 deletions
diff --git a/template/yoga/search.tpl b/template/yoga/search.tpl index 328efb805..1b03c34c3 100644 --- a/template/yoga/search.tpl +++ b/template/yoga/search.tpl @@ -1,134 +1,130 @@ -<!-- DEV TAG: not smarty migrated --> -<!-- $Id$ --> +{* $Id$ *} <div id="content"> <div class="titrePage"> <ul class="categoryActions"> - <li><a href="{U_HELP}" onclick="popuphelp(this.href); return false;" title="{lang:Help}" rel="nofollow"><img src="{themeconf:icon_dir}/help.png" class="button" alt="(?)"></a></li> - <li><a href="{U_HOME}" title="{lang:return to homepage}" rel="home"><img src="{themeconf:icon_dir}/home.png" class="button" alt="{lang:home}"/></a></li> + <li><a href="{$U_HELP}" onclick="popuphelp(this.href); return false;" title="{'Help'|@translate}" rel="nofollow"><img src="{$themeconf.icon_dir}/help.png" class="button" alt="(?)"></a></li> + <li><a href="{$U_HOME}" title="{'return to homepage'|@translate}" rel="home"><img src="{$themeconf.icon_dir}/home.png" class="button" alt="{'home'|@translate}"/></a></li> </ul> - <h2>{lang:Search}</h2> + <h2>{'Search'|@translate}</h2> </div> -<form class="filter" method="post" name="search" action="{S_SEARCH_ACTION}"> -<!-- BEGIN errors --> +{if isset($errors) } <div class="errors"> <ul> - <!-- BEGIN error --> - <li>{errors.error.ERROR}</li> - <!-- END error --> + {foreach from=$errors item=error} + <li>{$error}</li> + {/foreach} </ul> </div> -<!-- END errors --> +{/if} + +<form class="filter" method="post" name="search" action="{$F_SEARCH_ACTION}"> <fieldset> - <legend>{lang:Filter}</legend> - <label>{lang:search_keywords} + <legend>{'Filter'|@translate}</legend> + <label>{'search_keywords'|@translate} <input type="text" style="width: 300px" name="search_allwords" size="30" /> </label> <ul> <li><label> - <input type="radio" name="mode" value="AND" checked="checked" />{lang:search_mode_and} + <input type="radio" name="mode" value="AND" checked="checked" />{'search_mode_and'|@translate} </label></li> <li><label> - <input type="radio" name="mode" value="OR" />{lang:search_mode_or} + <input type="radio" name="mode" value="OR" />{'search_mode_or'|@translate} </label></li> </ul> - <label>{lang:search_author} + <label>{'search_author'|@translate} <input type="text" style="width: 300px" name="search_author" size="30" /> </label> </fieldset> -<!-- BEGIN tags --> +{if isset($TAG_SELECTION)} <fieldset> - <legend>{lang:Search tags}</legend> - {TAG_SELECTION} - <label><span><input type="radio" name="tag_mode" value="AND" checked="checked" /> {lang:All tags}</span></label> - <label><span><input type="radio" name="tag_mode" value="OR" /> {lang:Any tag}</span></label> + <legend>{'Search tags'|@translate}</legend> + {$TAG_SELECTION} + <label><span><input type="radio" name="tag_mode" value="AND" checked="checked" /> {'All tags'|@translate}</span></label> + <label><span><input type="radio" name="tag_mode" value="OR" /> {'Any tag'|@translate}</span></label> </fieldset> -<!-- END tags --> +{/if} <fieldset> - <legend>{lang:search_date}</legend> + <legend>{'search_date'|@translate}</legend> <ul> - <li><label>{lang:search_date_type}</label></li> + <li><label>{'search_date_type'|@translate}</label></li> <li><label> - <input type="radio" name="date_type" value="date_creation" checked="checked" />{lang:Creation date} + <input type="radio" name="date_type" value="date_creation" checked="checked" />{'Creation date'|@translate} </label></li> <li><label> - <input type="radio" name="date_type" value="date_available" />{lang:Post date} + <input type="radio" name="date_type" value="date_available" />{'Post date'|@translate} </label></li> </ul> <ul> - <li><label>{lang:search_date_from}</label></li> + <li><label>{'search_date_from'|@translate}</label></li> <li> <select name="start_day"> - <!-- BEGIN start_day --> - <option {start_day.SELECTED} value="{start_day.VALUE}">{start_day.OPTION}</option> - <!-- END start_day --> + <option value="0">--</option> + {section name=day start=1 loop=31} + <option value="{$smarty.section.day.index}" {if $smarty.section.day.index==$START_DAY_SELECTED}selected="selected"{/if}>{$smarty.section.day.index}</option> + {/section} </select> <select name="start_month"> - <!-- BEGIN start_month --> - <option {start_month.SELECTED} value="{start_month.VALUE}">{start_month.OPTION}</option> - <!-- END start_month --> + {html_options options=$month_list selected=$START_MONTH_SELECTED} </select> <input name="start_year" type="text" size="4" maxlength="4" > </li> <li> - <a href="#" onClick="document.search.start_day.value={TODAY_DAY};document.search.start_month.value={TODAY_MONTH};document.search.start_year.value={TODAY_YEAR};return false;">{lang:today}</a> + <a 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> </li> </ul> <ul> - <li><label>{lang:search_date_to}</label></li> + <li><label>{'search_date_to'|@translate}</label></li> <li> <select name="end_day"> - <!-- BEGIN end_day --> - <option {end_day.SELECTED} value="{end_day.VALUE}">{end_day.OPTION}</option> - <!-- END end_day --> + <option value="0">--</option> + {section name=day start=1 loop=31} + <option value="{$smarty.section.day.index}" {if $smarty.section.day.index==$END_DAY_SELECTED}selected="selected"{/if}>{$smarty.section.day.index}</option> + {/section} </select> <select name="end_month"> - <!-- BEGIN end_month --> - <option {end_month.SELECTED} value="{end_month.VALUE}">{end_month.OPTION}</option> - <!-- END end_month --> + {html_options options=$month_list selected=$END_MONTH_SELECTED} </select> <input name="end_year" type="text" size="4" maxlength="4" > </li> <li> - <a href="#" onClick="document.search.end_day.value={TODAY_DAY};document.search.end_month.value={TODAY_MONTH};document.search.end_year.value={TODAY_YEAR};return false;">{lang:today}</a> + <a 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> </li> </ul> </fieldset> <fieldset> - <legend>{lang:search_options}</legend> - <label>{lang:search_categories} + <legend>{'search_options'|@translate}</legend> + <label>{'search_categories'|@translate} <select class="categoryList" name="cat[]" multiple="multiple" > - <!-- BEGIN category_option --> - <option value="{category_option.VALUE}">{category_option.OPTION}</option> - <!-- END category_option --> + {html_options options=$category_options selected=$category_options_selected} </select> </label> <ul> - <li><label>{lang:search_subcats_included}</label></li> + <li><label>{'search_subcats_included'|@translate}</label></li> <li><label> - <input type="radio" name="subcats-included" value="1" checked="checked" />{lang:yes} + <input type="radio" name="subcats-included" value="1" checked="checked" />{'yes'|@translate} </label></li> <li><label> - <input type="radio" name="subcats-included" value="0" />{lang:no} + <input type="radio" name="subcats-included" value="0" />{'no'|@translate} </label></li> </ul> <ul> - <li><label>{lang:search_sort}</label></li> + <li><label>{'search_sort'|@translate}</label></li> <li><label> - <input type="radio" name="sd" value="AND" />{lang:search_ascending} + <input type="radio" name="sd" value="AND" />{'search_ascending'|@translate} </label></li> <li><label> - <input type="radio" name="sd" value="d" checked="checked" />{lang:search_descending} + <input type="radio" name="sd" value="d" checked="checked" />{'search_descending'|@translate} </label></li> </ul> </fieldset> <p> - <input class="submit" type="submit" name="submit" value="{lang:submit}" /> - <input class="submit" type="reset" value="{lang:reset}" /> + <input class="submit" type="submit" name="submit" value="{'submit'|@translate}" /> + <input class="submit" type="reset" value="{'reset'|@translate}" /> </p> </form> |