source: trunk/themes/default/template/search.tpl @ 24981

Last change on this file since 24981 was 24981, checked in by rvelices, 11 years ago

removed inline style width

  • Property svn:eol-style set to LF
File size: 5.4 KB
RevLine 
[2718]1{* Example of resizeable *}
[8076]2{*
[2718]3{include file='include/resize.inc.tpl'}
[8076]4*}
[2718]5
6{* Example of datepicker *}
[8076]7{*
[2704]8{include file='include/datepicker.inc.tpl'}
9
[7975]10{footer_script}{literal}
[2704]11  pwg_initialization_datepicker("#start_day", "#start_month", "#start_year", "#start_linked_date", null, null, "#end_linked_date");
12  pwg_initialization_datepicker("#end_day", "#end_month", "#end_year", "#end_linked_date", null, "#start_linked_date", null);
13 jQuery().ready(function(){ $(".date_today").hide(); });
[7975]14{/literal}{/footer_script}
[8076]15*}
[2704]16
[10812]17{if isset($MENUBAR)}{$MENUBAR}{/if}
[12878]18<div id="content" class="content{if isset($MENUBAR)} contentWithMenu{/if}">
[859]19
[8076]20        <div class="titrePage">
21                <ul class="categoryActions">
[7975]22                        {combine_script id='core.scripts' load='async' path='themes/default/js/scripts.js'}
[8076]23                        <li><a href="{$U_HELP}" onclick="popuphelp(this.href); return false;" title="{'Help'|@translate}" class="pwg-state-default pwg-button">
[24981]24                                <span class="pwg-icon pwg-icon-help"></span><span class="pwg-button-text">{'Help'|@translate}</span>
[8076]25                        </a></li>
26                </ul>
[14240]27                <h2><a href="{$U_HOME}">{'Home'|@translate}</a>{$LEVEL_SEPARATOR}{'Search'|@translate}</h2>
[8076]28        </div>
[859]29
[12764]30{include file='infos_errors.tpl'}
[2223]31
32<form class="filter" method="post" name="search" action="{$F_SEARCH_ACTION}">
[1255]33<fieldset>
[2223]34  <legend>{'Filter'|@translate}</legend>
[5021]35  <label>{'Search for words'|@translate}
[24981]36    <input type="text" name="search_allwords" size="35">
[1257]37  </label>
[1268]38  <ul>
39    <li><label>
[5178]40      <input type="radio" name="mode" value="AND" checked="checked">{'Search for all terms'|@translate}
[1268]41    </label></li>
42    <li><label>
[12693]43      <input type="radio" name="mode" value="OR">{'Search for any term'|@translate}
[1268]44    </label></li>
45  </ul>
[5021]46  <label>{'Search for Author'|@translate}
[24981]47    <input type="text" name="search_author" size="35">
[1257]48  </label>
[1255]49</fieldset>
[1314]50
[2223]51{if isset($TAG_SELECTION)}
[1255]52<fieldset>
[2223]53  <legend>{'Search tags'|@translate}</legend>
54  {$TAG_SELECTION}
[3185]55  <label><span><input type="radio" name="tag_mode" value="AND" checked="checked"> {'All tags'|@translate}</span></label>
56  <label><span><input type="radio" name="tag_mode" value="OR"> {'Any tag'|@translate}</span></label>
[1255]57</fieldset>
[2223]58{/if}
[1125]59
[1255]60<fieldset>
[12693]61  <legend>{'Search by date'|@translate}</legend>
[1268]62  <ul>
[5021]63    <li><label>{'Kind of date'|@translate}</label></li>
[1268]64    <li><label>
[3185]65      <input type="radio" name="date_type" value="date_creation" checked="checked">{'Creation date'|@translate}
[1268]66    </label></li>
67    <li><label>
[3185]68      <input type="radio" name="date_type" value="date_available">{'Post date'|@translate}
[1337]69    </label></li>
[1268]70  </ul>
71  <ul>
[5021]72    <li><label>{'Date'|@translate}</label></li>
[1268]73    <li>
[2690]74      <select id="start_day" name="start_day">
[2223]75          <option value="0">--</option>
[2294]76        {section name=day start=1 loop=32}
[2223]77          <option value="{$smarty.section.day.index}" {if $smarty.section.day.index==$START_DAY_SELECTED}selected="selected"{/if}>{$smarty.section.day.index}</option>
78        {/section}
[1255]79      </select>
[2690]80      <select id="start_month" name="start_month">
[2223]81        {html_options options=$month_list selected=$START_MONTH_SELECTED}
[1255]82      </select>
[2690]83      <input id="start_year" name="start_year" type="text" size="4" maxlength="4" >
[3185]84      <input id="start_linked_date" name="start_linked_date" type="hidden" size="10" disabled="disabled">
[1268]85    </li>
86    <li>
[2704]87      <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>
[1268]88    </li>
89  </ul>
90  <ul>
[5021]91    <li><label>{'End-Date'|@translate}</label></li>
[1268]92    <li>
[2690]93      <select id="end_day" name="end_day">
[2223]94          <option value="0">--</option>
[2294]95        {section name=day start=1 loop=32}
[2223]96          <option value="{$smarty.section.day.index}" {if $smarty.section.day.index==$END_DAY_SELECTED}selected="selected"{/if}>{$smarty.section.day.index}</option>
97        {/section}
[1255]98      </select>
[2690]99      <select id="end_month" name="end_month">
[2223]100        {html_options options=$month_list selected=$END_MONTH_SELECTED}
[1255]101      </select>
[2690]102      <input id="end_year" name="end_year" type="text" size="4" maxlength="4" >
[3185]103      <input id="end_linked_date" name="end_linked_date" type="hidden" size="10" disabled="disabled">
[1268]104    </li>
105    <li>
[2704]106      <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>
[1268]107    </li>
108  </ul>
[1255]109</fieldset>
[1125]110
[1255]111<fieldset>
[12693]112  <legend>{'Search in albums'|@translate}</legend>
113  <label>{'Albums'|@translate}
[24981]114    <select class="categoryList" name="cat[]" multiple="multiple" size="15">
[2223]115      {html_options options=$category_options selected=$category_options_selected}
[1255]116    </select>
117  </label>
[1268]118  <ul>
[6951]119    <li><label>{'Search in sub-albums'|@translate}</label></li>
[1268]120    <li><label>
[3185]121      <input type="radio" name="subcats-included" value="1" checked="checked">{'Yes'|@translate}
[1268]122    </label></li>
123    <li><label>
[3185]124      <input type="radio" name="subcats-included" value="0">{'No'|@translate}
[1268]125    </label></li>
126  </ul>
[1255]127</fieldset>
128<p>
[3185]129  <input class="submit" type="submit" name="submit" value="{'Submit'|@translate}">
130  <input class="submit" type="reset" value="{'Reset'|@translate}">
[1255]131</p>
[859]132</form>
133
[1143]134<script type="text/javascript"><!--
[1268]135document.search.search_allwords.focus();
[1131]136//--></script>
137
[859]138</div> <!-- content -->
Note: See TracBrowser for help on using the repository browser.