--- loncom/interface/Attic/londropadd.pm 2003/08/25 16:36:58 1.80.2.1
+++ loncom/interface/Attic/londropadd.pm 2003/08/14 14:16:42 1.81
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Handler to drop and add students in courses
#
-# $Id: londropadd.pm,v 1.80.2.1 2003/08/25 16:36:58 albertel Exp $
+# $Id: londropadd.pm,v 1.81 2003/08/14 14:16:42 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -198,6 +198,7 @@ to this page if the data selected is ins
+
@@ -518,12 +519,13 @@ sub print_upload_manager_form {
my $distotal=$total+1;
my $today=time;
my $halfyear=$today+15552000;
- my $defdom=$ENV{'request.role.domain'};
+ my $defdom=$r->dir_config('lonDefDomain');
my ($krbdef,$krbdefdom) =
&Apache::loncommon::get_kerberos_defaults($defdom);
&print_upload_manager_header($r,$datatoken,$distotal,$krbdefdom);
my $i;
my $keyfields;
+ my $dummy;
if ($total>=0) {
my @d=(['username','Username'],
['names','Last Name, First Names'],
@@ -535,6 +537,10 @@ sub print_upload_manager_form {
['sec','Group/Section'],
['ipwd','Initial Password'],
['email','EMail Address']);
+ if($ENV{'form.noFirstLine'}){
+ ($dummy,@records)=@records;
+ }
+
if ($ENV{'form.upfile_associate'} eq 'reverse') {
&Apache::loncommon::csv_print_samples($r,\@records);
$i=&Apache::loncommon::csv_print_select_table($r,\@records,\@d);
@@ -720,7 +726,7 @@ sub make_dates_default {
sub get_student_username_domain_form {
my $r = shift;
my $domform = &Apache::loncommon::select_dom_form
- ($ENV{'request.role.domain'},'cudomain',0);
+ ($r->dir_config('lonDefDomain'),'cudomain',0);
$r->print(<