version 1.23, 2009/09/05 01:14:32
|
version 1.25.2.1, 2010/01/18 15:58:25
|
Line 543 sub store_selfenroll_request {
|
Line 543 sub store_selfenroll_request {
|
my %existing = |
my %existing = |
&Apache::lonnet::get($namespace,[$uname.':'.$udom],$cdom,$cnum); |
&Apache::lonnet::get($namespace,[$uname.':'.$udom],$cdom,$cnum); |
if ($existing{$uname.':'.$udom}) { |
if ($existing{$uname.':'.$udom}) { |
my ($timestamp,$sec) = split(/:/,$existing{$uname.':'.$udom}); |
$output = &mt('A self-enrollment request already exists for you for this course.').'<br />'.&mt('Your earlier request is in a queue awaiting action by a Course Coordinator.'). |
$output = &mt('A self-enrollment request already exists for you for this course.').'<br />'.&mt('Your earlier request was submitted: [_1] and remains in a queue awaiting action by a Course Coordinator.',&Apache::lonlocal::locallocaltime($timestamp)); |
'<br /><br />'.&Apache::loncoursequeueadmin::queued_selfenrollment(); |
} else { |
} else { |
my %selfenroll = ( |
my %selfenroll = ( |
$uname.':'.$udom => $now.':'.$usec, |
$uname.':'.$udom => $now.':'.$usec, |
Line 564 sub store_selfenroll_request {
|
Line 564 sub store_selfenroll_request {
|
} |
} |
$output = &mt('Your request for self-enrollment has been recorded.').'<br />'. |
$output = &mt('Your request for self-enrollment has been recorded.').'<br />'. |
&mt('A message will be sent to your LON-CAPA account when the course coordinator takes action on your request.').'<br />'. |
&mt('A message will be sent to your LON-CAPA account when the course coordinator takes action on your request.').'<br />'. |
&mt('To access your LON-CAPA message, go to the Main Menu and click on "Send and Receive Messages".').'<br />'; |
&mt('To access your LON-CAPA message, go to the Main Menu and click on "Send and Receive Messages".'); |
my %emails = &Apache::loncommon::getemails($uname,$udom); |
my %emails = &Apache::loncommon::getemails($uname,$udom); |
if (($emails{'permanentemail'} ne '') || ($emails{'notification'} ne '')) { |
if (($emails{'permanentemail'} ne '') || ($emails{'notification'} ne '')) { |
my $address = $emails{'permanentemail'}; |
my $address = $emails{'permanentemail'}; |
Line 576 sub store_selfenroll_request {
|
Line 576 sub store_selfenroll_request {
|
if ($warning) { |
if ($warning) { |
$output .= '<span class="LC_warning">'.$warning.'</span><br />'; |
$output .= '<span class="LC_warning">'.$warning.'</span><br />'; |
} |
} |
|
|
|
$output .= '<br />'.&Apache::loncoursequeueadmin::queued_selfenrollment(); |
|
|
if ($selfenroll_notifylist) { |
if ($selfenroll_notifylist) { |
my $fullname = &Apache::loncommon::plainname($uname,$udom); |
my $fullname = &Apache::loncommon::plainname($uname,$udom); |
my %courseinfo = &Apache::lonnet::coursedescription($cdom.'_'.$cnum); |
my %courseinfo = &Apache::lonnet::coursedescription($cdom.'_'.$cnum); |