--- loncom/auth/lonlogin.pm 2008/03/08 02:53:25 1.102 +++ loncom/auth/lonlogin.pm 2009/01/05 17:39:43 1.106.2.3 @@ -1,7 +1,7 @@ # The LearningOnline Network # Login Screen # -# $Id: lonlogin.pm,v 1.102 2008/03/08 02:53:25 raeburn Exp $ +# $Id: lonlogin.pm,v 1.106.2.3 2009/01/05 17:39:43 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -83,7 +83,7 @@ sub handler { &Apache::loncommon::end_page(); $r->print( $start_page - .'

'.&mt('You are already logged in').'

' + .'

'.&mt('You are already logged in!').'

' .'

'.&mt('Please either [_1]continue the current session[_2] or [_3]logout[_4].', '','','','').'

' .'

'.&mt('Login problems?').'

' @@ -201,7 +201,7 @@ sub handler { $hostname. '/adm/login?domain='.$authdomain.'">'. $hostname.''. - ' (preferred)'.$/; + ' '.&mt('(preferred)').''.$/; $last=$hostname; } $spares.= '
'; @@ -221,16 +221,20 @@ sub handler { $hostname.''; $last=$hostname; } - $r->print(< -The LearningOnline Network with CAPA - - -

This LON-CAPA server is temporarily not available for login

-

Please attempt to login to one of the following servers:

$spares - - -ENDTROUBLE + $r->print( + '' + .'' + .&mt('The LearningOnline Network with CAPA') + .'' + .'' + .'

'.&mt('The LearningOnline Network with CAPA').'

' + .'' + .'

'.&mt('This LON-CAPA server is temporarily not available for login.').'

' + .'

'.&mt('Please attempt to login to one of the following servers:').'

' + .$spares + .'' + .'' + ); return OK; } @@ -262,6 +266,14 @@ ENDTROUBLE if ($login eq '') { $login = $iconpath.'/'.&mt('userauthentication.gif'); } + my $showbanner = 1; + my $showmainlogo = 1; + if (defined(&Apache::loncommon::designparm('login.showlogo_img',$domain))) { + $showbanner = &Apache::loncommon::designparm('login.showlogo_img',$domain); + } + if (defined(&Apache::loncommon::designparm('login.showlogo_logo',$domain))) { + $showmainlogo = &Apache::loncommon::designparm('login.showlogo_logo',$domain); + } my $showadminmail=&Apache::loncommon::designparm('login.adminmail',$domain); my $showcoursecat = &Apache::loncommon::designparm('login.coursecatalog',$domain); @@ -342,8 +354,7 @@ my %lt=&Apache::lonlocal::texthash( 'un' => 'Username', 'pw' => 'Password', 'dom' => 'Domain', - 'perc' => 'percent', - 'load' => 'Load', + 'load' => 'Server Load', 'userload' => 'User Load', 'about' => 'About LON-CAPA', 'access' => 'Accessibility Options', @@ -406,12 +417,21 @@ ENDSERVERFORM if ($shownewuserlink) { $newuserlink = &newuser_link($lt{'newuser'}); } - if ($fullgraph) { $r->print(<print(< - The Learning Online Network with CAPA + +HEADER + if ($showbanner) { + $r->print(< +ENDBANNER + } + $r->print(< @@ -455,9 +475,15 @@ ENDSERVERFORM +ENDSTART + if ($showmainlogo) { + $r->print(< +ENDLOGO + } + $r->print(< @@ -469,11 +495,11 @@ ENDSERVERFORM ENDTOP -} else { - $r->print('

The LearningOnline Network with CAPA

' - .'

'.&mt('Text-based Interface Login').'

' - .$announcements); -} + } else { + $r->print('

The LearningOnline Network with CAPA

' + .'

'.&mt('Text-based Interface Login').'

' + .$announcements); + } $r->print('
'); unless ($fullgraph) { $r->print(< $lt{'remember'}
ENDACCESSOPTIONS -} else { - $r->print(<print(< @@ -495,7 +521,7 @@ ENDACCESSOPTIONS ENDNOOPT -} + } my $logintitle; if ($loginheader eq 'text') { $logintitle = '   '.$lt{'log'}.''; @@ -503,6 +529,10 @@ ENDNOOPT $logintitle = ''.
                       &mt('User Authentication').''; } + my $noscript_warning='' + .''; $r->print(< @@ -510,6 +540,7 @@ ENDNOOPT $logintitle + $noscript_warning @@ -567,7 +598,7 @@ ENDLOGIN - @@ -575,24 +606,24 @@ ENDLOGIN - - - - -

   :

   $lt{'dom'}:  +  $domain
   $lt{'serv'}:  +  $lonhost ($role)
-    $lt{'load'}:  + +    $lt{'load'}:  -  $loadpercent $lt{'perc'} + +  $loadpercent%
-    $lt{'userload'}:  + +    $lt{'userload'}:  -  $userloadpercent $lt{'perc'} + +  $userloadpercent%