version 1.9, 2002/05/07 19:24:28
|
version 1.13, 2002/12/27 14:59:42
|
Line 41 package Apache::loncommunicate;
|
Line 41 package Apache::loncommunicate;
|
use strict; |
use strict; |
use Apache::Constants qw(:common); |
use Apache::Constants qw(:common); |
use Apache::lonmsg(); |
use Apache::lonmsg(); |
|
use Apache::loncommon; |
|
|
sub handler { |
sub handler { |
my $r = shift; |
my $r = shift; |
Line 55 sub handler {
|
Line 56 sub handler {
|
<head> |
<head> |
<title>The LearningOnline Network with CAPA</title> |
<title>The LearningOnline Network with CAPA</title> |
</head> |
</head> |
<body bgcolor="#FFFFFF"> |
|
<img align=right src=/adm/lonIcons/lonlogos.gif> |
|
<h1>Communicate</h1> |
|
END |
END |
|
$r->print(&Apache::loncommon::bodytag("Communication and Messages")); |
$r->print(<<END); |
$r->print(<<END); |
<table cellspacing="10" cellpadding="2"> |
<table cellspacing="10" cellpadding="2"> |
<tr><td bgcolor="#FFFFAA"> |
<tr><td bgcolor="#FFFFAA"> |
Line 78 END
|
Line 77 END
|
<b><a href="/adm/email?compose=group">Broadcast message to course</a></b> |
<b><a href="/adm/email?compose=group">Broadcast message to course</a></b> |
</td></tr> |
</td></tr> |
<tr><td bgcolor="#FFFFAA"> |
<tr><td bgcolor="#FFFFAA"> |
<b><a href="/adm/email?compose=upload">Upload messages to course</a></b> |
<b><a href="/adm/email?compose=upload">Distribute messages from uploaded file to course</a></b> |
</td></tr> |
</td></tr> |
|
<tr><td bgcolor="#FFFFAA"> |
|
<b><a href="/adm/email?recordftf=query">User records of face-to-face discusssions and messages</a></b> |
|
</td></tr> |
|
|
END |
END |
} |
} |
$r->print('</table>'); |
$r->print('</table>'); |
Line 91 END
|
Line 94 END
|
foreach (@msgids) { |
foreach (@msgids) { |
my ($sendtime,$shortsubj,$fromname,$fromdom,$status)= |
my ($sendtime,$shortsubj,$fromname,$fromdom,$status)= |
&Apache::lonmsg::unpackmsgid($_); |
&Apache::lonmsg::unpackmsgid($_); |
|
if (defined($sendtime) && $sendtime!~/error/) { |
$sendtime = localtime($sendtime); |
$sendtime = localtime($sendtime); |
if ($status eq 'new') { |
if ($status eq 'new') { |
push @newmsgs, { |
push @newmsgs, { |
Line 101 END
|
Line 105 END
|
fromdom => $fromdom |
fromdom => $fromdom |
} |
} |
} |
} |
|
} |
} |
} |
if ($#newmsgs >= 0) { |
if ($#newmsgs >= 0) { |
$r->print(<<TABLEHEAD); |
$r->print(<<TABLEHEAD); |