Revision 240
Added by stefan about 19 years ago
search.php | ||
---|---|---|
113 | 113 |
$values = array($search_string, WB_URL, PAGE_EXTENSION, $TEXT['SEARCH'], $TEXT['ALL_WORDS'], $TEXT['ANY_WORDS'], $TEXT['EXACT_MATCH'], $TEXT['MATCH'], $TEXT['MATCHING'], $all_checked, $any_checked, $exact_checked); |
114 | 114 |
$search_header = str_replace($vars, $values, ($fetch_header['value'])); |
115 | 115 |
|
116 |
// Insert js code |
|
117 |
?> |
|
118 |
<script language="javascript" type="text/javascript"> |
|
119 |
function toggle_radio(checkbox_id) { |
|
120 |
if(document.getElementById(checkbox_id).checked == true) { |
|
121 |
document.getElementById(checkbox_id).checked = false; |
|
122 |
} else { |
|
123 |
document.getElementById(checkbox_id).checked = true; |
|
124 |
} |
|
125 |
} |
|
126 |
</script> |
|
127 |
<?php |
|
128 |
|
|
129 | 116 |
// Show search header |
130 | 117 |
echo $search_header; |
131 | 118 |
|
Also available in: Unified diff
Applied aportale's patch to use label instead of javascript toggle code