version 1.1454, 2025/02/14 23:10:30
|
version 1.1464, 2025/02/25 16:33:39
|
Line 1460 $banner_link
|
Line 1460 $banner_link
|
<a href="$link" title="$title" $linkattr>$text</a> |
<a href="$link" title="$title" $linkattr>$text</a> |
END |
END |
} else { |
} else { |
return ' '.$text.' '; |
return ' <h1 class="LC_helpmenu">'.$text.'</h1> '; |
} |
} |
} |
} |
|
|
Line 1472 sub help_menu_js {
|
Line 1472 sub help_menu_js {
|
my $helptopic=&general_help(); |
my $helptopic=&general_help(); |
my $details_link = $httphost.'/adm/help/'.$helptopic.'.hlp'; |
my $details_link = $httphost.'/adm/help/'.$helptopic.'.hlp'; |
my $nothing=&Apache::lonhtmlcommon::javascript_nothing(); |
my $nothing=&Apache::lonhtmlcommon::javascript_nothing(); |
|
my $bannertitle = &mt('Help Menu'); |
|
&js_escape(\$bannertitle); |
|
my $bodytitle = &mt('Documentation'); |
|
&js_escape(\$bodytitle); |
my $start_page = |
my $start_page = |
&Apache::loncommon::start_page('Help Menu', undef, |
&Apache::loncommon::start_page('Help Menu', undef, |
{'frameset' => 1, |
{'frameset' => 1, |
Line 1483 sub help_menu_js {
|
Line 1487 sub help_menu_js {
|
my $end_page = |
my $end_page = |
&Apache::loncommon::end_page({'frameset' => 1, |
&Apache::loncommon::end_page({'frameset' => 1, |
'js_ready' => 1,}); |
'js_ready' => 1,}); |
|
|
my $template .= <<"ENDTEMPLATE"; |
my $template .= <<"ENDTEMPLATE"; |
<script type="text/javascript"> |
<script type="text/javascript"> |
// <![CDATA[ |
// <![CDATA[ |
Line 1508 function helpMenu(target) {
|
Line 1511 function helpMenu(target) {
|
return; |
return; |
} |
} |
function writeHelp(caller) { |
function writeHelp(caller) { |
caller.document.writeln('$start_page\\n<frame name="bannerframe" src="'+banner_link+'" marginwidth="0" marginheight="0" frameborder="0">\\n'); |
caller.document.writeln('$start_page\\n<frame name="bannerframe" title="$bannertitle" src="'+banner_link+'" marginwidth="0" marginheight="0" frameborder="0">\\n'); |
caller.document.writeln('<frame name="bodyframe" src="$details_link" marginwidth="0" marginheight="0" frameborder="0">\\n$end_page'); |
caller.document.writeln('<frame name="bodyframe" title="$bodytitle" src="$details_link" marginwidth="0" marginheight="0" frameborder="0">\\n$end_page'); |
caller.document.close(); |
caller.document.close(); |
caller.focus(); |
caller.focus(); |
} |
} |
Line 5342 sub get_student_view {
|
Line 5345 sub get_student_view {
|
$userview=~s/\<\/html\>//gi; |
$userview=~s/\<\/html\>//gi; |
$userview=~s/\<head\>//gi; |
$userview=~s/\<head\>//gi; |
$userview=~s/\<\/head\>//gi; |
$userview=~s/\<\/head\>//gi; |
|
$userview=~s/\Q<div class="LC_landmark" role="main"\E/<div class="LC_landmark"/; |
$userview=~s/action\s*\=/would_be_action\=/gi; |
$userview=~s/action\s*\=/would_be_action\=/gi; |
$userview=&relative_to_absolute($feedurl,$userview); |
$userview=&relative_to_absolute($feedurl,$userview); |
if (wantarray) { |
if (wantarray) { |
Line 7035 sub bodytag {
|
Line 7039 sub bodytag {
|
my $alttext = &mt('menu state: '.$menustate); |
my $alttext = &mt('menu state: '.$menustate); |
my $tooltip = &mt($tiptext.' standard menus'); |
my $tooltip = &mt($tiptext.' standard menus'); |
$bodytag .= <<"END"; |
$bodytag .= <<"END"; |
<div id="LC_expandingContainer" style="display:inline;"> |
<div id="LC_expandingContainer" style="display:inline;" role="navigation"> |
<div id="LC_collapsible" class="LC_collapse_trigger" style="position: absolute;top: -5px;left: 0px; z-index:101; display:inline;"> |
<div id="LC_collapsible" class="LC_collapse_trigger" style="position: absolute;top: -5px;left: 0px; z-index:101; display:inline;"> |
<a href="#" style="text-decoration:none;"><img class="LC_collapsible_indicator" alt="$alttext" title="$tooltip" src="/res/adm/pages/$menustate.png" style="border:0;margin:0;padding:0;max-width:100%;height:auto" /></a></div> |
<a href="#" style="text-decoration:none;"><img class="LC_collapsible_indicator" alt="$alttext" title="$tooltip" src="/res/adm/pages/$menustate.png" style="border:0;margin:0;padding:0;max-width:100%;height:auto" /></a></div> |
<div class="LC_menus_content $divclass"> |
<div class="LC_menus_content $divclass"> |
Line 7051 END
|
Line 7055 END
|
if ($dc_info) { |
if ($dc_info) { |
$dc_info = qq|<span class="LC_cusr_subheading">$dc_info</span>|; |
$dc_info = qq|<span class="LC_cusr_subheading">$dc_info</span>|; |
} |
} |
$bodytag .= qq|<div id="LC_nav_bar" role="navigation" aria-label="$labeltext">$left $role<br />|; |
$bodytag .= qq|<div id="LC_nav_bar" role="navigation" aria-label="$labeltext">$left $role</div>|; |
unless (($realm eq '') && ($dc_info eq '')) { |
unless (($realm eq '') && ($dc_info eq '')) { |
$bodytag .= qq|<div id="LC_realm" role="complementary"><em>$realm</em> $dc_info</div>|; |
$bodytag .= qq|<div id="LC_realm" role="complementary"><em>$realm</em> $dc_info</div>|; |
} |
} |
Line 7061 END
|
Line 7065 END
|
return $bodytag; |
return $bodytag; |
} |
} |
|
|
$bodytag .= '<div class="LC_landmark" role="navigation" aria-label="'.$labeltext.'">'; |
$bodytag .= '<div class="LC_landmark" style="margin: 3px 0 0 0;" role="navigation" aria-label="'.$labeltext.'">'; |
unless ($env{'request.symb'} =~ m/\.page___\d+___/) { |
unless ($env{'request.symb'} =~ m/\.page___\d+___/) { |
$bodytag .= qq|<div id="LC_nav_bar">$left $role</div>|; |
$bodytag .= qq|<div id="LC_nav_bar">$left $role</div>|; |
} |
} |
Line 7072 END
|
Line 7076 END
|
$dc_info = &dc_courseid_toggle($dc_info); |
$dc_info = &dc_courseid_toggle($dc_info); |
} |
} |
unless (($realm eq '') && ($dc_info eq '')) { |
unless (($realm eq '') && ($dc_info eq '')) { |
$bodytag .= qq|<div id="LC_realm">$realm $dc_info</div>|; |
$bodytag .= qq|<div id="LC_realm" role="complementary">$realm $dc_info</div>|; |
} |
} |
|
$bodytag .= qq|<div style="clear: both; margin: 5px 0 0 0;"></div>|; |
} |
} |
|
|
#if directed to not display the secondary menu, don't. |
#if directed to not display the secondary menu, don't. |
Line 7086 END
|
Line 7091 END
|
#don't show menus for public users |
#don't show menus for public users |
if (!$public){ |
if (!$public){ |
unless ($args->{'no_inline_menu'}) { |
unless ($args->{'no_inline_menu'}) { |
$bodytag .= Apache::lonmenu::secondary_menu($httphost,$ltiscope,$ltimenu, |
$bodytag .= '<div class="LC_landmark" role="navigation" aria-label="Secondary Links">'. |
|
Apache::lonmenu::secondary_menu($httphost,$ltiscope,$ltimenu, |
$args->{'no_primary_menu'}, |
$args->{'no_primary_menu'}, |
$menucoll,$menuref, |
$menucoll,$menuref, |
$args->{'links_disabled'}, |
$args->{'links_disabled'}, |
$args->{'links_target'}); |
$args->{'links_target'}). |
|
'</div>'; |
} |
} |
$bodytag .= Apache::lonmenu::serverform(); |
$bodytag .= Apache::lonmenu::serverform(); |
if ($need_endlcint) { |
if ($need_endlcint) { |
Line 7105 END
|
Line 7112 END
|
$args->{'group'},$args->{'hide_buttons'}, |
$args->{'group'},$args->{'hide_buttons'}, |
$hostname,$ltiscope,$ltiuri,$showncrumbsref); |
$hostname,$ltiscope,$ltiuri,$showncrumbsref); |
} else { |
} else { |
$bodytag .= |
$bodytag .= |
&Apache::lonmenu::prepare_functions($env{'request.noversionuri'}, |
&Apache::lonmenu::prepare_functions($env{'request.noversionuri'}, |
$forcereg,$args->{'group'}, |
$forcereg,$args->{'group'}, |
$args->{'bread_crumbs'}, |
$args->{'bread_crumbs'}, |
Line 7114 END
|
Line 7121 END
|
} else { |
} else { |
# this is to separate menu from content when there's no secondary |
# this is to separate menu from content when there's no secondary |
# menu. Especially needed for publicly accessible resources. |
# menu. Especially needed for publicly accessible resources. |
$bodytag .= '<hr style="clear:both" />'; |
$bodytag .= '<hr style="clear:both" role="complementary" />'; |
if ($need_endlcint) { |
if ($need_endlcint) { |
$bodytag .= Apache::lonhtmlcommon::scripttag('', 'end'); |
$bodytag .= Apache::lonhtmlcommon::scripttag('', 'end'); |
} |
} |
Line 7334 form, .inline {
|
Line 7341 form, .inline {
|
|
|
.LC_heading_2 { |
.LC_heading_2 { |
font-size: 1.17em; |
font-size: 1.17em; |
margin-top: 1em; |
} |
margin-bottom: 1em; |
|
|
.LC_heading_3 { |
|
font-size: 1.0em; |
} |
} |
|
|
.LC_menus_content.shown{ |
.LC_menus_content.shown{ |
Line 7996 table.LC_parm_overview_restrictions th {
|
Line 8005 table.LC_parm_overview_restrictions th {
|
border-color: $pgbg; |
border-color: $pgbg; |
} |
} |
|
|
table#LC_helpmenu { |
h1.LC_helpmenu { |
border: none; |
display: inline; |
height: 55px; |
font-size: 100%; |
border-spacing: 0; |
font-weight: normal; |
|
line-height: 1em; |
|
margin: 0; |
|
padding: 0; |
|
border: 0; |
} |
} |
|
|
table#LC_helpmenu fieldset legend { |
.LC_helpdesk_headbox { |
font-size: larger; |
border: 2px groove threedface; |
|
padding: 1em; |
} |
} |
|
|
table#LC_helpmenu_links { |
h1.LC_helpdesk_legend { |
width: 100%; |
float: left; |
border: 1px solid black; |
margin: -1.7em 0 0; |
|
padding: 0 .5em; |
background: $pgbg; |
background: $pgbg; |
|
font-size: 1em; |
|
font-weight: bold; |
|
} |
|
|
|
h1.LC_helpdesk_title { |
|
display: inline; |
|
font-size: 1em; |
|
line-height: 2.5em; |
|
margin: 0; |
padding: 0; |
padding: 0; |
border-spacing: 1px; |
vertical-align: bottom; |
} |
} |
|
|
table#LC_helpmenu_links tr td { |
.LC_helpdesk_links { |
padding: 1px; |
border: 1px solid black; |
|
padding: 3px; |
background: $tabbg; |
background: $tabbg; |
text-align: center; |
text-align: center; |
font-weight: bold; |
font-weight: bold; |
|
display: inline; |
|
margin-right: -6px; |
|
} |
|
|
|
.LC_helpdesk_img, |
|
.LC_helpdesk_text { |
|
padding: 0; |
|
margin: 0; |
|
border: 0; |
|
display: inline; |
} |
} |
|
|
table#LC_helpmenu_links a:link, |
.LC_helpdesk_img a:link, |
table#LC_helpmenu_links a:visited, |
.LC_helpdesk_img a:visited, |
table#LC_helpmenu_links a:active { |
.LC_helpdesk_img a:active, |
|
.LC_helpdesk_text a:link, |
|
.LC_helpdesk_text a:visited, |
|
.LC_helpdesk_text a:active { |
text-decoration: none; |
text-decoration: none; |
color: $font; |
color: $font; |
} |
} |
|
|
table#LC_helpmenu_links a:hover { |
div.LC_helpdesk_text a:hover { |
text-decoration: underline; |
text-decoration: underline; |
color: $vlink; |
color: $vlink; |
} |
} |
Line 8434 div.LC_grade_show_user div.LC_Box {
|
Line 8472 div.LC_grade_show_user div.LC_Box {
|
margin-right: 50px; |
margin-right: 50px; |
} |
} |
|
|
|
div.LC_grade_show_user div.LC_Box table tr th { |
|
font-weight: normal; |
|
} |
|
|
div.LC_grade_submissions, |
div.LC_grade_submissions, |
div.LC_grade_message_center, |
div.LC_grade_message_center, |
div.LC_grade_info_links { |
div.LC_grade_info_links { |
Line 8464 table.LC_scantron_action tr th {
|
Line 8506 table.LC_scantron_action tr th {
|
font-style:normal; |
font-style:normal; |
} |
} |
|
|
|
div.LC_edit_problem_daxe_header { |
|
padding: 3px; |
|
background: $tabbg; |
|
z-index: 100; |
|
} |
|
|
.LC_edit_problem_header, |
.LC_edit_problem_header, |
div.LC_edit_problem_footer { |
div.LC_edit_problem_footer { |
font-weight: normal; |
font-weight: normal; |
Line 8529 img.stift {
|
Line 8577 img.stift {
|
vertical-align: middle; |
vertical-align: middle; |
} |
} |
|
|
table td.LC_mainmenu_col_fieldset { |
div.LC_mainmenu { |
vertical-align: top; |
margin: 3px 2px 2px 1px; |
|
float: left; |
} |
} |
|
|
div.LC_createcourse { |
div.LC_createcourse { |
Line 8612 fieldset {
|
Line 8661 fieldset {
|
} |
} |
|
|
fieldset#LC_selectuser { |
fieldset#LC_selectuser { |
margin: 0; |
margin: -1px 0 0 0; |
padding: 0; |
padding: 0; |
|
border: 0; |
} |
} |
|
|
article.geogebraweb div { |
article.geogebraweb div { |
Line 9310 pre.LC_wordwrap {
|
Line 9360 pre.LC_wordwrap {
|
/* |
/* |
styles used for response display |
styles used for response display |
*/ |
*/ |
div.LC_radiofoil, div.LC_rankfoil { |
div.LC_radiofoil, div.LC_rankfoil, div.LC_optionfoil, div.LC_matchfoil, div.LC_login_links { |
margin: .5em 0em .5em 0em; |
margin: .5em 0em .5em 0em; |
} |
} |
table.LC_itemgroup { |
table.LC_itemgroup { |
margin-top: 1em; |
margin-top: 1em; |
} |
} |
|
|
|
table.LC_itemgroup tr th { |
|
font-weight: normal; |
|
} |
|
|
|
fieldset.LC_webbubbles { |
|
margin: 2px 0 0 0; |
|
padding: 0; |
|
border: 0; |
|
} |
|
|
|
ul.LC_webbubbles { |
|
list-style: none; |
|
padding: 0; |
|
margin: 0; |
|
text-align: left; |
|
float: left; |
|
} |
|
|
|
ul.LC_webbubbles li { |
|
line-height: 1.8em; |
|
border: 1px solid black; |
|
padding: 0 2px 0 5px; |
|
margin: 0 0 0 -1px; |
|
float: left; |
|
} |
|
|
/* |
/* |
styles used by TTH when "Default set of options to pass to tth/m |
styles used by TTH when "Default set of options to pass to tth/m |
when converting TeX" in course settings has been set |
when converting TeX" in course settings has been set |
Line 9740 OFFLOAD
|
Line 9816 OFFLOAD
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
<meta name="apple-mobile-web-app-capable" content="yes" />'; |
<meta name="apple-mobile-web-app-capable" content="yes" />'; |
} |
} |
$result .= '<meta name="google" content="notranslate" />'."\n"; |
$result .= '<meta name="google" content="notranslate"'; |
|
if (!$args->{'frameset'}) { |
|
$result .= ' /'; |
|
} |
|
$result .= '>'."\n"; |
return $result.'</head>'; |
return $result.'</head>'; |
} |
} |
|
|
Line 9871 sub xml_begin {
|
Line 9951 sub xml_begin {
|
.'xmlns="http://www.w3.org/1999/xhtml">'; |
.'xmlns="http://www.w3.org/1999/xhtml">'; |
} elsif ($is_frameset) { |
} elsif ($is_frameset) { |
$output='<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">'."\n". |
$output='<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">'."\n". |
'<html>'."\n"; |
'<html lang="en">'."\n"; |
} else { |
} else { |
$output='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'."\n". |
$output='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'."\n". |
'<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">'."\n"; |
'<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">'."\n"; |
Line 10784 sub simple_error_page {
|
Line 10864 sub simple_error_page {
|
} |
} |
|
|
my $page = |
my $page = |
&Apache::loncommon::start_page($title,'',\%displayargs). |
&Apache::loncommon::start_page($title,'',\%displayargs)."\n". |
|
'<div class="LC_landmark" style="clear:both" role="main">'. |
'<p class="LC_error">'.$msg.'</p>'. |
'<p class="LC_error">'.$msg.'</p>'. |
|
'</div>'. |
&Apache::loncommon::end_page(); |
&Apache::loncommon::end_page(); |
if (ref($r)) { |
if (ref($r)) { |
$r->print($page); |
$r->print($page); |
Line 18981 Returns: HTML to display with informatio
|
Line 19063 Returns: HTML to display with informatio
|
sub check_release_result { |
sub check_release_result { |
my ($switchwarning,$switchserver) = @_; |
my ($switchwarning,$switchserver) = @_; |
my $output = &start_page('Selected course unavailable on this server'). |
my $output = &start_page('Selected course unavailable on this server'). |
'<p class="LC_warning">'; |
'<div class="LC_landmark" role="main"><p class="LC_warning">'; |
if ($switchwarning) { |
if ($switchwarning) { |
$output .= $switchwarning.'<br /><a href="/adm/roles">'; |
$output .= $switchwarning.'<br /><a href="/adm/roles">'; |
if (&show_course()) { |
if (&show_course()) { |
Line 18997 sub check_release_result {
|
Line 19079 sub check_release_result {
|
&mt('Switch Server'). |
&mt('Switch Server'). |
'</a>'; |
'</a>'; |
} |
} |
$output .= '</p>'.&end_page(); |
$output .= '</p></div>'.&end_page(); |
return $output; |
return $output; |
} |
} |
|
|
Line 19614 sub create_captcha {
|
Line 19696 sub create_captcha {
|
$output = '<input type="hidden" name="crypt" value="'.$md5sum.'" />'."\n". |
$output = '<input type="hidden" name="crypt" value="'.$md5sum.'" />'."\n". |
'<span class="LC_nobreak">'. |
'<span class="LC_nobreak">'. |
'<label>'.&mt('Type in the letters/numbers shown below').' '. |
'<label>'.&mt('Type in the letters/numbers shown below').' '. |
'<input type="text" size="5" name="code" value="" autocomplete="new-password" />'. |
'<input type="text" size="5" name="code" value="" autocomplete="new-password" aria-required="true" />'. |
'</label></span><br />'. |
'</label></span><br />'. |
'<img src="'.$captcha_params{'www_output_dir'}.'/'.$md5sum.'.png" alt="captcha" />'; |
'<img src="'.$captcha_params{'www_output_dir'}.'/'.$md5sum.'.png" alt="captcha" />'; |
last; |
last; |