version 1.29, 2013/02/01 17:39:22
|
version 1.32, 2013/03/25 16:33:08
|
Line 177 sub handler {
|
Line 177 sub handler {
|
sub get_uname { |
sub get_uname { |
my ($defdom) = @_; |
my ($defdom) = @_; |
my %lt = &Apache::lonlocal::texthash( |
my %lt = &Apache::lonlocal::texthash( |
unam => 'username', |
unam => 'LON-CAPA username', |
udom => 'domain', |
udom => 'LON-CAPA domain', |
uemail => 'E-mail address in LON-CAPA', |
uemail => 'E-mail address in LON-CAPA', |
proc => 'Proceed'); |
proc => 'Proceed'); |
|
|
Line 190 sub get_uname {
|
Line 190 sub get_uname {
|
.'</ul>'; |
.'</ul>'; |
$msg .= '<form name="forgotpw" method="post" action="/adm/resetpw">'. |
$msg .= '<form name="forgotpw" method="post" action="/adm/resetpw">'. |
&Apache::lonhtmlcommon::start_pick_box(). |
&Apache::lonhtmlcommon::start_pick_box(). |
&Apache::lonhtmlcommon::row_title('LON-CAPA '.$lt{'unam'}). |
&Apache::lonhtmlcommon::row_title($lt{'unam'}). |
'<input type="text" name="uname" size="20" />'. |
'<input type="text" name="uname" size="20" />'. |
&Apache::lonhtmlcommon::row_closure(1). |
&Apache::lonhtmlcommon::row_closure(1). |
&Apache::lonhtmlcommon::row_title('LON-CAPA '.$lt{'udom'}). |
&Apache::lonhtmlcommon::row_title($lt{'udom'}). |
&Apache::loncommon::select_dom_form($defdom,'udom'). |
&Apache::loncommon::select_dom_form($defdom,'udom'). |
&Apache::lonhtmlcommon::row_closure(1). |
&Apache::lonhtmlcommon::row_closure(1). |
&Apache::lonhtmlcommon::row_title($lt{'uemail'}). |
&Apache::lonhtmlcommon::row_title($lt{'uemail'}). |
Line 429 sub display_actions {
|
Line 429 sub display_actions {
|
'<a href="javascript:history.go(-1)">','</a>')); |
'<a href="javascript:history.go(-1)">','</a>')); |
my $msg2 = ''; |
my $msg2 = ''; |
if ($contact_email ne '') { |
if ($contact_email ne '') { |
my $escuri = &HTML::Entities::encode('/adm/resetpw','&<>"'); |
my $escuri = &HTML::Entities::encode('/adm/resetpw','&<>"'); |
push(@msg, &mt('Contact the [_1]LON-CAPA helpdesk[_2] for the institution: [_3]', |
push(@msg, &mt('Contact the [_1]LON-CAPA helpdesk[_2] for the institution: [_3]', |
'<a href="/adm/helpdesk?origurl='.$escuri.'">', |
'<a href="/adm/helpdesk?origurl='.$escuri.'">', |
'</a>','<i>'.$domdesc.'</i>')); |
'</a>','<i>'.$domdesc.'</i>')); |
} else { |
} else { |
$msg2 = |
$msg2 = |
'<p>' |
'<p>' |
.&mt('You may wish to send an e-mail to the' |
.&mt('You may wish to send an e-mail to the' |
.' server administrator: [_1] for the [_2] domain.', |
.' server administrator: [_1] for the [_2] domain.', |
'<i>'.$Apache::lonnet::perlvar{'AdminEmail'}.'</i>', |
'<i>'.$Apache::lonnet::perlvar{'AdmEMail'}.'</i>', |
'<i>'.$domdesc.'</i>') |
'<i>'.$domdesc.'</i>') |
.'</p>'; |
.'</p>'; |
} |
} |
|
|
return &Apache::lonhtmlcommon::actionbox(\@msg).$msg2; |
return &Apache::lonhtmlcommon::actionbox(\@msg).$msg2; |
|
|