--- loncom/interface/lonmsgdisplay.pm 2009/06/05 12:49:50 1.125
+++ loncom/interface/lonmsgdisplay.pm 2009/06/11 16:48:33 1.126
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Routines for messaging display
#
-# $Id: lonmsgdisplay.pm,v 1.125 2009/06/05 12:49:50 bisitz Exp $
+# $Id: lonmsgdisplay.pm,v 1.126 2009/06/11 16:48:33 bisitz Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -2333,19 +2333,6 @@ sub displaymessage {
.&mt('Next')
.'');
}
-# Print functions
- my $legendtext=''
- .&mt('Functions')
- .'';
- $r->print('
'
- .&Apache::lontemplate::start_functionslist($legendtext)
- );
- foreach my $item (@functionlist) {
- $r->print(&Apache::lontemplate::item_functionslist($item));
- }
- $r->print(&Apache::lontemplate::end_functionslist()
- .'
'
- );
# Prepare available actions
my $symb;
@@ -2354,8 +2341,8 @@ sub displaymessage {
} elsif (defined($content{'baseurl'})) {
$symb=&Apache::lonnet::symbread($content{'baseurl'});
}
- if ($env{'user.adv'}) {
my @actionlist;
+ if ($env{'user.adv'}) {
if (&Apache::lonnet::allowed('vgr',$env{'request.course.id'})) {
push(@actionlist,&Apache::loncommon::track_student_link(
@@ -2380,22 +2367,31 @@ sub displaymessage {
,$symb
,'check'));
}
+ }
-# Print actions
+# Print functionlist and actionlist in page header
+ my $functions='';
+
+ # Functionlist
+ $functions.=&Apache::lonhtmlcommon::start_funclist();
+ foreach my $item (@functionlist) {
+ $functions.=&Apache::lonhtmlcommon::add_item_funclist($item);
+ }
+ $functions .= &Apache::lonhtmlcommon::end_funclist();
+
+ # Actionlist
if (@actionlist) {
- $legendtext=&mt('[_1]Currently available actions[_2] (will open extra window):'
- ,'
','');
- $r->print('
'
- .&Apache::lontemplate::start_functionslist($legendtext)
- );
+ my $legendtext=&mt('Currently available actions (will open extra window)');
+ $functions.=&Apache::lonhtmlcommon::start_funclist($legendtext);
foreach my $item (@actionlist) {
- $r->print(&Apache::lontemplate::item_functionslist($item));
+ $functions.=&Apache::lonhtmlcommon::add_item_funclist($item);
}
- $r->print(&Apache::lontemplate::end_functionslist()
- .'
'
- );
+ $functions.=&Apache::lonhtmlcommon::end_funclist();
}
- }
+
+ $functions.='
';
+ $r->print(&Apache::loncommon::head_subbox($functions));
+
my ($tonum,$tolist,$cclist,$bcclist,$groupcclist,%recipients);
if ($content{'recipid'}) {