version 1.86, 2016/10/05 13:59:46
|
version 1.87, 2016/10/27 21:01:01
|
Line 182 sub print_course_search_page {
|
Line 182 sub print_course_search_page {
|
$r->print(&Apache::loncommon::build_filters($filterlist,$type,undef,undef,$filter,$action, |
$r->print(&Apache::loncommon::build_filters($filterlist,$type,undef,undef,$filter,$action, |
\$numtitles,'modifycourse',undef,undef,undef, |
\$numtitles,'modifycourse',undef,undef,undef, |
\@codetitles,$dom)); |
\@codetitles,$dom)); |
|
|
my ($actiontext,$roleoption,$settingsoption); |
my ($actiontext,$roleoption,$settingsoption); |
if ($type eq 'Community') { |
if ($type eq 'Community') { |
$actiontext = &mt('Actions available after searching for a community:'); |
$actiontext = &mt('Actions available after searching for a community:'); |
Line 332 sub print_modification_menu {
|
Line 332 sub print_modification_menu {
|
if (ref($managed_by_dc) eq 'ARRAY') { |
if (ref($managed_by_dc) eq 'ARRAY') { |
if (@{$managed_by_dc}) { |
if (@{$managed_by_dc}) { |
return 1; |
return 1; |
} |
} |
} |
} |
} |
} |
return 0; |
return 0; |
Line 480 sub print_adhocrole_selected {
|
Line 480 sub print_adhocrole_selected {
|
my %adhocroles = &Apache::lonnet::userenvironment($env{'user.domain'},$env{'user.name'}, |
my %adhocroles = &Apache::lonnet::userenvironment($env{'user.domain'},$env{'user.name'}, |
'adhocroles.'.$cdom); |
'adhocroles.'.$cdom); |
if (keys(%adhocroles)) { |
if (keys(%adhocroles)) { |
my $possrole = $env{'form.adhocrole'}; |
my $possrole = $env{'form.adhocrole'}; |
if ($possrole ne '') { |
if ($possrole ne '') { |
my @adhoc = split(',',$adhocroles{'adhocroles.'.$cdom}); |
my @adhoc = split(',',$adhocroles{'adhocroles.'.$cdom}); |
if (grep(/^\Q$possrole\E$/,@adhoc)) { |
if (grep(/^\Q$possrole\E$/,@adhoc)) { |
Line 2376 sub handler {
|
Line 2376 sub handler {
|
if (($phase eq 'setquota') && ($permission->{'setquota'})) { |
if (($phase eq 'setquota') && ($permission->{'setquota'})) { |
&Apache::lonhtmlcommon::add_breadcrumb |
&Apache::lonhtmlcommon::add_breadcrumb |
({href=>"javascript:changePage(document.$phase,'$phase')", |
({href=>"javascript:changePage(document.$phase,'$phase')", |
text=>"Set quota",}); |
text=>"Set quota"}); |
&print_setquota($r,$cdom,$cnum,$cdesc,$type); |
&print_setquota($r,$cdom,$cnum,$cdesc,$type); |
} elsif (($phase eq 'processquota') && ($permission->{'processquota'})) { |
} elsif (($phase eq 'processquota') && ($permission->{'processquota'})) { |
&Apache::lonhtmlcommon::add_breadcrumb |
&Apache::lonhtmlcommon::add_breadcrumb |