version 1.3, 2008/03/12 02:45:07
|
version 1.6, 2009/02/26 16:17:30
|
Line 133 MENU
|
Line 133 MENU
|
if (!defined($navmap)) { |
if (!defined($navmap)) { |
my $requrl = $r->uri; |
my $requrl = $r->uri; |
$env{'user.error.msg'} = "$requrl:bre:0:0:Course not initialized"; |
$env{'user.error.msg'} = "$requrl:bre:0:0:Course not initialized"; |
|
$env{'user.reinit'} = 1; |
return HTTP_NOT_ACCEPTABLE; |
return HTTP_NOT_ACCEPTABLE; |
} |
} |
$r->send_http_header; |
$r->send_http_header; |
Line 154 MENU
|
Line 155 MENU
|
|
|
# Header |
# Header |
my $course_type = &Apache::loncommon::course_type(); |
my $course_type = &Apache::loncommon::course_type(); |
$r->print(&Apache::loncommon::start_page('Navigate '.$course_type. |
$r->print(&Apache::loncommon::start_page(#'Navigate '.$course_type. |
' Contents', |
'Course Contents', |
$js, |
$js, |
{'only_body' => $body_only, |
{'only_body' => $body_only, |
'force_register' => |
'force_register' => |
Line 255 MENU
|
Line 256 MENU
|
|
|
# If we found no problems, print a note to that effect. |
# If we found no problems, print a note to that effect. |
if (!$foundDoableProblem) { |
if (!$foundDoableProblem) { |
$r->print("<font size='+2'>All homework assignments have been completed.</font><br /><br />"); |
$r->print("<font size='+2'>" |
|
.&mt("All homework assignments have been completed.") |
|
."</font><br /><br />"); |
} |
} |
} else { |
} else { |
&Apache::lonnavmaps::add_linkitem(\%toplinkitems,'firsthomework', |
&Apache::lonnavmaps::add_linkitem(\%toplinkitems,'firsthomework', |
Line 321 MENU
|
Line 324 MENU
|
# user knows there was no error. |
# user knows there was no error. |
if ($renderArgs->{'counter'} == 0) { |
if ($renderArgs->{'counter'} == 0) { |
if ($showOnlyHomework) { |
if ($showOnlyHomework) { |
$r->print("<p><font size='+1'>".&mt("All homework is currently completed").".</font></p>"); |
$r->print("<p><font size='+1'>".&mt("All homework is currently completed.")."</font></p>"); |
} else { # both jumpToFirstHomework and normal use the same: course must be empty |
} else { # both jumpToFirstHomework and normal use the same: course must be empty |
$r->print("<p><font size='+1'>This course is empty.</font></p>"); |
$r->print("<p><font size='+1'>".&mt("This course is empty.")."</font></p>"); |
} |
} |
} |
} |
#my $td=&tv_interval($t0); |
#my $td=&tv_interval($t0); |