version 1.43, 2013/12/30 00:34:49
|
version 1.47, 2022/05/24 16:23:03
|
Line 36 use Apache::lonlocal;
|
Line 36 use Apache::lonlocal;
|
use Apache::lonnet; |
use Apache::lonnet; |
use lib '/home/httpd/lib/perl/'; |
use lib '/home/httpd/lib/perl/'; |
use LONCAPA; |
use LONCAPA; |
|
use HTML::Entities(); |
|
|
sub handler { |
sub handler { |
my ($r) = @_; |
my ($r) = @_; |
Line 63 sub handler {
|
Line 64 sub handler {
|
} |
} |
my $faqbaseurl = $Apache::lonnet::perlvar{'FAQHost'}; |
my $faqbaseurl = $Apache::lonnet::perlvar{'FAQHost'}; |
my $origmail = $Apache::lonnet::perlvar{'lonSupportEMail'}; |
my $origmail = $Apache::lonnet::perlvar{'lonSupportEMail'}; |
|
$origurl = &unescape($origurl); |
my $defdom; |
my $defdom; |
if ($env{'request.course.id'}) { |
if ($env{'request.course.id'}) { |
$defdom = $env{'course.'.$env{'request.course.id'}.'.domain'}; |
$defdom = $env{'course.'.$env{'request.course.id'}.'.domain'}; |
Line 83 sub handler {
|
Line 85 sub handler {
|
|
|
sub display_help_banner { |
sub display_help_banner { |
my ($r,$faq,$bug,$topic,$component_url,$origurl,$bugurl,$faqbaseurl,$requestmail,$stayOnPage) = @_; |
my ($r,$faq,$bug,$topic,$component_url,$origurl,$bugurl,$faqbaseurl,$requestmail,$stayOnPage) = @_; |
my $location=&Apache::loncommon::lonhttpdurl("/adm"); |
|
my $dom = $env{'request.role.domain'}; |
my $dom = $env{'request.role.domain'}; |
my $scripttag = ''; |
my $scripttag = ''; |
if ($requestmail) { |
if ($requestmail) { |
Line 179 sub helpmenu_items {
|
Line 180 sub helpmenu_items {
|
lastloc => 'Go back', |
lastloc => 'Go back', |
close => 'Close', |
close => 'Close', |
); |
); |
|
my $target = '_top'; |
|
if (($env{'request.lti.login'}) && ($env{'request.lti.target'} eq 'iframe')) { |
|
$target = '_parent'; |
|
} |
|
if (($env{'request.deeplink.login'}) && ($env{'request.deeplink.target'} eq '_self')) { |
|
$target = '_parent'; |
|
} |
my %items = ( |
my %items = ( |
general => { |
general => { |
href => '/adm/help/'.$general_help.'.hlp', |
href => '/adm/help/'.$general_help.'.hlp', |
Line 224 sub helpmenu_items {
|
Line 232 sub helpmenu_items {
|
text => $lt{'manuals_pdf'}, |
text => $lt{'manuals_pdf'}, |
}, |
}, |
lastloc => { |
lastloc => { |
href => $origurl, |
href => &HTML::Entities::encode($origurl,'"&<>'), |
img => '/res/adm/pages/tolastloc.png', |
img => '/res/adm/pages/tolastloc.png', |
alt => $lt{'lastloc'}, |
alt => $lt{'lastloc'}, |
text => $lt{'lastloc'}, |
text => $lt{'lastloc'}, |
target => '_top', |
target => $target, |
}, |
}, |
close => { |
close => { |
href => 'javascript:window.close()', |
href => 'javascript:window.close()', |
img => $location.'/lonIcons/close.gif', |
img => $location.'/lonIcons/close.gif', |
alt => $lt{'close'}, |
alt => $lt{'close'}, |
text => $lt{'close'}, |
text => $lt{'close'}, |
target => '_top', |
target => $target, |
}, |
}, |
); |
); |
my %help_submenu = ( |
my %help_submenu = ( |
manuals_web => [ |
manuals_web => [ |
['/adm/help/course.manual.access.hlp','Course Coordination','course'], |
['/adm/help/course.manual.access.hlp','Course Coordination','course'], |
['/adm/help/course.manual.access.hlp','Authoring','author'], |
['/adm/help/author.manual.access.hlp','Authoring','author'], |
], |
], |
manuals_pdf => [ |
manuals_pdf => [ |
['/adm/help/course.manual.pdf','Course Coordination','course'], |
['/adm/help/course.manual.pdf','Course Coordination','course'], |
['/adm/help/course.manual.pdf','Authoring','author'], |
['/adm/help/author.manual.pdf','Authoring','author'], |
], |
], |
); |
); |
my @order = ('general'); |
my @order = ('general'); |
Line 391 sub display_help_mainpage {
|
Line 399 sub display_help_mainpage {
|
$r->print(&Apache::loncommon::start_page('Help Content',undef, |
$r->print(&Apache::loncommon::start_page('Help Content',undef, |
{'only_body' => 1,})); |
{'only_body' => 1,})); |
} |
} |
|
my $target = '_top'; |
|
if (($env{'request.lti.login'}) && ($env{'request.lti.target'} eq 'iframe')) { |
|
$target = '_parent'; |
|
} |
|
if (($env{'request.deeplink.login'}) && ($env{'request.deeplink.target'} eq '_self')) { |
|
$target = '_parent'; |
|
} |
if ($stayOnPage) { |
if ($stayOnPage) { |
$r->print('<div>'); |
$r->print('<div>'); |
} |
} |
Line 424 sub display_help_mainpage {
|
Line 439 sub display_help_mainpage {
|
&mt('[_1]Note[_2]: questions about course content should not be directed to the support team, but instead should be sent to the course instructor.'). |
&mt('[_1]Note[_2]: questions about course content should not be directed to the support team, but instead should be sent to the course instructor.'). |
' '. |
' '. |
&mt('This can be done by clicking the [_1]Communicate[_2] link or the "Send Feedback" link when viewing a content page.', |
&mt('This can be done by clicking the [_1]Communicate[_2] link or the "Send Feedback" link when viewing a content page.', |
'<a href="/adm/communicate" target="_top">','</a>')); |
'<a href="/adm/communicate" target="'.$target.'">','</a>')); |
} |
} |
$r->print("</p>"); |
$r->print("</p>"); |
} |
} |