Use direct menu

This commit is contained in:
moodler
2003-08-10 02:53:49 +00:00
parent fb5f91ac4e
commit 6c4441e796
+2 -3
View File
@@ -216,7 +216,7 @@
}
echo "<form action=category.php method=post>";
echo "<form name=\"movecourses\" action=\"category.php\" method=\"post\">";
echo "<table align=\"center\" border=0 cellspacing=2 cellpadding=4 class=\"generalbox\"><tr>";
echo "<th>$strcourses</th>";
if ($creatorediting) {
@@ -288,9 +288,8 @@
echo "<tr><td colspan=3 align=right>";
echo "<br />";
unset($displaylist[$category->id]);
choose_from_menu ($displaylist, "moveto", "", get_string("moveselectedcoursesto"), "");
choose_from_menu ($displaylist, "moveto", "", get_string("moveselectedcoursesto"), "javascript:document.movecourses.submit()");
echo "<input type=\"hidden\" name=\"id\" value=\"$category->id\">";
echo "<input type=\"submit\" value=\"".get_string("move")."\">";
echo "</td></tr>";
}