version 1.106.2.3, 2009/01/05 17:39:43
|
version 1.106.4.2, 2009/08/12 19:44:18
|
Line 84 sub handler {
|
Line 84 sub handler {
|
$r->print( |
$r->print( |
$start_page |
$start_page |
.'<h1>'.&mt('You are already logged in!').'</h1>' |
.'<h1>'.&mt('You are already logged in!').'</h1>' |
.'<p>'.&mt('Please either [_1]continue the current session[_2] or [_3]logout[_4].', |
.'<p>'.&mt('Please either [_1]continue the current session[_2] or [_3]log out[_4].', |
'<a href="/adm/roles">','</a>','<a href="/adm/logout">','</a>').'</p>' |
'<a href="/adm/roles">','</a>','<a href="/adm/logout">','</a>').'</p>' |
.'<p><a href="/adm/loginproblems.html">'.&mt('Login problems?').'</a></p>' |
.'<p><a href="/adm/loginproblems.html">'.&mt('Login problems?').'</a></p>' |
.$end_page |
.$end_page |
Line 283 sub handler {
|
Line 283 sub handler {
|
my $now=time; |
my $now=time; |
my $js = (<<ENDSCRIPT); |
my $js = (<<ENDSCRIPT); |
|
|
<script language="JavaScript"> |
<script type="text/javascript"> |
|
// <![CDATA[ |
function send() |
function send() |
{ |
{ |
this.document.server.elements.uname.value |
this.document.server.elements.uname.value |
Line 327 sub handler {
|
Line 328 sub handler {
|
this.document.server.submit(); |
this.document.server.submit(); |
return false; |
return false; |
} |
} |
|
// ]]> |
</script> |
</script> |
|
|
ENDSCRIPT |
ENDSCRIPT |
Line 386 my %lt=&Apache::lonlocal::texthash(
|
Line 388 my %lt=&Apache::lonlocal::texthash(
|
|
|
if ($fullgraph) { |
if ($fullgraph) { |
$r->print( |
$r->print( |
'<table width="100%" cellpadding=0 cellspacing=0 border=0>'); |
'<table width="100%" cellpadding="0" cellspacing="0" border="0">'); |
} |
} |
|
|
$r->print(<<ENDSERVERFORM); |
$r->print(<<ENDSERVERFORM); |
Line 426 ENDSERVERFORM
|
Line 428 ENDSERVERFORM
|
<td width="100%" height=75 colspan=4 align="left" valign="top" bgcolor="$pgbg"> |
<td width="100%" height=75 colspan=4 align="left" valign="top" bgcolor="$pgbg"> |
HEADER |
HEADER |
if ($showbanner) { |
if ($showbanner) { |
$r->print(<<ENDBANNER); |
$r->print(<<ENDBANNER); |
<img src="$img" border=0 alt="The Learning Online Network with CAPA" /> |
<img src="$img" border="0" alt="The Learning Online Network with CAPA" /> |
ENDBANNER |
ENDBANNER |
} |
} |
$r->print(<<ENDSTART); |
$r->print(<<ENDSTART); |
Line 500 ENDTOP
|
Line 502 ENDTOP
|
.'<h2>'.&mt('Text-based Interface Login').'</h2>' |
.'<h2>'.&mt('Text-based Interface Login').'</h2>' |
.$announcements); |
.$announcements); |
} |
} |
$r->print('<form name="client" onsubmit="return(send())">'); |
$r->print('<form name="client" action="" onsubmit="return(send())">'); |
unless ($fullgraph) { |
unless ($fullgraph) { |
$r->print(<<ENDACCESSOPTIONS); |
$r->print(<<ENDACCESSOPTIONS); |
<h3>$lt{'options_headline'}</h3> |
<h3>$lt{'options_headline'}</h3> |
Line 534 ENDNOOPT
|
Line 536 ENDNOOPT
|
.&mt('Use of LON-CAPA requires Javascript to be enabled in your web browser.') |
.&mt('Use of LON-CAPA requires Javascript to be enabled in your web browser.') |
.'</font></div></noscript></td>'; |
.'</font></div></noscript></td>'; |
$r->print(<<ENDLOGIN); |
$r->print(<<ENDLOGIN); |
<input type="hidden" name="lextkey" value="$lextkey"> |
<input type="hidden" name="lextkey" value="$lextkey" /> |
<input type="hidden" name="uextkey" value="$uextkey"> |
<input type="hidden" name="uextkey" value="$uextkey" /> |
|
|
<!-- Start the sub-table for text and input alignment --> |
<!-- Start the sub-table for text and input alignment --> |
<table border=0 cellspacing=0 cellpadding=0> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr>$logintitle</tr> |
<tr>$logintitle</tr> |
<tr>$noscript_warning</tr> |
<tr>$noscript_warning</tr> |
<tr> |
<tr> |
Line 593 ENDLOGIN
|
Line 595 ENDLOGIN
|
<!-- Row 5 Column 1 --> |
<!-- Row 5 Column 1 --> |
<td bgcolor="$sidebg" valign="middle" align="left"> |
<td bgcolor="$sidebg" valign="middle" align="left"> |
<br /> |
<br /> |
<table border=0 cellspacing=0 cellpadding=0> |
<table border="0" cellspacing="0" cellpadding="0"> |
<tr> |
<tr> |
<td bgcolor="$sidebg" align="left" valign="top"> |
<td bgcolor="$sidebg" align="left" valign="top"> |
<small><b> $lt{'dom'}: </b></small> |
<small><b> $lt{'dom'}: </b></small> |
Line 659 $domainlogo
|
Line 661 $domainlogo
|
</table> |
</table> |
|
|
<script type="text/javascript"> |
<script type="text/javascript"> |
|
// <![CDATA[ |
// the if prevents the script error if the browser can not handle this |
// the if prevents the script error if the browser can not handle this |
if ( document.client.uname ) { document.client.uname.focus(); } |
if ( document.client.uname ) { document.client.uname.focus(); } |
|
// ]]> |
</script> |
</script> |
$helpdeskscript |
$helpdeskscript |
|
|
Line 688 sub contactdisplay {
|
Line 692 sub contactdisplay {
|
my $thisurl = &escape('/adm/login'); |
my $thisurl = &escape('/adm/login'); |
$$helpdeskscript = <<"ENDSCRIPT"; |
$$helpdeskscript = <<"ENDSCRIPT"; |
<script type="text/javascript"> |
<script type="text/javascript"> |
|
// <![CDATA[ |
function helpdesk() { |
function helpdesk() { |
var codedom = document.client.udom.value; |
var codedom = document.client.udom.value; |
if (codedom == '') { |
if (codedom == '') { |
Line 697 function helpdesk() {
|
Line 702 function helpdesk() {
|
document.location.href = "/adm/helpdesk?"+querystr; |
document.location.href = "/adm/helpdesk?"+querystr; |
return; |
return; |
} |
} |
|
// ]]> |
</script> |
</script> |
ENDSCRIPT |
ENDSCRIPT |
} |
} |