]> git.mjollnir.org Git - moodle.git/commitdiff
Added button to unenrol a user (course/unenrol.php)
authormartin <martin>
Tue, 4 Jun 2002 06:29:36 +0000 (06:29 +0000)
committermartin <martin>
Tue, 4 Jun 2002 06:29:36 +0000 (06:29 +0000)
user/view.php

index e908c15ea08e68adb3d2bafe83c941658cda38fd..499e29336ca9c7b3270594e4a55ad0a87c7bd1c1 100644 (file)
@@ -60,7 +60,6 @@
     echo "</TD></TR></TABLE>";
 
 
-
     // Print the description
 
     if ($user->description) {
@@ -68,7 +67,6 @@
     }
 
 
-
     // Print all the little details in a list
 
     echo "<TABLE BORDER=0 CELLPADDING=5 CELLSPACING=2";
 
     echo "</TD></TR></TABLE></TABLE>";
 
+//  Print other functions
+    echo "<CENTER><TABLE ALIGN=CENTER><TR>";
+    echo "<TD NOWRAP><P><FORM ACTION=\"../course/unenrol.php\" METHOD=GET>";
+    echo "<INPUT type=hidden name=id value=\"$course->id\">";
+    echo "<INPUT type=submit value=\"Unenrol me from $course->shortname\">";
+    echo "</FORM></P></TD>";
+    echo "</TR></TABLE></CENTER>\n";
+
     print_footer($course);
 
 /// Functions ///////