mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
Make searching parameters sticky
This commit is contained in:
parent
cc345ff6db
commit
34aeb9360f
@ -224,8 +224,17 @@
|
||||
echo '<p align="center">';
|
||||
echo '<form method="POST" action="view.php">';
|
||||
echo '<input type="submit" value="'.$strsearch.'" name="searchbutton"> ';
|
||||
echo '<input type="text" name="hook" size="20" value=""> ';
|
||||
echo '<input type="checkbox" name="fullsearch" value="1">';
|
||||
if ($mode == 'search') {
|
||||
echo '<input type="text" name="hook" size="20" value="'.$hook.'"> ';
|
||||
} else {
|
||||
echo '<input type="text" name="hook" size="20" value=""> ';
|
||||
}
|
||||
if ($fullsearch) {
|
||||
$fullsearchchecked = 'checked="checked"';
|
||||
} else {
|
||||
$fullsearchchecked = '';
|
||||
}
|
||||
echo '<input type="checkbox" name="fullsearch" value="1" '.$fullsearchchecked.'>';
|
||||
echo '<input type="hidden" name="mode" value="search">';
|
||||
echo '<input type="hidden" name="id" value="'.$cm->id.'">';
|
||||
echo $strsearchindefinition;
|
||||
|
Loading…
x
Reference in New Issue
Block a user