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

Last change on this file since 13475 was 12878, checked in by rvelices, 12 years ago

bug 2553 hide menubar/register on indentification page if gallery is locked or guest_access is false

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