version 1.92, 2009/05/04 21:44:54
|
version 1.93, 2009/05/06 19:25:56
|
Line 1153 sub getnormalmail {
|
Line 1153 sub getnormalmail {
|
# Check for unread mail in course |
# Check for unread mail in course |
my $msgcount = 0; |
my $msgcount = 0; |
|
|
my $datetime; |
|
|
|
my @messages = sort(&Apache::lonnet::getkeys('nohist_email')); |
my @messages = sort(&Apache::lonnet::getkeys('nohist_email')); |
foreach my $message (@messages) { |
foreach my $message (@messages) { |
my $msgid=&escape($message); |
my $msgid=&escape($message); |
Line 1164 sub getnormalmail {
|
Line 1162 sub getnormalmail {
|
if (defined($sendtime) && $sendtime!~/error/) { |
if (defined($sendtime) && $sendtime!~/error/) { |
my $numsendtime = $sendtime; |
my $numsendtime = $sendtime; |
if ($status eq 'new') { |
if ($status eq 'new') { |
$sendtime = &Apache::lonlocal::locallocaltime($sendtime,'',\$datetime); |
$sendtime = &Apache::lonlocal::locallocaltime($sendtime); |
$msgcount ++; |
$msgcount ++; |
if ($shortsubj eq '') { |
if ($shortsubj eq '') { |
$shortsubj = &mt('No subject'); |
$shortsubj = &mt('No subject'); |
Line 1188 sub getcritmail {
|
Line 1186 sub getcritmail {
|
# Check for critical messages in course |
# Check for critical messages in course |
my %what=&Apache::lonnet::dump('critical'); |
my %what=&Apache::lonnet::dump('critical'); |
my $result = ''; |
my $result = ''; |
my $datetime; |
|
my $critmsgcount = 0; |
my $critmsgcount = 0; |
foreach my $msgid (sort(keys(%what))) { |
foreach my $msgid (sort(keys(%what))) { |
my ($sendtime,$shortsubj,$fromname,$fromdom,$status,$fromcid)= |
my ($sendtime,$shortsubj,$fromname,$fromdom,$status,$fromcid)= |
Line 1196 sub getcritmail {
|
Line 1193 sub getcritmail {
|
if (($fromcid) && ($fromcid eq $env{'request.course.id'})) { |
if (($fromcid) && ($fromcid eq $env{'request.course.id'})) { |
if (defined($sendtime) && $sendtime!~/error/) { |
if (defined($sendtime) && $sendtime!~/error/) { |
my $numsendtime = $sendtime; |
my $numsendtime = $sendtime; |
$sendtime = &Apache::lonlocal::locallocaltime($sendtime,'',\$datetime); |
$sendtime = &Apache::lonlocal::locallocaltime($sendtime); |
$critmsgcount ++; |
$critmsgcount ++; |
if ($shortsubj eq '') { |
if ($shortsubj eq '') { |
$shortsubj = &mt('No subject'); |
$shortsubj = &mt('No subject'); |
Line 1617 sub display_versionchanges {
|
Line 1614 sub display_versionchanges {
|
sub display_rolechanges { |
sub display_rolechanges { |
my ($r,$chgcount,$changed,$interval,$crstype) = @_; |
my ($r,$chgcount,$changed,$interval,$crstype) = @_; |
my $now = time(); |
my $now = time(); |
my $datetime; |
|
my %lt = &Apache::lonlocal::texthash( |
my %lt = &Apache::lonlocal::texthash( |
'user' => 'User', |
'user' => 'User', |
'tich' => 'Time of change', |
'tich' => 'Time of change', |
Line 1655 sub display_rolechanges {
|
Line 1651 sub display_rolechanges {
|
my $link = |
my $link = |
&Apache::loncommon::aboutmewrapper(&Apache::loncommon::plainname($uname,$udom),$uname,$udom); |
&Apache::loncommon::aboutmewrapper(&Apache::loncommon::plainname($uname,$udom),$uname,$udom); |
$r->print('<tr'.$css_class.'>'. |
$r->print('<tr'.$css_class.'>'. |
'<td>'.&Apache::lonlocal::locallocaltime($item,'',\$datetime).'</td>'. |
'<td>'.&Apache::lonlocal::locallocaltime($item).'</td>'. |
'<td>'.$link.'</td>'. |
'<td>'.$link.'</td>'. |
'<td>'.$role.'</td>'. |
'<td>'.$role.'</td>'. |
'<td>'.$section.'</td>'. |
'<td>'.$section.'</td>'. |