-
-$plrole
-$area Domain: $domain
-ENDEXTENT
+ $table .= &Apache::loncommon::start_data_table_row().
+'
+'.$plrole.'
+'.$area.' Domain: '.$domain.' '."\n";
if ($role ne 'cc') {
if (%sections_count) {
my $currsec = &course_sections(\%sections_count,$protectedcourse.'_'.$role);
$table .=
- ''.
- ''.$lt{'exs'}.' '.
+ ' '.
+ '
+ '.$lt{'exs'}.' '.
$currsec.' '.
' '.
' '.$lt{'new'}.' '.
@@ -1803,7 +1769,7 @@ ENDEXTENT
$lt{'sed'}
ENDTIMEENTRY
- $table.= " \n";
+ $table.= &Apache::loncommon::end_data_table_row();
}
}
foreach my $cust (sort keys %customroles) {
@@ -1811,12 +1777,10 @@ ENDTIMEENTRY
my $plrole=$cust;
my $customrole=$protectedcourse.'_cr_cr_'.$env{'user.domain'}.
'_'.$env{'user.name'}.'_'.$plrole;
- $table .= <
-
-$plrole
-$area
-END
+ $table .= &Apache::loncommon::start_data_table_row().
+'
+'.$plrole.'
+'.$area.' '."\n";
if (%sections_count) {
my $currsec = &course_sections(\%sections_count,$customrole);
$table.=
@@ -1839,20 +1803,25 @@ END
"javascript:pjump('date_start','Start Date $plrole',document.cu.start_$customrole.value,'start_$customrole','cu.pres','dateset')">$lt{'ssd'}
$lt{'sed'}
+"javascript:pjump('date_end','End Date $plrole',document.cu.end_$customrole.value,'end_$customrole','cu.pres','dateset')">$lt{'sed'}
ENDENTRY
+ $table .= &Apache::loncommon::end_data_table_row();
}
}
}
return '' if ($table eq ''); # return nothing if there is nothing
# in the table
- my $result = <$lt{'crl'}
-$lt{'act'} $lt{'rol'} $lt{'ext'}
-$lt{'grs'} $lt{'sta'} $lt{'end'}
-$table
-
-ENDTABLE
+ my $result = '
+'.$lt{'crl'}.' '.
+&Apache::loncommon::start_data_table().
+&Apache::loncommon::start_data_table_header_row().
+''.$lt{'act'}.' '.$lt{'rol'}.' '.$lt{'ext'}.'
+'.$lt{'grs'}.' '.$lt{'sta'}.' '.$lt{'end'}.' '.
+&Apache::loncommon::end_data_table_header_row().
+&Apache::loncommon::start_data_table_row().
+$table.
+&Apache::loncommon::end_data_table_row().
+&Apache::loncommon::end_data_table();
return $result;
}
@@ -1888,7 +1857,6 @@ sub course_level_dc {
('cu','dccourse','dcdomain','coursedesc',undef,undef,'Course').'';
my $cb_jscript = &Apache::loncommon::coursebrowser_javascript($dcdom,'currsec','cu');
my %lt=&Apache::lonlocal::texthash(
- 'typ' => "Type",
'rol' => "Role",
'grs' => "Section",
'exs' => "Existing sections",
@@ -1899,12 +1867,11 @@ sub course_level_dc {
'sed' => "Set End Date"
);
my $header = ''.&mt('Course Level').' '.
- '\n";
+ $otheritems .= &Apache::loncommon::end_data_table_row().
+ &Apache::loncommon::end_data_table()."\n";
return $cb_jscript.$header.$hiddenitems.$otheritems;
}