version 1.77, 2003/12/31 02:33:27
|
version 1.79, 2004/01/15 15:12:31
|
Line 274 sub author_res_msg {
|
Line 274 sub author_res_msg {
|
sub retrieve_author_res_msg { |
sub retrieve_author_res_msg { |
my $url=shift; |
my $url=shift; |
$url=&Apache::lonnet::declutter($url); |
$url=&Apache::lonnet::declutter($url); |
my ($domain,$author)=($url=~/^(\w+)\/(\w+)\//); |
my ($domain,$author,$file)=($url=~/^(\w+)\/(\w+)\/(.+)$/); |
|
my $listall=($file eq 'allbombs'); |
my %errormsgs=&Apache::lonnet::dump('nohist_res_msgs',$domain,$author); |
my %errormsgs=&Apache::lonnet::dump('nohist_res_msgs',$domain,$author); |
my $msgs=''; |
my $msgs=''; |
foreach (keys %errormsgs) { |
foreach (keys %errormsgs) { |
if ($_=~/^\Q$url\E\_\d+$/) { |
if (($_=~/^\Q$url\E\_\d+$/) || ($listall)) { |
|
my ($errurl)=($_=~/^(.+)\_(\d+)$/); |
my %content=&unpackagemsg($errormsgs{$_}); |
my %content=&unpackagemsg($errormsgs{$_}); |
$msgs.='<p><img src="/adm/lonMisc/bomb.gif" /><b>'. |
$msgs.='<p><img src="/adm/lonMisc/bomb.gif" /><b>'. |
|
($listall?"<a href='".&Apache::lonnet::clutter($errurl)."'><tt>". |
|
$errurl. |
|
'</tt></a> ':' '). |
$content{'time'}.'</b>: '.$content{'message'}. |
$content{'time'}.'</b>: '.$content{'message'}. |
'<br /></p>'; |
'<br /></p>'; |
} |
} |
Line 1024 sub handler {
|
Line 1029 sub handler {
|
if (!$ENV{'form.display'}) { |
if (!$ENV{'form.display'}) { |
$r->print('<html><head><title>EMail and Messaging</title>'. |
$r->print('<html><head><title>EMail and Messaging</title>'. |
&Apache::loncommon::studentbrowser_javascript().'</head>'. |
&Apache::loncommon::studentbrowser_javascript().'</head>'. |
&Apache::loncommon::bodytag('EMail and Messages')); |
&Apache::loncommon::bodytag('EMail and Messages'). |
|
&Apache::loncommon::help_open_faq(12). |
|
&Apache::loncommon::help_open_bug('Communication Tools')); |
} |
} |
if ($ENV{'form.display'}) { |
if ($ENV{'form.display'}) { |
my $msgid=$ENV{'form.display'}; |
my $msgid=$ENV{'form.display'}; |
Line 1051 sub handler {
|
Line 1058 sub handler {
|
} |
} |
$r->print(&Apache::loncommon::studentbrowser_javascript(). |
$r->print(&Apache::loncommon::studentbrowser_javascript(). |
'</head>'. |
'</head>'. |
&Apache::loncommon::bodytag('EMail and Messages')); |
&Apache::loncommon::bodytag('EMail and Messages'). |
|
&Apache::loncommon::help_open_faq(12). |
|
&Apache::loncommon::help_open_bug('Communication Tools')); |
$r->print('<b>'.&mt('Subject').':</b> '.$content{'subject'}. |
$r->print('<b>'.&mt('Subject').':</b> '.$content{'subject'}. |
'<br><b>'.&mt('From').':</b> '. |
'<br><b>'.&mt('From').':</b> '. |
&Apache::loncommon::aboutmewrapper( |
&Apache::loncommon::aboutmewrapper( |