Skip to content

Commit

Permalink
Added button to unenrol a user (course/unenrol.php)
Browse files Browse the repository at this point in the history
  • Loading branch information
martin committed Jun 4, 2002
1 parent 4c86dda commit c888501
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions user/view.php
Expand Up @@ -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";
Expand Down Expand Up @@ -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 ///////
Expand Down

0 comments on commit c888501

Please sign in to comment.