version 1.54, 2010/05/18 16:13:31
|
version 1.56, 2010/07/08 23:19:19
|
Line 149 sub print_course_search_page {
|
Line 149 sub print_course_search_page {
|
'instcodefilter','ownerfilter', |
'instcodefilter','ownerfilter', |
'coursefilter']; |
'coursefilter']; |
my $filter = {}; |
my $filter = {}; |
my ($numtitles,$cctitle,$dctitle); |
my ($numtitles,$cctitle,$dctitle,@codetitles); |
my $ccrole = 'cc'; |
my $ccrole = 'cc'; |
if ($type eq 'Community') { |
if ($type eq 'Community') { |
$ccrole = 'co'; |
$ccrole = 'co'; |
Line 163 sub print_course_search_page {
|
Line 163 sub print_course_search_page {
|
$r->print('<h3>'.&mt('Search for a course in the [_1] domain',$domdesc).'</h3>'); |
$r->print('<h3>'.&mt('Search for a course in the [_1] domain',$domdesc).'</h3>'); |
} |
} |
$r->print(&Apache::lonpickcourse::build_filters($filterlist,$type, |
$r->print(&Apache::lonpickcourse::build_filters($filterlist,$type, |
undef,undef,$filter,$action,\$numtitles,'modifycourse')); |
undef,undef,$filter,$action,\$numtitles,'modifycourse', |
|
undef,undef,undef,\@codetitles)); |
if ($type eq 'Community') { |
if ($type eq 'Community') { |
$r->print(&mt('Actions available after searching for a community:').'<ul>'. |
$r->print(&mt('Actions available after searching for a community:').'<ul>'. |
'<li>'.&mt('Enter the community with the role of [_1]',$cctitle).'</li>'."\n". |
'<li>'.&mt('Enter the community with the role of [_1]',$cctitle).'</li>'."\n". |
Line 192 sub print_course_selection_page {
|
Line 193 sub print_course_selection_page {
|
my %filter; |
my %filter; |
my $action = '/adm/modifycourse'; |
my $action = '/adm/modifycourse'; |
my $dctitle = &Apache::lonnet::plaintext('dc'); |
my $dctitle = &Apache::lonnet::plaintext('dc'); |
my $numtitles; |
my ($numtitles,@codetitles); |
$r->print(&Apache::lonpickcourse::js_changer()); |
$r->print(&Apache::lonpickcourse::js_changer()); |
$r->print(&mt('Revise your search criteria for this domain').' ('.$domdesc.').<br />'); |
$r->print(&mt('Revise your search criteria for this domain').' ('.$domdesc.').<br />'); |
$r->print(&Apache::lonpickcourse::build_filters($filterlist,$type, |
$r->print(&Apache::lonpickcourse::build_filters($filterlist,$type, |
undef,undef,\%filter,$action,\$numtitles)); |
undef,undef,\%filter,$action,\$numtitles, |
|
undef,undef,undef,undef,\@codetitles)); |
$filter{'domainfilter'} = $dom; |
$filter{'domainfilter'} = $dom; |
my %courses = &Apache::lonpickcourse::search_courses($r,$type,0, |
my %courses = &Apache::lonpickcourse::search_courses($r,$type,0, |
\%filter,$numtitles); |
\%filter,$numtitles,undef, |
|
undef,undef,\@codetitles); |
&Apache::lonpickcourse::display_matched_courses($r,$type,0,$action,undef,undef,undef, |
&Apache::lonpickcourse::display_matched_courses($r,$type,0,$action,undef,undef,undef, |
%courses); |
%courses); |
return; |
return; |
Line 241 sub print_modification_menu {
|
Line 244 sub print_modification_menu {
|
url => &phaseurl('setparms'), |
url => &phaseurl('setparms'), |
permission => 1, |
permission => 1, |
#help => '', |
#help => '', |
icon => 'mcrs.png', |
icon => 'crsconf.png', |
linktitle => '' |
linktitle => '' |
}, |
}, |
{ |
{ |
Line 249 sub print_modification_menu {
|
Line 252 sub print_modification_menu {
|
url => &phaseurl('setquota'), |
url => &phaseurl('setquota'), |
permission => 1, |
permission => 1, |
#help => '', |
#help => '', |
icon => 'mcrs.png', |
icon => 'groupportfolioquota.png', |
linktitle => '' |
linktitle => '' |
}, |
}, |
{ |
{ |
Line 257 sub print_modification_menu {
|
Line 260 sub print_modification_menu {
|
url => &phaseurl('catsettings'), |
url => &phaseurl('catsettings'), |
permission => (@additional_params > 0), |
permission => (@additional_params > 0), |
#help => '', |
#help => '', |
icon => 'mcrs.png', |
icon => 'ccatconf.png', |
linktitle => '' |
linktitle => '' |
}, |
}, |
{ |
{ |
Line 265 sub print_modification_menu {
|
Line 268 sub print_modification_menu {
|
url => &phaseurl('viewparms'), |
url => &phaseurl('viewparms'), |
permission => ($type ne 'Community'), |
permission => ($type ne 'Community'), |
#help => '', |
#help => '', |
icon => 'mcrs.png', |
icon => 'roles.png', |
linktitle => '' |
linktitle => '' |
}, |
}, |
] |
] |