version 1.1457, 2025/02/18 02:38:06
|
version 1.1467, 2025/03/01 17:20:16
|
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 7087 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 7106 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 7115 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 7337 form, .inline {
|
Line 7343 form, .inline {
|
font-size: 1.17em; |
font-size: 1.17em; |
} |
} |
|
|
|
.LC_heading_3 { |
|
font-size: 1.0em; |
|
} |
|
|
.LC_menus_content.shown{ |
.LC_menus_content.shown{ |
display: block; |
display: block; |
} |
} |
Line 7995 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; |
table#LC_helpmenu fieldset legend { |
padding: 0; |
font-size: larger; |
border: 0; |
} |
} |
|
|
.LC_helpdesk_headbox { |
.LC_helpdesk_headbox { |
Line 8286 table.LC_prior_tries td {
|
Line 8296 table.LC_prior_tries td {
|
padding: 6px; |
padding: 6px; |
} |
} |
|
|
.LC_prob_status { |
span.LC_prob_status { |
margin-top: 5px; |
margin: 5px 0 0 0; |
padding-top: 0; |
padding: 0 5px 0 0; |
padding-left: 0; |
vertical-align: middle; |
padding-bottom: 0; |
} |
padding-right: 5px; |
|
|
div.LC_prob_status_outer { |
|
display: inline-block; |
|
margin: -5px 0 0 0; |
|
padding: 0; |
|
} |
|
|
|
div.LC_prob_status_inner { |
|
display: inline-block; |
|
margin: 0 5px 0 0; |
|
padding: 5px; |
} |
} |
|
|
.LC_mail_actions { |
.LC_mail_actions { |
Line 8462 div.LC_grade_show_user div.LC_Box {
|
Line 8482 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 8492 table.LC_scantron_action tr th {
|
Line 8516 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 8557 img.stift {
|
Line 8587 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 8640 fieldset {
|
Line 8671 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 9338 pre.LC_wordwrap {
|
Line 9370 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 9903 sub xml_begin {
|
Line 9961 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 10816 sub simple_error_page {
|
Line 10874 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 10839 sub simple_error_page {
|
Line 10899 sub simple_error_page {
|
return; |
return; |
} |
} |
|
|
|
sub set_data_table_count { |
|
my ($count) = @_; |
|
unshift(@row_count,$count); |
|
} |
|
|
sub start_data_table { |
sub start_data_table { |
my ($add_class,$id) = @_; |
my ($add_class,$id) = @_; |
my $css_class = (join(' ','LC_data_table',$add_class)); |
my $css_class = (join(' ','LC_data_table',$add_class)); |
Line 10886 sub simple_error_page {
|
Line 10951 sub simple_error_page {
|
} |
} |
|
|
sub start_data_table_header_row { |
sub start_data_table_header_row { |
return '<tr class="LC_header_row">'."\n";; |
my ($add_class,$id) = @_; |
|
my $css_class = 'LC_header_row'; |
|
$css_class = (join(' ',$css_class,$add_class)) unless ($add_class eq ''); |
|
$id = (' id="'.$id.'"') unless ($id eq ''); |
|
return '<tr class="'.$css_class.'"'.$id.'>'."\n"; |
} |
} |
|
|
sub end_data_table_header_row { |
sub end_data_table_header_row { |
Line 19013 Returns: HTML to display with informatio
|
Line 19082 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 19029 sub check_release_result {
|
Line 19098 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 19646 sub create_captcha {
|
Line 19715 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; |