--- loncom/interface/lonhelpmenu.pm 2012/12/17 15:55:50 1.40 +++ loncom/interface/lonhelpmenu.pm 2013/08/08 14:31:54 1.42 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # generate frame-based help system # -# $Id: lonhelpmenu.pm,v 1.40 2012/12/17 15:55:50 raeburn Exp $ +# $Id: lonhelpmenu.pm,v 1.42 2013/08/08 14:31:54 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -57,9 +57,9 @@ sub handler { $component_url = '/adm/help/'.$component_url.'.hlp'; } my $bugurl = $Apache::lonnet::perlvar{'BugzillaHost'}; - $bugurl .= 'enter_bug.cgi?product=LON-CAPA&bug_file_loc='.$origurl; + $bugurl .= 'enter_bug.cgi?product=LON-CAPA&bug_file_loc='.$origurl; if ($bug) { - $bugurl .= '&component='.$bug; + $bugurl .= '&component='.$bug; } my $faqbaseurl = $Apache::lonnet::perlvar{'FAQHost'}; my $requestmail = $Apache::lonnet::perlvar{'lonSupportEMail'}; @@ -81,6 +81,7 @@ sub display_help_banner { my $displayurl = &escape($origurl); $scripttag = (<<"SCRIPT_ONE"); SCRIPT_TWO } @@ -140,55 +142,49 @@ SCRIPT_TWO 'topmargin' => "1", 'marginheight' => "1"); my $start_page = - &Apache::loncommon::start_page('',$scripttag, - {'add_entries' => \%body_layout, - 'only_body' => 1,}); + &Apache::loncommon::start_page('Help',$scripttag, + {'only_body' => 1,}); $r->print($start_page); my $width = ($stayOnPage) ? '95%' : '600'; $r->print(''); my $general_help = &Apache::loncommon::general_help(); - $r->print(< - + $r->print(' + +
 
  -
  LON-CAPA help/support +
('.&mt('LON-CAPA help/support').')  '.&mt('LON-CAPA help/support').' - -END + '); if ($component_url) { $r->print("'); + '('.&mt('Topic help').') '.$topic.' '); } if ($requestmail =~ m/^[^\@]+\@[^\@]+$/) { $r->print(' - '); + '); } if ($faq && $env{'user.adv'}) { - $r->print(< (FAQ) FAQ  - -END + $r->print(' + '); } if ($env{'user.adv'}) { if ($helpconfig{'helpsettings'}{'submitbugs'} eq '1' || $helpconfig{'helpsettings'}{'submitbugs'} eq '' ) { - $r->print(<(Report a bug) Report a bug  -END + $r->print(' + '); } } if ($stayOnPage) { - $r->print(< (Return to last location) Return to last location  -END + $r->print(' + '); } else { - $r->print(<(Close window) Close  -END + $r->print(' + '); } $r->print(< @@ -197,7 +193,7 @@ END - +