--- loncom/interface/Attic/londropadd.pm 2002/09/25 16:16:19 1.53 +++ loncom/interface/Attic/londropadd.pm 2002/09/26 13:29:44 1.54 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Handler to drop and add students in courses # -# $Id: londropadd.pm,v 1.53 2002/09/25 16:16:19 matthew Exp $ +# $Id: londropadd.pm,v 1.54 2002/09/26 13:29:44 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -558,7 +558,7 @@ sub print_upload_manager_form { sub enroll_single_student { my $r=shift; $r->print('

Enrolling Student

'); - $r->print('

Enrolling '.$ENV{'form.cuname'}." in domain ". + $r->print('

Enrolling '.$ENV{'form.cuname'}." \@ ". $ENV{'form.lcdomain'}.'

'); if (($ENV{'form.cuname'})&&($ENV{'form.cuname'}!~/\W/)&& ($ENV{'form.lcdomain'})&&($ENV{'form.lcdomain'}!~/\W/)) { @@ -790,7 +790,8 @@ sub print_csv_classlist { if (! scalar(@$student_array)) { $r->print("There are no students currently enrolled.\n"); } else { - &show_class_list($r,'csv','nolink','any',$student_array,$student_data); + &show_class_list($r,'csv','nolink','csv', + 'any',$student_array,$student_data); } } @@ -1131,8 +1132,16 @@ sub get_enrollment_data { sub show_drop_list { my ($students,$s_data,$r)=@_; my $cid=$ENV{'request.course.id'}; - $r->print(<<'END'); - + &Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'}, + ['sortby']); + my $sortby = $ENV{'form.sortby'}; + if ($sortby !~ /^(username|domain|section|fullname|id)$/) { + $sortby = 'username'; + } + my $action = "drop"; + $r->print(< +