<?php // -*-php-*-
// $Id: search.tmpl 7956 2011-03-03 17:08:31Z vargenau $
?>
<!--{{{ LiveSearch --> <?php // -*- php -*- ?>
<div id="searchholder">
<form id="searchform" action="<?php echo WikiURL(_("FindPage"))?>"
      method="get" accept-charset="<?php echo $charset?>" style="display:inline" class="searchform">
<?php 
$s = $request->getArg('s') ? $request->getArg('s') : _("Search");
$p = $WikiTheme->tooltipAccessKeyPrefix();
if (! USE_PATH_INFO) { ?>
<input type="hidden" name="pagename" value="<?php echo _("TitleSearch")?>" />
<?php } ?>
<?php echo $SEARCH_BEFORE ?> 
<input type="hidden" name="action" value="search" />
<input name="searchterm" size="18" maxlength="256"
   value="<?php echo $s?>"
   onfocus="if (this.value == '<?php echo _("Search")?>') {this.value = '';}"
   onmouseout="window.status=''; return true;" 
   onmouseover="window.status='<?php echo _("Quick Search")?>'; return true;"
   accesskey="f"
<?php if (0 and ENABLE_ACDROPDOWN) { ?>
   class="dropdown" id="searchInput" title="<?php echo _("LiveSearch") . " [$p-f]"?>" 
   style="width:115px;"
   acdropdown="true" autocomplete_complete="false" autocomplete_matchsubstring="false"
   autocomplete_list="xmlrpc:wiki.titleSearch [S] 4" />
<?php } elseif (ENABLE_LIVESEARCH) { ?>
   type="text" id="livesearch" title="<?php echo _("LiveSearch") . " [$p-f]"?>" 
   onKeypress="liveSearchStart()"
   onblur="setTimeout('closeResults()',2000); if (this.value == '') {this.value = '<?php echo _("Search")?>';}" />
   <br/>
   <div id="LSResult">
   </div>
<?php } else { ?>
   type="text" id="search" 
   title="<?php echo _("Search term(s)")  . " [$p-f]"?>" /> 
<?php } ?> <?php echo $SEARCH_AFTER ?>
</form>
</div>
<!--}}}-->
