--- loncom/interface/loncommon.pm 2004/07/21 20:23:34 1.202
+++ loncom/interface/loncommon.pm 2004/08/25 18:13:00 1.207
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# a pile of common routines
#
-# $Id: loncommon.pm,v 1.202 2004/07/21 20:23:34 albertel Exp $
+# $Id: loncommon.pm,v 1.207 2004/08/25 18:13:00 matthew Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -688,8 +688,21 @@ function helpMenu(caller) {
}
}
-
+
ENDTEMPLATE
+ if ($component_help) {
+ if (!$text) {
+ $template=&help_open_topic($component_help,undef,$stayOnPage,
+ $width,$height).' '.$template;
+ } else {
+ my $help_text;
+ $help_text=&Apache::lonnet::unescape($topic);
+ $template='
'.
+ &help_open_topic($component_help,$help_text,$stayOnPage,
+ $width,$height).' | '.$template.
+ ' |
';
+ }
+ }
if ($text ne '') { $template.='' };
return $template;
}
@@ -850,7 +863,7 @@ sub define_excel_formats {
$format->{'h2'} = $workbook->add_format(bold=>1, size=>16);
$format->{'h3'} = $workbook->add_format(bold=>1, size=>14);
$format->{'date'} = $workbook->add_format(num_format=>
- 'mmm d yyyy hh:mm AM/PM');
+ 'mm/dd/yyyy hh:mm:ss');
return $format;
}
@@ -1804,7 +1817,7 @@ sub noteswrapper {
sub aboutmewrapper {
my ($link,$username,$domain,$target)=@_;
- return ''.$link.'';
}
@@ -2510,10 +2523,26 @@ END
'LON-CAPA: '.$title.'
';
} elsif ($ENV{'environment.remote'} eq 'off') {
# No Remote
+ my $roleinfo=(<
+
+
+ $ENV{'environment.firstname'}
+ $ENV{'environment.middlename'}
+ $ENV{'environment.lastname'}
+ $ENV{'environment.generation'}
+
+
+$role
+
+$realm
+
+
+ENDROLE
return $bodytag.&Apache::lonmenu::menubuttons($forcereg,'web',
$forcereg).
- '';
+ ''.$title.
+' | '.$roleinfo.'
';
}
#