Diff for /modules/relate/lonlogin.pm between versions 1.9 and 1.10

version 1.9, 2012/03/01 01:00:38 version 1.10, 2012/05/01 15:47:14
Line 293  sub handler { Line 293  sub handler {
           'serv'     => 'Server',            'serv'     => 'Server',
           'servadm'  => 'Server Administration',            'servadm'  => 'Server Administration',
           'helpdesk' => 'Contact Helpdesk',            'helpdesk' => 'Contact Helpdesk',
           'exist'    => 'Existing user?',            'exist'    => 'Existing user - sign-up with existing username',
             'create'   => 'New user - create username and sign-up',
             'already'  => 'Already signed up?',
           'forgotpw' => 'Forgot your password?',            'forgotpw' => 'Forgot your password?',
           'newuser'  => 'New User?',            'newuser'  => 'New User?',
           'click'   => 'Click here to sign up',            'click'   => 'Click here to sign up',
Line 319  sub handler { Line 321  sub handler {
   
 # ---------------------------------------- Assemble Javascript to put in <head>  # ---------------------------------------- Assemble Javascript to put in <head>
   
   
     my $js = (<<ENDSCRIPT);      my $js = (<<ENDSCRIPT);
   
 <script type="text/javascript" language="JavaScript">  <script type="text/javascript" language="JavaScript">
Line 370  function enableInput() { Line 373  function enableInput() {
     return;      return;
 }  }
   
   function SubmitSignUp() {
       if (document.signup.usertype[0].checked == true) {
           document.signup.action = '/adm/createaccount';
       }
       if (document.signup.usertype[1].checked == true) {
           document.signup.action = '/adm/selfenroll';
       }
       return true;
   }
   
 // ]]>  // ]]>
 </script>  </script>
   
Line 396  ENDSCRIPT Line 409  ENDSCRIPT
 # ------------------------------------------------------------ Additional Texts  # ------------------------------------------------------------ Additional Texts
     $lt{'newto'} = &mt('New to the [_1]Mechanics Online[_2] site?','<i>','</i>');      $lt{'newto'} = &mt('New to the [_1]Mechanics Online[_2] site?','<i>','</i>');
     $lt{'mech'} = &mt('Mechanics Online is a Newtonian Mechanics course developed by Professor David Pritchard and the RELATE education group at MIT. [_1]Learn more[_2]','<a href="http://relate.mit.edu/physicscourse" style="text-decoration: underline;">','</a>');      $lt{'mech'} = &mt('Mechanics Online is a Newtonian Mechanics course developed by Professor David Pritchard and the RELATE education group at MIT. [_1]Learn more[_2]','<a href="http://relate.mit.edu/physicscourse" style="text-decoration: underline;">','</a>');
     $lt{'thco'} = &mt('The course opens on March 1st at 10:00am EST. If you sign up before then you will be automatically enrolled in the course.');  
     $lt{'runson'} = &mt('Mechanics Online runs on [_1]LON-CAPA[_2] - an open source, freeware, distributed learning content management and assessment system.',      $lt{'runson'} = &mt('Mechanics Online 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;">',                          '<a href="http://loncapa.org/" style="text-decoration: underline;">',
                         '</a>');                          '</a>');
Line 468  END Line 480  END
     }      }
   
 # -------------------------------------------- Static cid for prerequisite test  # -------------------------------------------- Static cid for prerequisite test
     my $prereqcid = 'relate_3e100973b27484f2drelatel1';      my $prereqcid = 'relate_2764113e81b9e4f0crelatel1';
   
 # ---------------------------------------------------- Warning if no Javascript   # ---------------------------------------------------- Warning if no Javascript 
     my $noscript_warning = '<noscript><br /><span class="LC_warning">'.      my $noscript_warning = '<noscript><br /><span class="LC_warning">'.
Line 509  END Line 521  END
         <td valign="top" class="bodyred" width="430" align="left"><br />          <td valign="top" class="bodyred" width="430" align="left"><br />
          <span style="font-size: 18px; line-height: 22px; ">$lt{'newto'}</span>           <span style="font-size: 18px; line-height: 22px; ">$lt{'newto'}</span>
          <p class="bodyred">$lt{'mech'}</p>           <p class="bodyred">$lt{'mech'}</p>
          <p class="bodyred">$lt{'thco'}</p>  
          <p class="bodyred">$lt{'runson'}</p>           <p class="bodyred">$lt{'runson'}</p>
          <br />           <fieldset><legend><span style="font-size:larger;">Sign-up for Summer (course begins: June 14th)</span></legend>
          <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" onsubmit="return SubmitSignUp();">
          <table class="LC_signup">           <input type="hidden" name="courseid" value="$prereqcid" /> 
            <tr>           <input type="hidden" name="process" value="signup" />
              <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>           <span class="LC_nobreak">
              <td>&nbsp;</td>            <label>
              <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>             <input type="radio" name="usertype" value="newuser" checked="checked" />$lt{'create'}
            </tr>            </label></span><br />
            <tr>            <span class="LC_nobreak"><label>
              <td>&nbsp;</td>             <input type="radio" name="usertype" value="existing" />$lt{'exist'}
              <td align="center" valign="middle"><span style="white-space: nowrap;"><b>$lt{'newhere'}</b>&nbsp;<a href="javascript:send('newaccount')" style="color: #ffffff; text-decoration:underline;">$lt{'click'}</a></span></td>             </label>
              <td>&nbsp;</td>             <input type="hidden" name="phase" value="login" />
            </tr>           </span><br /><br />
            <tr>           <input name="signin" type="submit" value="$lt{'click'}" class="buttonred" />
              <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>&nbsp;</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>           </form>
            </fieldset>
         </td>          </td>
        </tr>         </tr>
       </table>        </table>
Line 554  END Line 561  END
           <tr>            <tr>
            <td align="right" class="bodywhite" height="50"><br />             <td align="right" class="bodywhite" height="50"><br />
             <span style="font-size: 15px; line-height: 17px; font-weight: bold;">              <span style="font-size: 15px; line-height: 17px; font-weight: bold;">
              $lt{'exist'}</span>               $lt{'already'}</span>
              <br />$lt{'plea'}<br />               <br />$lt{'plea'}<br />
              <hr class="login" /><br /><br />               <hr class="login" /><br /><br />
             </td>              </td>

Removed from v.1.9  
changed lines
  Added in v.1.10


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>