[LON-CAPA-cvs] cvs: modules /raeburn/register userupdate.pm
raeburn
lon-capa-cvs@mail.lon-capa.org
Wed, 21 Mar 2007 22:18:20 -0000
This is a MIME encoded message
--raeburn1174515500
Content-Type: text/plain
raeburn Wed Mar 21 18:18:20 2007 EDT
Modified files:
/modules/raeburn/register userupdate.pm
Log:
Use registration.css.
--raeburn1174515500
Content-Type: text/plain
Content-Disposition: attachment; filename="raeburn-20070321181820.txt"
Index: modules/raeburn/register/userupdate.pm
diff -u modules/raeburn/register/userupdate.pm:1.2 modules/raeburn/register/userupdate.pm:1.3
--- modules/raeburn/register/userupdate.pm:1.2 Fri Feb 3 22:00:40 2006
+++ modules/raeburn/register/userupdate.pm Wed Mar 21 18:18:18 2007
@@ -21,7 +21,7 @@
&Apache::LON::processform::postitems($r,\%qry_items);
&Apache::LON::processform::getitems($r->args,\%qry_items);
- foreach (keys %qry_items) {
+ foreach (keys(%qry_items)) {
if (@{$qry_items{$_}} > 1) {
@{$params{$_}} = @{$qry_items{$_}};
for (my $i=0; $i<@{$params{$_}}; $i++) {
@@ -126,9 +126,10 @@
($msg,$jscript,$loaditem) = &show_choices();
}
my $output = (<<"END");
-<html>
+<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Update your information</title>
+<link type="text/css" rel="stylesheet" href="/css/registration.css">
END
&main_box(\$output,$jscript,$metainfo,$loaditem,$forwardurl);
$output .= <<"END";
@@ -220,8 +221,8 @@
</tr>
</table><br/>
Would you like a reminder of this new password to be sent to you via e-mail? <input type="radio" name="remindme" value="yes" />Yes <input type="radio" name="remindme" value="no" checked="checked"/>No<br /><br />
- <input type="button" class="buttonred" name="pwsubmit" value="Change password" onClick="verifypw('changeme')">
- </form><br /><br />
+ <input type="button" class="buttoncolored" name="pwsubmit" value="Change password" onClick="verifypw('changeme')">
+ </form>
<form method="post" name="server">
<input type="hidden" name="state" value="process">
<input type="hidden" name="update" value="newpass">
@@ -329,216 +330,131 @@
END
$$output .= <<"END";
- <form name="changeinfo" method="post">
- <table border='0' cellspacing='0' cellpadding='0'>
- <tr>
- <td> </td>
- <td align='left'>
- <font face='arial,helvetica,sans serif'>
- Make modifications to the user information currently stored for guestID: <b>$user</b>.
- <br /><br />
+ <form name="changeinfo" method="post">
+ <table border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td> </td>
+ <td align='left'>
+ Make modifications to the user information currently stored for guestID: <b>$user</b>.
+ <br /><br />
<table>
<tr>
<td> </td>
<td>
- <table border="0" cellpadding="0" cellspacing="0" bgcolor="#000000">
+ <table class="LC_regform">
+ <tr>
+ <td align="right" class="LC_leftinner"><b>Name</b></td>
+ <td valign="top" class="LC_rightinner">
+ <table class="LC_inner">
+ <tr align="left">
+ <td align="center">
+ first<br />
+ <input type="text" size="20" name="firstname" value="">
+ </td>
+ <td align="center">
+ middle<br />
+ <input type="text" size="5" name="middlename" value="">
+ </td>
+ <td align="middle">
+ last<br />
+ <input type="text" size="20" name="lastname" value="">
+ </td>
+ <td align="center">
+ suffix<br />
+ <input type="text" size="5" name="generation" value="">
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
<tr>
- <td>
- <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#000000"> <tr>
+ <td align="right" class="LC_leftinner"><b>Title</b></td>
+ <td valign="top" class="LC_rightinner">
+ <table class="LC_inner">
+ <tr>
<td>
- <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#ffffff">
- <tr>
- <td>
- <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
- <tr>
- <td width="200" bgcolor="#FFEEBB">
- <table width="200" border="0" cellpadding="8" cellspacing="0">
- <tr>
- <td align="right"><font face="Arial, Helvetica, sans-serif"><b>Name</b></font>
- </td>
- </tr>
- </table>
- </td>
- <td valign="top" bgcolor="#FFFFBB">
- <table width="100%" border="0" cellpadding="8" cellspacing="0">
- <tr align="left">
- <td align="center">
- first<br />
- <input type="text" size="20" name="firstname" value="">
- </td>
- <td align="center">
- middle<br />
- <input type="text" size="5" name="middlename" value="">
- </td>
- <td align="middle">
- last<br />
- <input type="text" size="20" name="lastname" value="">
- </td>
- <td align="center">
- suffix<br />
- <input type="text" size="5" name="generation" value="">
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td colspan="2" bgcolor="#000000">
- <img src="/images/login/blackdot.jpg" /><br />
- </td>
- </tr>
- <tr>
- <td width="200" bgcolor="#FFEEBB">
- <table width="200" border="0" cellpadding="8" cellspacing="0">
- <tr>
- <td align="right"><b><font face="Arial, Helvetica, sans-serif">Title</font></b>
- </td>
- </tr>
- </table>
- </td>
- <td valign="top" bgcolor="#FFFFBB">
- <table width="100%" border="0" cellpadding="8" cellspacing="0">
- <tr>
- <td>
- <input type="text" size="20" name="title" value="">
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td colspan="2" bgcolor="#000000">
- <img src="/images/login/blackdot.jpg" /><br />
- </td>
- </tr>
- <tr>
- <td width="200" bgcolor="#FFEEBB">
- <table width="200" border="0" cellpadding="8" cellspacing="0">
- <tr>
- <td align="right"><b><font face="Arial, Helvetica, sans-serif">Department</font></b>
- </td>
- </tr>
- </table>
- </td>
- <td width="100%" valign="top" bgcolor="#FFFFBB">
- <table width="100%" border="0" cellpadding="8" cellspacing="0">
- <tr>
- <td>
- <input type="text" size="30" name="dept" value="">
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td colspan="2" bgcolor="#000000">
- <img src="/images/login/blackdot.jpg" /><br />
- </td>
- </tr>
- <tr>
- <td width="200" bgcolor="#FFEEBB">
- <table width="200" border="0" cellpadding="8" cellspacing="0">
- <tr>
- <td align="right"><b><font face="Arial, Helvetica, sans-serif">Institution</font</b>
- </td>
- </tr>
- </table>
- </td>
- <td width="100%" valign="top" bgcolor="#FFFFBB">
- <table width="100%" border="0" cellpadding="8" cellspacing="0">
- <tr>
- <td>
- <input type="text" size="20" name="institution" value="">
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td colspan="2" bgcolor="#000000">
- <img src="/images/login/blackdot.jpg" /><br />
- </td>
- </tr>
- <tr>
- <td width="200" bgcolor="#FFEEBB">
- <table width="200" border="0" cellpadding="8" cellspacing="0">
- <tr>
- <td align="right"><b><font face="Arial, Helvetica, sans-serif">Mailing Address</font></b>
- </td>
- </tr>
- </table>
- </td>
- <td width="100%" valign="top" bgcolor="#FFFFBB">
- <table width="100%" border="0" cellpadding="8" cellspacing="0">
- <tr>
- <td align="middle">
- street<br />
- <input type="text" size="20" name="streetaddress" value="">
- </td>
- <td align="middle">
- city/state<br />
- <input type="text" size="25" name="citystate" value="">
- </td>
- <td align="middle">
- zip<br />
- <input type="text" size="8" name="zip" value="">
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td colspan="2" bgcolor="#000000">
- <img src="/images/login/blackdot.jpg" /><br />
- </td>
- </tr>
- <tr>
- <td width="200" bgcolor="#FFEEBB">
- <table width="200" border="0" cellpadding="8" cellspacing="0">
- <tr>
- <td align="right"><b><font face="Arial, Helvetica, sans-serif">Phone Number</font></b>
- </td>
- </tr>
- </table>
- </td>
- <td width="100%" valign="top" bgcolor="#FFFFBB">
- <table width="100%" border="0" cellpadding="8" cellspacing="0">
- <tr>
- <td>
- <input type="text" size="30" name="phone" value="">
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td> </td>
- </tr>
- <tr>
- <td> </td>
- <td align="right">
- <input type="hidden" name="update" value="newdata" />
- <input type="hidden" name="state" value="" />
- <input type="button" class="buttonred" name="createme" value="Save Changes" onClick="javascript:validForm('create')" />
- </td>
- </tr>
- </table>
- </form>
+ <input type="text" size="20" name="title" value="">
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ <tr>
+ <td align="right" class="LC_leftinner"><b>Department</b></td>
+ <td class="LC_rightinner">
+ <table class="LC_inner">
+ <tr>
+ <td>
+ <input type="text" size="30" name="dept" value="">
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ <tr>
+ <td align="right" class="LC_leftinner"><b>Institution</b></td>
+ <td class="LC_rightinner">
+ <table class="LC_inner">
+ <tr>
+ <td>
+ <input type="text" size="20" name="institution" value="">
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ <tr>
+ <td align="right" class="LC_leftinner"><b>Mailing Address</b></td>
+ <td class="LC_rightinner">
+ <table class="LC_inner">
+ <tr>
+ <td align="middle">
+ street<br />
+ <input type="text" size="20" name="streetaddress" value="">
+ </td>
+ <td align="middle">
+ city/state<br />
+ <input type="text" size="25" name="citystate" value="">
+ </td>
+ <td align="middle">
+ zip<br />
+ <input type="text" size="8" name="zip" value="">
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ <tr>
+ <td align="right" class="LC_leftcol"><b>Phone Number</b></td>
+ <td class="LC_rightcol">
+ <table class="LC_inner">
+ <tr>
+ <td>
+ <input type="text" size="30" name="phone" value="">
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ <tr>
+ <td> </td>
+ </tr>
+ <tr>
+ <td> </td>
+ <td align="left">
+ <input type="hidden" name="update" value="newdata" />
+ <input type="hidden" name="state" value="" />
+ <input type="button" class="buttoncolored" name="createme" value="Save Changes" onClick="javascript:validForm('create')" />
+ </td>
+ </tr>
+ </table>
+ </form>
END
return ($jscript,$loaditem);
}
@@ -574,7 +490,7 @@
$msg = "Your user information has been updated.<br />".
"Please click <u><a href='$forwardurl'>Continue</a></u> if this page does not automatically refresh in the next few seconds.<br />";
} else {
- $msg = "As your user information was unchanged, the information recorded for $user has not been updated".
+ $msg = "As your user information was unchanged, the information recorded for $user has not been updated. ".
"Please click <u><a href='$forwardurl'>Continue</a></u> if this page does not automatically refresh in the next few seconds.<br />";
}
} else {
@@ -634,11 +550,11 @@
if ($outcome eq 'ok') {
my $mailmsg = "The password for your login to the LON-CAPA ".
"support/registration system has been changed to ".
- "$newpass";
+ "$upass";
if ($remindme eq 'yes') {
my $result = &send_mail($user,$mailmsg,$contact_name,$contact_email);
if ($result eq 'ok') {
- $msg .= "The password has been successfully changed for your guestID, and a reminder of the new password has been sent to $user.".
+ $msg .= "The password has been successfully changed for your guestID, and a reminder of the new password has been sent to $user.".'<br />'.
"Please click <u><a href='$forwardurl'>Continue</a></u> if this page does not automatically refresh in the next few seconds.<br />";
} else {
$msg .= "An error occurred when sending e-mail to $user with information about the new password. Please contact the $contact_name ($contact_email) for assistance.";
@@ -663,71 +579,27 @@
$logoutportal = '/register';
}
$$output .= <<"END";
-<style type="text/css">
-<!--
- body {font-family: arial,verdana, sans-serif; }
- a:link {text-decoration: none; color: #000000; }
- a:visited {text-decoration: none; color: #000000; }
- a:active {text-decoration: none; color: #000000; }
- a:hover {text-decoration: underline; color: #000000; }
-
-.bodywhite
-{
- font-size: 12px; font-family: arial,verdana,sans-serif;
- line-height: 14px; color: #ffffff;
-}
-
-.bodyblue
-{
- font-size: 12px; font-family: arial,verdana,sans-serif;
- line-height: 14px; color: #000000;
-}
-
-.headlineblue
-{
- font-size: 21px; font-family: arial,verdana,sans-serif;
- line-height: 24px; color: #01197D;
-}
-
-.buttonwhite
-{
- font-size: 13px; font-weight: bold; font-family: arial, Trebuchet MS, verdana, helvetica, san-serif;
- line-height: 15px; color: #000000; text-align: center; background: #FFFFFF; padding: 4px;
-}
-
-.buttonred
-{
- font-size: 13px; font-family: arial, Trebuchet MS, verdana, helvetica, san-serif; padding: 4px;
- line-height: 15px; color: #FFFFFF; text-align: center; background: #CC6633; font-weight: bold;
-}
-
--->
-</style>
$jscript
$metainfo
</head>
-<body bgcolor="#ffffff" topmargin="0" leftmargin="0" marginheight="0" marginwidth="0" $loaditem>
-<div align="center">
- <br />
- <br />
-</div>
+<body $loaditem>
<br />
<div align="center">
-<table width="720" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFF99">
+<table class="LC_loginbox">
<tr>
<td align="left" valign="top" width="12" nowrap><img name="login_r1_c1" src="/images/login/lclogin_r1_c1.gif" width="12" height="10" border="0" alt=""></td>
<td width="450" nowrap valign="top">
- <table border="0" cellpadding="0" cellspacing="0" width="450" bgcolor="#FFFF99">
+ <table class="LC_loginbox_left">
<tr>
- <td width="15" rowspan="2" nowrap><spacer type="block" width="15"></td>
- <td width="266" align="left" nowrap><img src="/images/login/lonlogos.gif" width="74" height="50" align="left"><br /><font size="-1">The Learning<i>Online</i> Network with CAPA</font></td>
+ <td width="15" rowspan="2" nowrap> </td>
+ <td width="266" align="left" nowrap><img src="/images/login/lonlogos.gif" width="74" height="50" align="left"><br /><nobr><font size="-1">The Learning<i>Online</i> Network with CAPA</font></nobr></td>
</td>
- <td width="15" nowrap><spacer type="block" width="15"></td>
+ <td width="15" nowrap> </td>
<td width="130" align="left" nowrap><img src="/images/login/student.jpg" rowspan="2" width="130" height="85"></td>
- <td width="24" rowspan="2" nowrap><spacer type="block" width="20"></td>
+ <td width="24" rowspan="2" nowrap> </td>
</tr>
<tr>
- <td colspan="5" bgcolor="#FFFF99" width="450" height="8"><img src="/images/login/login_red_horiz.gif" width="450" height="8"></td>
+ <td colspan="5" width="450" height="8"><img src="/images/login/login_red_horiz.gif" width="450" height="8"></td>
<td align="right" valign="top">
<img border="0" src="/images/login/logout_red.gif" width="90" height="23" align="right" usemap="#event_header">
<map name = 'event_header'>
@@ -744,10 +616,10 @@
my $output= shift;
$$output .= <<"END_OF_FOOT";
</table>
-<table width="720" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFF99">
+<table class="LC_loginbox">
<tr>
- <td align="left" valign="bottom" width="10"><img src="/images/login/lclogin_r9_c1.gif" width="12" height="10" border="0" alt=""></td>
- <td width="696" nowrap><spacer type="block" width="696"></td>
+ <td align="left" valign="bottom" width="10"><img src="/images/login/lclogin_r9_c1.gif" width="10" height="10" border="0" alt=""></td>
+ <td width="698" nowrap> </td>
<td align="right" valign="bottom" width="10"><img src="/images/login/lclogin_r9_c7.gif" width="12" height="10" border="0" alt=""></td>
</tr>
</table>
--raeburn1174515500--