aboutsummaryrefslogtreecommitdiff
path: root/mod/search/views/default/page_elements/searchbox.php
blob: f7746b0da96cafa0b8bd74be68eaa2df7af0a5aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php

if (array_key_exists('value', $vars)) {
	$value = $vars['value'];
} elseif ($value = get_input('q', get_input('tag', NULL))) {
	$value = $value;
} else {
	$value = elgg_echo('search');
}

?>

<form id="searchform" action="<?php echo $vars['url']; ?>pg/search/" method="get">
	<input type="text" size="21" name="q" value="<?php echo $value; ?>" onclick="if (this.value=='<?php echo elgg_echo('search'); ?>') { this.value='' }" class="search_input" />
	<input type="submit" value="<?php echo elgg_echo('search:go'); ?>" class="search_submit_button" />
</form>