--- loncom/interface/Attic/londropadd.pm 2003/11/07 21:04:37 1.90 +++ loncom/interface/Attic/londropadd.pm 2003/12/08 23:13:17 1.93 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Handler to drop and add students in courses # -# $Id: londropadd.pm,v 1.90 2003/11/07 21:04:37 matthew Exp $ +# $Id: londropadd.pm,v 1.93 2003/12/08 23:13:17 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -146,7 +146,8 @@ sub print_main_menu { 'enrollone' => 'Enroll a single student', 'modify' => 'Modify student data', 'view' => 'View Class List', - 'drop' => 'Drop Students'); + 'drop' => 'Drop Students', + 'populate' => 'Automated Enrollment Manager'); $r->print(< @@ -169,7 +170,10 @@ sub print_main_menu { $Text{'drop'} -

+

+ + $Text{'populate'} + END } @@ -237,7 +241,12 @@ sub javascript_validations { my %param = ( formname => 'studentform', kerb_def_dom => $krbdefdom ); $authheader = &Apache::loncommon::authform_header(%param); + } elsif ($mode eq 'createcourse') { + my %param = ( formname => 'ccrs', + kerb_def_dom => $krbdefdom ); + $authheader = &Apache::loncommon::authform_header(%param); } + my %alert = &Apache::lonlocal::texthash (username => 'You need to specify the username field.', authen => 'You must choose an authentication type.', @@ -256,10 +265,16 @@ function verify_message (vf,founduname,f END my $auth_checks = (<'. ' make these dates the default for future enrollment'; + if ($mode eq 'createcourse') { + $dateDefault = ' '; + } my $perpetual = 'print("

Drop Students

"); + $r->print("

".&mt('Drop Students')."

"); my $cid=$ENV{'request.course.id'}; my ($classlist,$keylist) = &Apache::loncoursedata::get_classlist(); if (! defined($classlist)) { @@ -1058,7 +1095,7 @@ END $r->print('"'.join('","',("username","domain","ID","student name", "section","status")).'"'."\n"); } else { - $r->print('"'.join('","',("username","domain","ID","student name", + $r->print('"'.join('","',(&mt("username"),"domain","ID","student name", "section")).'"'."\n"); } } elsif ($mode eq 'excel') { @@ -1485,19 +1522,23 @@ END END } else { + my $wordusername=&mt('username'); + my $worddomain=&mt('domain'); + my $wordstudentname=&mt('student name'); + my $wordsection=&mt('section'); $r->print(<   - username + $wordusername - domain + $worddomain ID - student name + $wordstudentname - section + $wordsection END @@ -1541,11 +1582,14 @@ END END } $r->print('
'); + my $DropStudents=&mt('Drop Students'); + my $CheckAll=&mt('check all'); + my $UncheckAll=&mt('uncheck all'); $r->print(<<"END");

-   - -

+   + +

END return; } @@ -1567,10 +1611,10 @@ sub print_first_courselist_upload_form { $str .= ' '. &mt('Ignore First Line')."

\n"; $str .= &Apache::loncommon::help_open_topic("Course_Create_Class_List", - "How do I create a class list from a spreadsheet"). + &mt("How do I create a class list from a spreadsheet")). "
\n"; $str .= &Apache::loncommon::help_open_topic("Course_Convert_To_CSV", - "How do I create a CSV file from a spreadsheet"). + &mt("How do I create a CSV file from a spreadsheet")). "
\n"; $str .= "\n\n"; $r->print($str);