version 1.18, 2007/01/12 23:37:22
|
version 1.19, 2007/01/14 01:59:37
|
Line 59 sub handler {
|
Line 59 sub handler {
|
&Apache::lonacc::get_posted_cgi($r); |
&Apache::lonacc::get_posted_cgi($r); |
&Apache::lonlocal::get_language_handle($r); |
&Apache::lonlocal::get_language_handle($r); |
&Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'},['sortby']); |
&Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'},['sortby']); |
my $codedom = $Apache::lonnet::perlvar{'lonDefDomain'}; |
my $codedom = &Apache::lonnet::default_login_domain(); |
|
|
|
if (($env{'user.domain'} ne '') && ($env{'user.domain'} ne 'public')) { |
|
$codedom = $env{'user.domain'}; |
|
if ($env{'request.role.domain'} ne '') { |
|
$codedom = $env{'request.role.domain'}; |
|
} |
|
} |
my $formname = 'coursecatalog'; |
my $formname = 'coursecatalog'; |
my $domdesc = $Apache::lonnet::domaindescription{$codedom}; |
my $domdesc = $Apache::lonnet::domaindescription{$codedom}; |
|
|
Line 87 sub course_details {
|
Line 94 sub course_details {
|
'add_entries' => \%add_entries, |
'add_entries' => \%add_entries, |
'no_inline_link' => 1,}); |
'no_inline_link' => 1,}); |
$r->print($start_page); |
$r->print($start_page); |
|
if ($env{'form.numtitles'} > 0) { |
|
&Apache::lonhtmlcommon::add_breadcrumb |
|
({href=>"/adm/coursecatalog", |
|
text=>"Select courses"}); |
|
} |
&Apache::lonhtmlcommon::add_breadcrumb |
&Apache::lonhtmlcommon::add_breadcrumb |
({href=>"/adm/coursecatalog", |
({href=>"javascript:document.$formname.submit()", |
text=>"Select courses"}, |
|
{href=>"javascript:document.$formname.submit()", |
|
text=>"Course listing"}, |
text=>"Course listing"}, |
{text=>"Course details"}); |
{text=>"Course details"}); |
$r->print(&Apache::lonhtmlcommon::breadcrumbs('Course Details')); |
$r->print(&Apache::lonhtmlcommon::breadcrumbs('Course Details')); |
Line 204 function setCourseId(caller) {
|
Line 214 function setCourseId(caller) {
|
'no_inline_link' => 1,}); |
'no_inline_link' => 1,}); |
$r->print($start_page); |
$r->print($start_page); |
if ($env{'form.state'} eq 'listing') { |
if ($env{'form.state'} eq 'listing') { |
&Apache::lonhtmlcommon::add_breadcrumb |
if ($numtitles > 0) { |
({href=>"/adm/coursecatalog", |
&Apache::lonhtmlcommon::add_breadcrumb |
text=>"Select courses"}, |
({href=>"/adm/coursecatalog", |
{text=>"Course listing"}); |
text=>"Select courses"}, |
$r->print(&Apache::lonhtmlcommon::breadcrumbs('Course Listing')); |
{text=>"Course listing"}); |
|
} else { |
|
&Apache::lonhtmlcommon::add_breadcrumb |
|
({text=>"Course listing"}); |
|
} |
|
$r->print(&Apache::lonhtmlcommon::breadcrumbs('Course Listing')); |
} else { |
} else { |
&Apache::lonhtmlcommon::add_breadcrumb |
&Apache::lonhtmlcommon::add_breadcrumb |
({href=>"/adm/coursecatalog", |
({href=>"/adm/coursecatalog", |
Line 267 function setCourseId(caller) {
|
Line 282 function setCourseId(caller) {
|
if ($numtitles > 0) { |
if ($numtitles > 0) { |
$r->print('<input type="submit" name="catalogfilter" value="'.&mt('Display courses').'" />'); |
$r->print('<input type="submit" name="catalogfilter" value="'.&mt('Display courses').'" />'); |
} |
} |
$r->print('</form>'); |
$r->print('<input type="hidden" name="numtitles" value="'. |
|
$numtitles.'" /></form>'); |
if (($numtitles > 0) && ($env{'form.state'} eq 'listing')) { |
if (($numtitles > 0) && ($env{'form.state'} eq 'listing')) { |
$r->print('<br /><br />'); |
$r->print('<br /><br />'); |
} |
} |