--- loncom/interface/lonmsgdisplay.pm 2008/11/17 17:19:52 1.96
+++ loncom/interface/lonmsgdisplay.pm 2008/12/11 14:55:15 1.102
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Routines for messaging display
#
-# $Id: lonmsgdisplay.pm,v 1.96 2008/11/17 17:19:52 schafran Exp $
+# $Id: lonmsgdisplay.pm,v 1.102 2008/12/11 14:55:15 bisitz Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -243,9 +243,9 @@ function folder_choice(targetform,caller
@@ -353,7 +353,7 @@ sub makefolder {
}
} else {
$outcome =
- &mt('Error - could not obtain lock on email folders record.');
+ &mt('Error - could not obtain lock on e-mail folders record.');
}
return ($outcome,$warning);
}
@@ -718,13 +718,13 @@ sub groupmail_header {
{href=>"/adm/email?compose=group&group=".
"$env{'form.group'}&$refarg",
text=>"Send a Message in a Group",
- title=>"Compose Group E-mail"},);
+ title=>"Compose Group Message"},);
if ($action eq 'sending') {
&Apache::lonhtmlcommon::add_breadcrumb
- ({text=>"E-mails being sent.",
+ ({text=>"Messages being sent.",
title=>"E-mails sent"},);
}
- my $groupheader = &Apache::loncommon::start_page('Group Email');
+ my $groupheader = &Apache::loncommon::start_page('Group Message');
$groupheader .= &Apache::lonhtmlcommon::breadcrumbs
('Group - '.$env{'form.group'}.' Email');
return $groupheader;
@@ -738,7 +738,7 @@ sub groupmail_sent {
}
my $output .= ''.
- &mt('Send another group email').' '.' '.
+ &mt('Send another group message').''.' '.
''. &mt('Return to group page').' ';
return $output;
@@ -1108,10 +1108,10 @@ ENDDISHEADER
}
my $localsenttime = &Apache::lonlocal::locallocaltime($sendtime);
my $count = $n +1;
- $r->print(''.(($status eq 'new')?'':'').
+ $r->print(' '.(($status eq 'new')?'':'').
$count.'.'.(($status eq 'new')?' ':'').' '.
' ');
+ ' value="'.$origID.'" /> ');
foreach my $item ($localsenttime,$dis_name,$dis_domain,$shortsubj) {
$r->print(''.(($status eq 'new')?'':'').
''.
@@ -1287,7 +1287,7 @@ sub compout {
$dispcrit=
' '.&mt('Send as critical message').'. '.$crithelp.' '.&mt('Require return receipt?').' '.&mt('Yes').' '.&mt('No').' '.
' '.
-&mt('Send copy to permanent email address (if known)').' '.
+&mt('Send copy to permanent e-mail address (if known)').' '.
' '.
&mt('Include in course RSS newsfeed').' ';
}
@@ -1571,7 +1571,7 @@ $sendmode
$dispcrit
$disbase
ENDCOMP
- $r->print(&submit_button_row($folder,$dismode,&mt($func1),
+ $r->print(&submit_button_row($folder,$dismode,&mt($func1.' '.$func2{'ma'}),
\%lt,$hasfloat,$group));
$r->print($citation);
if (exists($env{'form.ref'})) {
@@ -1676,6 +1676,7 @@ ENDADD
sub submit_button_row {
my ($folder,$dismode,$sendtext,$lt,$is_crsform,$group) = @_;
my $pre=&mt("Show Preview and Check Spelling");
+ my $value=&mt('Send');
my $prevbutton = ' ';
my $output = qq|
@@ -1688,7 +1689,7 @@ sub submit_button_row {
}
$output .= qq|
|;
@@ -2262,29 +2263,66 @@ sub displaymessage {
# start output
&printheader($r,'/adm/email?display='.&escape($msgid),'Display a Message','',$content{'baseurl'});
my %courseinfo=&Apache::lonnet::coursedescription($content{'courseid'});
-# Functions
- $r->print('');
+ $functionlist.=$li_start
+ .''
+ .&mt('Next')
+ .' '
+ .$li_end;
+ }
+# Print functions
+ $r->print(' '
+ .'
'
+ .''
+ .&mt('Functions')
+ .' '
+ .$functionlist
+ .' '
+ .''
+ );
+
+# Prepare available actions
my $symb;
if (defined($content{'symb'})) {
$symb = $content{'symb'};
@@ -2293,33 +2331,40 @@ sub displaymessage {
}
if ($env{'user.adv'}) {
my $actionlist='';
+
if (&Apache::lonnet::allowed('vgr',$env{'request.course.id'})) {
- $actionlist.=' '
+ $actionlist.=$li_start
.&Apache::loncommon::track_student_link(
&mt('View recent activity'),$content{'sendername'},$content{'senderdomain'},'check')
- .' ';
+ .$li_end;
}
if (&Apache::lonnet::allowed('opa',$env{'request.course.id'}) && $symb) {
- $actionlist.=''
+ $actionlist.=$li_start
.&Apache::loncommon::pprmlink(
&mt('Set/Change parameters'),$content{'sendername'},$content{'senderdomain'},$symb,'check')
- .' ';
+ .$li_end;
}
if (&Apache::lonnet::allowed('mgr',$env{'request.course.id'}) && $symb) {
- $actionlist.=''
+ $actionlist.=$li_start
.&Apache::loncommon::pgrdlink(
&mt('Set/Change grades'),$content{'sendername'},$content{'senderdomain'},$symb,'check')
- .' ';
+ .$li_end;
}
+
+# Print actions
if ($actionlist) {
- $r->print(''
- .''
+ $r->print(''
+ .'
'
+ .''
.&mt('Currently available actions (will open extra window):')
- .' '
+ .''
.$actionlist
- .'
');
+ .''
+ .''
+ );
}
}
+
my ($tonum,$tolist,$cclist,$bcclist,$groupcclist,%recipients);
if ($content{'recipid'}) {
$tonum = &retrieve_recips('display',\%content,\%recipients);