[LON-CAPA-cvs] cvs: modules /relate lonlogin.pm

raeburn raeburn at source.lon-capa.org
Fri Feb 10 15:30:01 EST 2012


raeburn		Fri Feb 10 20:30:01 2012 EDT

  Modified files:              
    /modules/relate	lonlogin.pm 
  Log:
  - Customization for MITrelate
    - xhtml.
    - include the actual courseID for the prerequisite test.
    - punctuation added to improve readability.
  
  
-------------- next part --------------
Index: modules/relate/lonlogin.pm
diff -u modules/relate/lonlogin.pm:1.2 modules/relate/lonlogin.pm:1.3
--- modules/relate/lonlogin.pm:1.2	Fri Feb 10 16:34:07 2012
+++ modules/relate/lonlogin.pm	Fri Feb 10 20:30:01 2012
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Login Screen
 #
-# $Id: lonlogin.pm,v 1.2 2012/02/10 16:34:07 raeburn Exp $
+# $Id: lonlogin.pm,v 1.3 2012/02/10 20:30:01 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -395,9 +395,9 @@
 
 # ------------------------------------------------------------ Additional Texts
     $lt{'newto'} = &mt('New to the [_1]Learn Physics[_2] site?','<i>','</i>');
-    $lt{'runson'} = &mt('Learn Physics runs on [_1]LON-CAPA[_2] - an open source freeware distributed learning content management and assessment system.',
+    $lt{'runson'} = &mt('Learn Physics runs on [_1]LON-CAPA[_2] - an open source, freeware, distributed learning content management and assessment system.',
                         '<a href="http://loncapa.org/" style="text-decoration: underline;">',
-                        ' <img src="/images/login/lclogosm.gif" width="16" height="14" alt="LC" valign="middle" border="0" /></a>');
+                        ' <img src="/images/login/lclogosm.gif" width="16" height="14" alt="LC" border="0" /></a>');
     $lt{'newhere'} = &mt('New to [_1]Learn Physics[_2]:','<i>','</i>');
     $lt{'exist'} = &mt('Existing [_1]Learn Physics[_2] user','<i>','</i>');
     $lt{'browser'} = &mt('Your browser must allow [_1]cookies[_2]',
@@ -466,7 +466,7 @@
     }
 
 # -------------------------------------------- Static cid for prerequisite test
-    my $prereqcid = 'relate_9615072b469884921relatel1';
+    my $prereqcid = 'relate_3H121116c19344ff3relatel1';
 
 # ---------------------------------------------------- Warning if no Javascript 
     my $noscript_warning = '<noscript><span class="LC_warning">'.
@@ -486,13 +486,13 @@
 <table class="LC_loginbox">
   <tr>
     <td align="left" valign="top" width="11">
-     <img src="/images/login/tlc_11_ffffff_e2e2e2.gif" width="10" height="10" border="0" alt="">
+     <img src="/images/login/tlc_11_ffffff_e2e2e2.gif" width="10" height="10" border="0" alt="" />
     </td>
     <td width="450" valign="top">
       <table class="LC_loginbox_left">
         <tr>
           <td width="411" align="left"><br />
-           <img src="/images/login/LCrelateheader_sm.png" width="411" height="100" alt="Relate @ MIT" align="left"></td>
+           <img src="/images/login/LCrelateheader_sm.png" width="411" height="100" alt="Relate @ MIT" align="left" /></td>
         </tr>
         <tr>
          <td>
@@ -509,14 +509,14 @@
         <td valign="top" class="bodyred" width="430" align="left"><br />
          <span style="font-size: 18px; line-height: 22px; ">$lt{'newto'}</span>
          <br />
-         <span class="bodyred">$lt{'learn'}<br /><br />$lt{'runson'}
+         <span class="bodyred">$lt{'learn'}<br /><br />$lt{'runson'}</span>
          <br /><br />
-         <form name="signup" method="post" action="/adm/createaccount?courseid=$prereqcid"><input type="hidden" name="process" value="signup"/>
+         <form name="signup" method="post" action="/adm/createaccount?courseid=$prereqcid"><input type="hidden" name="process" value="signup" />
          <table class="LC_signup">
            <tr>
-             <td align="left" valign="top" width="11" height="11"><img src="/images/login/tlc_11_993333_ffffff.gif" width="10" height="10" border="0" alt=""></td>
+             <td align="left" valign="top" width="11" height="11"><img src="/images/login/tlc_11_993333_ffffff.gif" width="10" height="10" border="0" alt="" /></td>
              <td> </td>
-             <td align="right" valign="top" width="11" height="11"><img src="/images/login/tr_11_993333_ffffff.gif" width="11" height="11" border="0" alt=""></td>
+             <td align="right" valign="top" width="11" height="11"><img src="/images/login/tr_11_993333_ffffff.gif" width="11" height="11" border="0" alt="" /></td>
            </tr>
            <tr>
              <td> </td>
@@ -524,10 +524,10 @@
              <td> </td>
            </tr>
            <tr>
-             <td align="left" valign="bottom" width="11" height="11"><img src="/images/login/bl_11_993333_ffffff.gif" width="11" height="11" border="0" alt=""></td>
+             <td align="left" valign="bottom" width="11" height="11"><img src="/images/login/bl_11_993333_ffffff.gif" width="11" height="11" border="0" alt="" /></td>
 
              <td> </td>
-             <td align="right" valign="bottom" width="11" height="11"><img src="/images/login/br_11_993333_ffffff.gif" width="11" height="11" border="0" alt=""></td>
+             <td align="right" valign="bottom" width="11" height="11"><img src="/images/login/br_11_993333_ffffff.gif" width="11" height="11" border="0" alt="" /></td>
            </tr>
          </table>
          </form>
@@ -537,42 +537,41 @@
      </td>
      <td width="10"> </td>
      <td valign="top">
-      <form name="client" method="post" onsubmit="return(send());">
+      <form name="client" method="post" onsubmit="return(send());" action="">
       <table class="LC_loginbox_right">
        <tr>
         <td colspan="3" height="23" class="LC_loginbox_strip"> </td>
        </tr>
        <tr>
-        <td align="left" valign="top" width="11" height="11"><img src="/images/login/tlc_11_993333_ffffff.gif" width="10" height="10" border="0" alt=""></td>
+        <td align="left" valign="top" width="11" height="11"><img src="/images/login/tlc_11_993333_ffffff.gif" width="10" height="10" border="0" alt="" /></td>
         <td> </td>
-        <td align="right" valign="top" width="11" height="11"><img src="/images/login/tr_11_993333_ffffff.gif" width="11" height="11" border="0" alt=""></td>
+        <td align="right" valign="top" width="11" height="11"><img src="/images/login/tr_11_993333_ffffff.gif" width="11" height="11" border="0" alt="" /></td>
        </tr>
        <tr>
         <td width="10"> </td>
         <td>
          <table border="0" cellspacing="0" cellpadding="0">
           <tr>
-           <td align="right" class="bodywhite" heighta"=50"><br>
+           <td align="right" class="bodywhite" height="50"><br />
             <span style="font-size: 15px; line-height: 17px; font-weight: bold;">
              $lt{'exist'}</span>
              <br />$lt{'plea'}<br />
-             <hr class="login"><br /><br />
+             <hr class="login" /><br /><br />
             </td>
            </tr>
            <tr>
             <td>
              <table border="0" cellpadding="2" cellspacing="0">
               <tr>
-               <td align="right" class="bodywhite"><label for="uname">$lt{'un'}</label>:</td>
+               <td align="right" class="bodywhite"><label>$lt{'un'}</label>:</td>
                <td align="right"><input type="text" name="uname" size="17" value="" /></td>
                </tr>
                <tr>
-                <td align="right" class="bodywhite"><label for="upass$now">$lt{'pw'}</label>:</td>
-                <td align="right"><input name="upass$now" size="17" value="" type="password"><input type="hidden" name="udom" value="relate" /></td>
+                <td align="right" class="bodywhite"><label>$lt{'pw'}</label>:</td>
+                <td align="right"><input name="upass$now" size="17" value="" type="password" /><input type="hidden" name="udom" value="relate" /></td>
                </tr>
                <tr><td> </td></tr>
                <tr>
-               <tr>
                 <td colspan="2" align="right"><input name="signin" type="submit" value="$lt{'log'}" class="buttonwhite" /></td>
                </tr>
               </table>
@@ -585,7 +584,7 @@
               <span style="font-size: smaller;">$lt{'browser'}</span><br />
               <hr class="login" />
               <br />
-              <a href="/adm/resetpw" style="color: #ffffff; text-decoration:underline;">$lt{'forgotpw'}</a><br>
+              <a href="/adm/resetpw" style="color: #ffffff; text-decoration:underline;">$lt{'forgotpw'}</a><br />
               <br />
              </td>
             </tr>
@@ -594,24 +593,28 @@
           <td width="9"> </td>
         </tr>
         <tr>
-          <td align="left" valign="bottom" width="11" height="11"><img src="/images/login/bl_11_993333_ffffff.gif" width="11" height="11" border="0" alt=""></td>
+          <td align="left" valign="bottom" width="11" height="11"><img src="/images/login/bl_11_993333_ffffff.gif" width="11" height="11" border="0" alt="" /></td>
           <td> </td>
-
-          <td align="right" valign="bottom" width="11" height="11"><img src="/images/login/br_11_993333_ffffff.gif" width="11" height="11" border="0" alt=""></td>
+          <td align="right" valign="bottom" width="11" height="11"><img src="/images/login/br_11_993333_ffffff.gif" width="11" height="11" border="0" alt="" /></td>
         </tr>
       </table>
+      <input type="hidden" name="lextkey" value="$lextkey" />
+      <input type="hidden" name="uextkey" value="$uextkey" />
+      </form>
     </td>
-    <td align="right" valign="top" width="11"><img src="/images/login/tr_11_ffffff_e2e2e2.gif" width="11" height="11" border="0" alt=""></td>
+    <td align="right" valign="top" width="11"><img src="/images/login/tr_11_ffffff_e2e2e2.gif" width="11" height="11" border="0" alt="" /></td>
   </tr>
   <tr>
-   <td colspan="4">
+   <td width="10"> </td>
+   <td colspan="3">
     <br />
     <hr style="clear:both;" />
    </td>
+   <td width="10"> </td>
   </tr>
   <tr>
     <td width="10"> </td>
-    <td colspan="3">
+    <td colspan="4">
     <div style="float: left;">
      <table border="0" cellspacing="0" cellpadding="0">
 $contactrow
@@ -629,17 +632,14 @@
    </td>
   </tr>
   <tr>
-    <td align="left" valign="bottom" width="11"><img src="/images/login/bl_11_ffffff_e2e2e2.gif" width="11" height="11" border="0" alt=""></td>
+    <td align="left" valign="bottom" width="11"><img src="/images/login/bl_11_ffffff_e2e2e2.gif" width="11" height="11" border="0" alt="" /></td>
     <td colspan="3" width="698"> </td>
-    <td align="right" valign="bottom" width="11"><img src="/images/login/br_11_ffffff_e2e2e2.gif" width="11" height="11" border="0" alt=""></td>
+    <td align="right" valign="bottom" width="11"><img src="/images/login/br_11_ffffff_e2e2e2.gif" width="11" height="11" border="0" alt="" /></td>
   </tr>
 </table>
 </div>
 <p> </p>
 $noscript_warning
-     <input type="hidden" name="lextkey" value="$lextkey" />
-     <input type="hidden" name="uextkey" value="$uextkey" />
-  </form>
   <form name="server" action="/adm/authenticate" method="post" target="_top">
    <input type="hidden" name="logtoken" value="$logtoken" />
    <input type="hidden" name="serverid" value="$lonhost" />


More information about the LON-CAPA-cvs mailing list