--- loncom/interface/Attic/londropadd.pm 2006/03/21 18:34:23 1.138
+++ loncom/interface/Attic/londropadd.pm 2006/04/26 14:52:22 1.140
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Handler to drop and add students in courses
#
-# $Id: londropadd.pm,v 1.138 2006/03/21 18:34:23 albertel Exp $
+# $Id: londropadd.pm,v 1.140 2006/04/26 14:52:22 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -905,7 +905,8 @@ sub make_dates_default {
$result .= "Set default start and end dates for course
";
#
# Refresh the course environment
- &Apache::lonnet::coursedescription($env{'request.course.id'});
+ &Apache::lonnet::coursedescription($env{'request.course.id'},
+ {'freshen_cache' => 1});
} else {
$result .= &mt('Unable to set default dates for course').":".$put_result.
'
';
@@ -1181,10 +1182,11 @@ sub print_html_classlist {
$env{'form.output'} = 'html';
}
#
- $r->print('
'.$role.' | '); + $r->print(&Apache::loncommon::start_data_table_row(). + ' | '.$role.' | '); foreach my $user (split(',',$coursepersonnel{$role})) { my ($puname,$pudom)=split(':',$user); $r->print(' '.&Apache::loncommon::aboutmewrapper( @@ -1192,9 +1194,9 @@ sub print_html_classlist { $pudom), $puname,$pudom)); } - $r->print(' |
'); } } - $r->print(' |
'.
@@ -1924,8 +1926,8 @@ my %lt=&Apache::lonlocal::texthash('usrn
'end' => "end date",
);
if ($nosort) {
+ $r->print(&Apache::loncommon::start_data_table());
$r->print(<
$lt{'usrn'}
@@ -1939,8 +1941,8 @@ my %lt=&Apache::lonlocal::texthash('usrn
END
} else {
+ $r->print(&Apache::loncommon::start_data_table());
$r->print(<
$lt{'usrn'}
@@ -2000,8 +2002,8 @@ END
my $status = $sdata->[$index{'status'}];
next if ($status ne 'Active');
#
+ $r->print(&Apache::loncommon::start_data_table_row());
$r->print(<<"END");
-
END
+ $r->print(&Apache::loncommon::end_data_table_row());
}
- $r->print('
$username
$domain
@@ -2010,10 +2012,10 @@ END
$section
$start
$end
-
');
+ $r->print(&Apache::loncommon::end_data_table().'
');
%lt=&Apache::lonlocal::texthash(
'dp' => "Drop Students",
'ca' => "check all",