Arbitrary moving of activities (aka cut and paste)

Some of this code was sent by Howard Miller, but I rewrote most of it
to make it shorter and to fit in better with current code.
This commit is contained in:
moodler
2003-07-14 13:08:38 +00:00
parent 29ee5550d3
commit 7977cffdb0
7 changed files with 239 additions and 34 deletions
+14
View File
@@ -81,6 +81,20 @@
echo "<table class=\"weeklyoutline\" border=\"0\" cellpadding=\"8\" cellspacing=\"0\" width=\"100%\">";
/// If currently moving a file then show the current clipboard
if (ismoving($course->id)) {
$stractivityclipboard = get_string("activityclipboard", "", addslashes($USER->activitycopyname));
$strcancel= get_string("cancel");
echo "<tr>";
echo "<td colspan=3 valign=top bgcolor=\"$THEME->cellcontent\" class=\"weeklyoutlineclip\" width=\"100%\">";
echo "<p><font size=2>";
echo "$stractivityclipboard&nbsp;&nbsp;(<a href=\"mod.php?cancelcopy=true\">$strcancel</a>)";
echo "</font></p>";
echo "</td>";
echo "</tr>";
echo "<tr><td colspan=3><img src=\"../pix/spacer.gif\" width=1 height=1></td></tr>";
}
/// Print Section 0 with general activities
$section = 0;