--- loncom/interface/Attic/londropadd.pm 2000/12/28 16:32:10 1.5 +++ loncom/interface/Attic/londropadd.pm 2001/02/14 22:51:48 1.12 @@ -14,7 +14,8 @@ # 11/20,11/21,11/22,11/23,11/24,11/25,11/27,11/28, # 12/08,12/12 Gerd Kortemeyer) # -# 12/26,12/27,12/28 Gerd Kortemeyer +# 12/26,12/27,12/28, +# 01/01/01,01/15,02/10,02/13,02/14 Gerd Kortemeyer package Apache::londropadd; @@ -22,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 @@ -54,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(<