[LON-CAPA-cvs] cvs: loncom /auth lonlogin.pm

raeburn lon-capa-cvs@mail.lon-capa.org
Wed, 15 Nov 2006 00:53:48 -0000


raeburn		Tue Nov 14 19:53:48 2006 EDT

  Modified files:              
    /loncom/auth	lonlogin.pm 
  Log:
  Replace buttons for "Accessibility" and "About Lon-CAPA" with links.
  
  Add link to course catalog.
  
  Rename and move "Help" link.
  
  Make "Contact Helpdesk" link more prominent.
  
  
Index: loncom/auth/lonlogin.pm
diff -u loncom/auth/lonlogin.pm:1.83 loncom/auth/lonlogin.pm:1.84
--- loncom/auth/lonlogin.pm:1.83	Thu Nov  9 21:02:57 2006
+++ loncom/auth/lonlogin.pm	Tue Nov 14 19:53:48 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Login Screen
 #
-# $Id: lonlogin.pm,v 1.83 2006/11/10 02:02:57 raeburn Exp $
+# $Id: lonlogin.pm,v 1.84 2006/11/15 00:53:48 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -302,17 +302,19 @@
 		  'perc' => 'percent',
 		  'load' => 'Load',
                   'userload' => 'User Load',
-                  'about'  => 'aboutlon.gif',
-                  'access' => 'accessbutton.gif',
+                  'about'  => 'About LON-CAPA',
+                  'access' => 'Accessibility Options',
+                  'catalog' => 'Course Catalog',
 		  'auth' => 'userauthentication.gif',
 		  'log' => 'Log in',
-		  'help' => 'Help',
+		  'help' => 'Log-in Help',
 		  'serv' => 'Server',
                   'helpdesk' => 'Contact Helpdesk',
                   'forgotpw' => 'Forgot password?');
 # -------------------------------------------------- Change password field name
     my $now=time;
-    my $forgotpw = &forgotpwdisplay(\%lt);
+    my $forgotpw = &forgotpwdisplay(%lt);
+    my $loginhelp = &loginhelpdisplay(%lt);
 # ---------------------------------------------------------- Serve rest of page
     $r->print(<<ENDSCRIPT);
 
@@ -416,14 +418,26 @@
   </tr>
   <tr>
    
-   <!-- A cell that will hold the 'access' and 'about' buttons -->
+   <!-- A cell that will hold the 'access', 'about', and 'catalog' links -->
    <!-- Row 3 Column 1 -->
-   <td valign="top" height=60 align="center" bgcolor="$sidebg">
-    <a href="/adm/login?interface=textual"><img src="$iconpath/$lt{'access'}" border=0 alt="Accessibility Options" /></a>
-    <br />
-    <a href="/adm/about.html"><img src="$iconpath/$lt{'about'}" border=0 alt="About LON-CAPA" /></a>
-   </td>
-
+   <td valign="top" height=60 align="left" bgcolor="$sidebg">
+    <table cellpadding="0" cellspacing="2" border="0">
+     <tr>
+      <td>&nbsp;</td>
+      <td><a href="/adm/login?interface=textual"><b>$lt{'access'}</b></a></td>
+    </tr>
+    <tr>
+     <td>&nbsp;</td>
+     <td><a href="/adm/about.html"><b>$lt{'about'}</b></a></td>
+    </tr>
+    <tr>
+     <td>&nbsp;</td>
+     <td><a href="/adm/coursecatalog"><b>$lt{'catalog'}</b></a></td>
+    </tr>
+    <tr>
+      <td colspan="2">&nbsp;</td>
+    </tr>
+   </table>
    <!-- The shaded space between the two main columns -->
    <!-- Row 3 Column 2 -->
    <td width=27 height=60 background="$iconpath/fillleft.gif"><img src="$iconpath/fillleft.gif" alt="" /></td>
@@ -489,7 +503,7 @@
        <td bgcolor="$mainbg"><input type="text" name="udom" size="10" value="$authdomain" /></td>
       </tr>
       <tr>
-       <td bgcolor="$mainbg">&nbsp;&nbsp;&nbsp;<a href="/adm/loginproblems.html">$lt{'help'}</a></td>
+       <td bgcolor="$mainbg">&nbsp;</td>
        <td bgcolor="$mainbg" valign="bottom" align="center">
         <br />
         <input type="submit" value="$lt{'log'}" />
@@ -497,6 +511,7 @@
       </tr>
       <tr>
        <td bgcolor="$mainbg" valign="bottom" align="left" colspan="2">
+        $loginhelp
         $forgotpw
        </td>
       </tr>
@@ -610,7 +625,7 @@
         $showhelpdesk = 1;
     }
     if ($showhelpdesk) {
-        $contactblock .= '<b>&nbsp;&nbsp;&nbsp;<a href="javascript:helpdesk()">'.$$lt{'helpdesk'}.'</a></b><br />';
+        $contactblock .= '<b>&nbsp;&nbsp;&nbsp;<a href="javascript:helpdesk()"><font size="+1">'.$lt->{'helpdesk'}.'</font></a></b><br />';
         my $thisurl = &escape('/adm/login');
         $$helpdeskscript = <<"ENDSCRIPT";
 <script type="text/javascript">
@@ -633,14 +648,22 @@
 }
 
 sub forgotpwdisplay {
-    my ($lt) = @_;
+    my (%lt) = @_;
     my $prompt_for_resetpw = 1; 
     if ($prompt_for_resetpw) {
-        return '<br />&nbsp;&nbsp;&nbsp;<a href="/adm/resetpw">'.$lt->{'forgotpw'}.'</a></b><br /><br />';
+        return '<br />&nbsp;&nbsp;&nbsp;<a href="/adm/resetpw">'.$lt{'forgotpw'}.'</a></b><br /><br />';
+    }
+    return;
+}
+
+sub loginhelpdisplay {
+    my (%lt) = @_;
+    my $login_help = 1;
+    if ($login_help) {
+        return '&nbsp;&nbsp;&nbsp;<a href="/adm/loginproblems.html">'.$lt{'help'}.'</a></b>';
     }
     return;
 }
- 
 
 1;
 __END__