<?php
/* \Sentra.Designs\BasicDesigner\modules\searchform\searchform.tpl
 *

$wb->SEARCH_SETTINGS = array (
                         'IndexH1' => 'True',
                         'TXT' => 'a:2:{s:11:{{QUOTE}}TXT-MinChar{{QUOTE}};s:33:{{QUOTE}}Mindestens [n] Zeichen ben?tigt{{QUOTE}};s:11:{{QUOTE}}TXT-NoReult{{QUOTE}};s:13:{{QUOTE}}Kein Ergebnis{{QUOTE}};}',
                         'IndexH2' => 'True',
                         'HideProtected' => 'True',
                         'MinChar' => '3',
                         'HideStandard' => 'True',
                         'UserLang' => 'de',
                         'SearchOnPage' => 'True',
*/
php_start();
?>
$mycrit=urldecode(STR_GetVars("c"));
$mycritx = htmlentities($mycrit,ENT_COMPAT ,"UTF-8");
<?php
php_end();

// Add pagination styles
$wb->pagistyles = TRUE;
$formID = '{{formID}}';
$sform_align = '{{sform_align}}';

If (($formID!='navi' && $formID!='h1s') && ($sform_align == 'center' ||
													 $sform_align == 'right')) {
	echo '<div class="sformpos">'.PHP_EOL;
}
$blank = "<?"."php echo SENTRA_HOME."."'assets/images/_blank.gif';"." ?".">";

?>
<form class="sform" action=<?php echo '"<?php echo SENTRA_HOME;?>_search.php"'; ?> method="get" accept-charset="UTF-8">
	<div class="auto-suggest-page_{{formID}}">
		<input type="text" id="search-page_{{formID}}"  value="" name="c" autocomplete="off" maxlength="30" placeholder="<?php echo  quote2entities($wb->SEARCH_SETTINGS['TXT']['TXT-SearchText']);?>" />
		<div class="sbutton">
			<input class="sfake"
						 type="image"
						 src="<?php echo $blank; ?>"
						 alt="Send Button" />
		</div>	<!-- Close class="sbutton" -->
	</div> <!-- close class="auto-suggest-page_{{formID}}" -->
</form>
<?php
$sform_align = '{{sform_align}}';
If (($formID!='navi' && $formID!='h1s') && ($sform_align == 'center' ||
													 $sform_align == 'right')) {
	echo '</div> 	<!-- Close class="sformpos" -->'.PHP_EOL;
}

If (isset($wb->SEARCH_SETTINGS['AutoComplete']) && $wb->SEARCH_SETTINGS['AutoComplete']=='True') {
?>

<script type="text/javascript">
$(document).ready(function(){$.fn.autosugguest({className:'auto-suggest-page_{{formID}}',rtnIDs:true,dataFile:'<?="<?php echo SENTRA_HOME;?>"?>assets/php_scripts/suggest-server.php'})});
</script>

<?php
}
?>
