$fullscreen = 0;
$link = "<a target=\"$name\" title=\"$title\" href=\"$CFG->wwwroot$url\" ".
- "onClick=\"return openpopup('$url', '$name', '$options', $fullscreen);\">$linkname</a>\n";
+ "onclick=\"return openpopup('$url', '$name', '$options', $fullscreen);\">$linkname</a>\n";
if ($return) {
return $link;
} else {
$nothing = get_string("choose")."...";
}
- $startoutput = "<form method=\"get\" target=\"{$CFG->framename}\" name=\"$formname\">";
+ $startoutput = '<form action="" method="get" target="'.$CFG->framename.'" name="'.$formname.'">';
$output = "<select name=\"popup\" onchange=\"$targetwindow.location=document.$formname.popup.options[document.$formname.popup.selectedIndex].value\">\n";
if ($nothing != "") {
} else {
$output .= " <option value=\"$common$value\"";
if ($value == $selected) {
- $output .= " selected=\"true\"";
+ $output .= ' selected="selected"';
}
}
if ($label) {