version 1.375, 2013/03/01 04:55:34
|
version 1.376, 2013/04/02 13:36:34
|
Line 6025 sub role_display_filter {
|
Line 6025 sub role_display_filter {
|
&mt('Context:').'</b><br /><select name="chgcontext">'; |
&mt('Context:').'</b><br /><select name="chgcontext">'; |
my @posscontexts; |
my @posscontexts; |
if ($context eq 'course') { |
if ($context eq 'course') { |
@posscontexts = ('any','auto','updatenow','createcourse','course','domain','selfenroll','requestcourses'); |
@posscontexts = ('any','automated','updatenow','createcourse','course','domain','selfenroll','requestcourses'); |
} elsif ($context eq 'domain') { |
} elsif ($context eq 'domain') { |
@posscontexts = ('any','domain','requestauthor','domconfig','server'); |
@posscontexts = ('any','domain','requestauthor','domconfig','server'); |
} else { |
} else { |
Line 6037 sub role_display_filter {
|
Line 6037 sub role_display_filter {
|
$selstr = ' selected="selected"'; |
$selstr = ' selected="selected"'; |
} |
} |
if ($context eq 'course') { |
if ($context eq 'course') { |
if (($chgtype eq 'auto') || ($chgtype eq 'updatenow')) { |
if (($chgtype eq 'automated') || ($chgtype eq 'updatenow')) { |
next if (!&Apache::lonnet::auto_run($cnum,$cdom)); |
next if (!&Apache::lonnet::auto_run($cnum,$cdom)); |
} |
} |
} |
} |
Line 6073 sub rolechg_contexts {
|
Line 6073 sub rolechg_contexts {
|
if ($context eq 'course') { |
if ($context eq 'course') { |
%lt = &Apache::lonlocal::texthash ( |
%lt = &Apache::lonlocal::texthash ( |
any => 'Any', |
any => 'Any', |
auto => 'Automated enrollment', |
automated => 'Automated Enrollment', |
updatenow => 'Roster Update', |
updatenow => 'Roster Update', |
createcourse => 'Course Creation', |
createcourse => 'Course Creation', |
course => 'User Management in course', |
course => 'User Management in course', |