]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/default/templates/search.tmpl
add SEARCH_BEFORE and SEARCH_AFTER overrides, change acdropdown to use xmlrpc
[SourceForge/phpwiki.git] / themes / default / templates / search.tmpl
1 <!--{{{ LiveSearch --> <? // -*- php -*- ?>
2 <div id="searchholder">
3 <form id="searchform" name="searchform" action="<?= WikiURL(_("TitleSearch"))?>"
4       method="get" accept-charset="<?=$charset?>">
5 <?php if (! USE_PATH_INFO) { ?>
6 <input type="hidden" name="pagename" value="<?= _("TitleSearch")?>" />
7 <?php } ?>
8 <input type="hidden" name="auto_redirect" value="1" />
9 <?= $SEARCH_BEFORE ?>
10 <input name="s" size="12" maxlength="256"
11    value="<?=_("Search")?>"
12    onfocus="if (this.value == '<?=_("Search")?>') {this.value = '';}"
13    onmouseout="window.status=''; return true;" 
14    onmouseover="window.status='<?=_("Quick Search")?>'; return true;"
15 <?php if (ENABLE_ACDROPDOWN) { ?>
16    class="dropdown" id="livesearch" title="<?=_("LiveSearch")?>" 
17    acdropdown="true" autocomplete_complete="false" autocomplete_matchsubstring="true"
18    autocomplete_list="xmlrpc:wiki.titleSearch [S] 4" />
19 <?php } elseif (ENABLE_LIVESEARCH) { ?>
20    type="text" id="livesearch" title="<?=_("LiveSearch")?>" 
21    onKeypress="liveSearchStart()"
22    onblur="setTimeout('closeResults()',2000); if (this.value == '') {this.value = '<?=_("Search")?>';}" />
23    <br/>
24    <div id="LSResult">
25    </div>
26 <?php } else { ?>
27    type="text" id="search" 
28    title="<?=_("TitleSearch")?>" /> 
29 <?php } ?>
30 <?= $SEARCH_AFTER ?>
31 </form>
32 </div>
33 <!--}}}-->