'.
''.&mt('Changes/page:').' '.
@@ -5700,7 +6409,7 @@ sub role_display_filter {
&Apache::lonhtmlcommon::date_setter($formname,'rolelog_end_date',
$curr->{'rolelog_end_date'},undef,
undef,undef,undef,undef,undef,undef,$nolink);
- my %lt = &rolechg_contexts($crstype);
+ my %lt = &rolechg_contexts($context,$crstype);
$output .= ' | '.&mt('Window during which changes occurred:').' '.
''.&mt('After:').
' | '.$startform.' | '.
@@ -5714,7 +6423,7 @@ sub role_display_filter {
$output .= ' selected="selected"';
}
$output .= '>'.&mt('Any').''."\n";
- my @roles = &Apache::lonuserutils::course_roles($context,undef,1,$lctype);
+ my @roles = &Apache::lonuserutils::roles_by_context($context,1,$crstype);
foreach my $role (@roles) {
my $plrole;
if ($role eq 'cr') {
@@ -5732,13 +6441,23 @@ sub role_display_filter {
' | '.
''.
&mt('Context:').'
|
| '."\n";
} else {
$row .= ' | '."\n";
+ 'name="sec_'.$protectedcourse.'_'.$role.'" />'."\n";
}
}
$row .= <'.
@@ -6407,7 +7163,11 @@ sub course_level_dc {
'';
my $courseform=&Apache::loncommon::selectcourse_link
('cu','dccourse','dcdomain','coursedesc',undef,undef,'Select','crstype');
- my $cb_jscript = &Apache::loncommon::coursebrowser_javascript($dcdom,'currsec','cu','role','Course/Community Browser');
+ my $credit_elem;
+ if ($showcredits) {
+ $credit_elem = 'credits';
+ }
+ my $cb_jscript = &Apache::loncommon::coursebrowser_javascript($dcdom,'currsec','cu','role','Course/Community Browser',$credit_elem);
my %lt=&Apache::lonlocal::texthash(
'rol' => "Role",
'grs' => "Section",
@@ -6417,39 +7177,46 @@ sub course_level_dc {
'end' => "End",
'ssd' => "Set Start Date",
'sed' => "Set End Date",
- 'scc' => "Course/Community"
+ 'scc' => "Course/Community",
+ 'crd' => "Credits",
);
my $header = ''.&mt('Course/Community Level').'
'.
&Apache::loncommon::start_data_table().
&Apache::loncommon::start_data_table_header_row().
- ''.$lt{'scc'}.' | '.$lt{'rol'}.' | '.$lt{'grs'}.' | '.$lt{'sta'}.' | '.$lt{'end'}.' | '.
+ ''.$lt{'scc'}.' | '.$lt{'rol'}.' | '."\n".
+ ''.$lt{'grs'}.' | '.$lt{'crd'}.' | '."\n".
+ ''.$lt{'sta'}.' | '.$lt{'end'}.' | '."\n".
&Apache::loncommon::end_data_table_header_row();
my $otheritems = &Apache::loncommon::start_data_table_row()."\n".
' '.
$courseform.(' ' x4).' | '."\n".
- '
|
---|