Permalink
Browse files

Added button to unenrol a user (course/unenrol.php)

  • Loading branch information...
1 parent 4c86dda commit c888501c021c7c7dcbb60da264a0c630c8acfed6 martin committed Jun 4, 2002
Showing with 8 additions and 2 deletions.
  1. +8 −2 user/view.php
View
@@ -60,15 +60,13 @@
echo "</TD></TR></TABLE>";
-
// Print the description
if ($user->description) {
echo "<P>".text_to_html($user->description)."</P><HR>";
}
-
// Print all the little details in a list
echo "<TABLE BORDER=0 CELLPADDING=5 CELLSPACING=2";
@@ -104,6 +102,14 @@
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 ///////

0 comments on commit c888501

Please sign in to comment.