version 1.158.2.13, 2021/12/12 11:47:03
|
version 1.158.2.16, 2024/07/04 04:36:42
|
Line 538 function toggleLClogin() {
|
Line 538 function toggleLClogin() {
|
if (document.getElementById('LC_login_text')) { |
if (document.getElementById('LC_login_text')) { |
document.getElementById('LC_login_text').innerHTML = '$samlnonsso'; |
document.getElementById('LC_login_text').innerHTML = '$samlnonsso'; |
} |
} |
|
if ( document.client.uname ) { document.client.uname.focus(); } |
if (document.getElementById('LC_SSO_login')) { |
if (document.getElementById('LC_SSO_login')) { |
document.getElementById('LC_SSO_login').style.display = 'none'; |
document.getElementById('LC_SSO_login').style.display = 'none'; |
} |
} |
Line 691 ENDSERVERFORM
|
Line 692 ENDSERVERFORM
|
LFORM |
LFORM |
|
|
if ($showbanner) { |
if ($showbanner) { |
|
my $alttext = &Apache::loncommon::designparm('login.alttext_img',$domain); |
|
if ($alttext eq '') { |
|
$alttext = 'The Learning Online Network with CAPA'; |
|
} |
$r->print(<<HEADER); |
$r->print(<<HEADER); |
<!-- The LON-CAPA Header --> |
<!-- The LON-CAPA Header --> |
<div style="background:$pgbg;margin:0;width:100%;"> |
<div style="background:$pgbg;margin:0;width:100%;"> |
<img src="$img" border="0" alt="The Learning Online Network with CAPA" class="LC_maxwidth" /> |
<img src="$img" border="0" alt="$alttext" class="LC_maxwidth" id="lcloginbanner" /> |
</div> |
</div> |
HEADER |
HEADER |
} |
} |
Line 730 HEADER
|
Line 735 HEADER
|
} |
} |
my $ssohref; |
my $ssohref; |
if ($samlssoimg ne '') { |
if ($samlssoimg ne '') { |
$ssohref = '<a href="'.$ssologin.'" title="'.$samltooltip.'"><img src="'.$samlssoimg.'" alt="'.$samlssoalt.'" /></a>'; |
$ssohref = '<a href="'.$ssologin.'" title="'.$samltooltip.'">'. |
|
'<img src="'.$samlssoimg.'" alt="'.$samlssoalt.'" id="lcssobutton" /></a>'; |
} else { |
} else { |
$ssohref = '<a href="'.$ssologin.'">'.$samlssotext.'</a>'; |
$ssohref = '<a href="'.$ssologin.'">'.$samlssotext.'</a>'; |
} |
} |
Line 780 ENDSAML
|
Line 786 ENDSAML
|
ENDLOGIN |
ENDLOGIN |
$r->print('</div><div>'."\n"); |
$r->print('</div><div>'."\n"); |
if ($showmainlogo) { |
if ($showmainlogo) { |
$r->print(' <img src="'.$logo.'" alt="" class="LC_maxwidth" />'."\n"); |
my $alttext = &Apache::loncommon::designparm('login.alttext_logo',$domain); |
|
$r->print(' <img src="'.$logo.'" alt="'.$alttext.'" class="LC_maxwidth" id="lcloginmainlogo" />'."\n"); |
} |
} |
$r->print(<<ENDTOP); |
$r->print(<<ENDTOP); |
$announcements |
$announcements |
Line 961 sub redirect_page {
|
Line 968 sub redirect_page {
|
$url .='?firsturl='.$querystring; |
$url .='?firsturl='.$querystring; |
} |
} |
my $start_page = &Apache::loncommon::start_page('Switching Server ...',undef, |
my $start_page = &Apache::loncommon::start_page('Switching Server ...',undef, |
{'redirect' => [0,$url],}); |
{'redirect' => [0,$url],'',1}); |
my $end_page = &Apache::loncommon::end_page(); |
my $end_page = &Apache::loncommon::end_page(); |
return $start_page.$end_page; |
return $start_page.$end_page; |
} |
} |