[LON-CAPA-cvs] cvs: loncom /interface loncommon.pm

albertel lon-capa-cvs@mail.lon-capa.org
Tue, 24 Aug 2004 22:47:59 -0000


albertel		Tue Aug 24 18:47:59 2004 EDT

  Modified files:              
    /loncom/interface	loncommon.pm 
  Log:
   -BUG#3296, add role info to the top of the screen when in inline mode
  
  
Index: loncom/interface/loncommon.pm
diff -u loncom/interface/loncommon.pm:1.205 loncom/interface/loncommon.pm:1.206
--- loncom/interface/loncommon.pm:1.205	Tue Aug 17 14:30:14 2004
+++ loncom/interface/loncommon.pm	Tue Aug 24 18:47:58 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # a pile of common routines
 #
-# $Id: loncommon.pm,v 1.205 2004/08/17 18:30:14 www Exp $
+# $Id: loncommon.pm,v 1.206 2004/08/24 22:47:58 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -2523,10 +2523,26 @@
                '<h1>LON-CAPA: '.$title.'</h1>';
     } elsif ($ENV{'environment.remote'} eq 'off') {
 # No Remote
+	my $roleinfo=(<<ENDROLE);
+<td bgcolor="$tabbg" align="right">
+<p>
+<font size="2" face="Arial, Helvetica, sans-serif">
+    $ENV{'environment.firstname'}
+    $ENV{'environment.middlename'}
+    $ENV{'environment.lastname'}
+    $ENV{'environment.generation'}
+    </font>&nbsp;
+<br />
+<font size="2" face="Arial, Helvetica, sans-serif">$role</font>&nbsp;
+<br />
+<font size="2" face="Arial, Helvetica, sans-serif">$realm</font>&nbsp;
+</p>
+</td>
+ENDROLE
         return $bodytag.&Apache::lonmenu::menubuttons($forcereg,'web',
                                                       $forcereg).
-      '<table bgcolor="'.$pgbg.'" width="100%" border="0" cellspacing="3" cellpadding="3"><tr><td bgcolor="'.$tabbg.'"><font face="Arial, Helvetica, sans-serif" size="+3" color="'.$font.'"><b>'.$title.
-'</b></font></td></tr></table>';
+      '<table bgcolor="'.$pgbg.'" width="100%" border="0" cellspacing="3" cellpadding="3"><tr><td rowspan="3" bgcolor="'.$tabbg.'"><font face="Arial, Helvetica, sans-serif" size="+3" color="'.$font.'"><b>'.$title.
+'</b></font></td>'.$roleinfo.'</tr></table>';
     }
 
 #