--- loncom/interface/Attic/londropadd.pm 2001/01/15 14:51:18 1.9 +++ loncom/interface/Attic/londropadd.pm 2001/02/13 21:24:18 1.10 @@ -15,7 +15,7 @@ # 12/08,12/12 Gerd Kortemeyer) # # 12/26,12/27,12/28, -# 01/01/01,01/15 Gerd Kortemeyer +# 01/01/01,01/15,02/10,02/13 Gerd Kortemeyer package Apache::londropadd; @@ -23,27 +23,11 @@ use strict; use Apache::lonnet; use Apache::Constants qw(:common :http REDIRECT); +# ================================================================ Print header -# ================================================================ Main Handler - -sub handler { - my $r=shift; - - if ($r->header_only) { - $r->content_type('text/html'); - $r->send_http_header; - return OK; - } - -# ----------------------------------------------------- Needs to be in a course - - if (($ENV{'request.course.fn'}) && - (&Apache::lonnet::allowed('cst',$ENV{'request.course.id'}))) { - -# ------------------------------------------------------------------ Start page - $r->content_type('text/html'); - $r->send_http_header; - $r->print(<print(< LON-CAPA Student Drop/Add @@ -55,9 +39,141 @@ sub handler { action="/adm/dropadd" name="studentform">

Course: $ENV{'course.'.$ENV{'request.course.id'}.'.description'}

ENDHEAD -# --------------------------------------------------- Phase one, initial screen - unless ($ENV{'form.phase'}) { - $r->print(<