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

sakharuk lon-capa-cvs@mail.lon-capa.org
Mon, 18 Aug 2003 19:57:36 -0000


sakharuk		Mon Aug 18 15:57:36 2003 EDT

  Modified files:              
    /loncom/interface	lonprintout.pm 
  Log:
  Improved interface - original printing menu.
  
  
Index: loncom/interface/lonprintout.pm
diff -u loncom/interface/lonprintout.pm:1.217 loncom/interface/lonprintout.pm:1.218
--- loncom/interface/lonprintout.pm:1.217	Mon Aug 18 14:22:53 2003
+++ loncom/interface/lonprintout.pm	Mon Aug 18 15:57:36 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Printout
 #
-# $Id: lonprintout.pm,v 1.217 2003/08/18 18:22:53 sakharuk Exp $
+# $Id: lonprintout.pm,v 1.218 2003/08/18 19:57:36 sakharuk Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1203,7 +1203,7 @@
     if (($ENV{'request.role.adv'} and &Apache::lonnet::allowed('vgr',$ENV{'request.course.id'})) or 
 	($helper->{VARS}->{'construction'} eq '1')) {
         $paramHash = Apache::lonhelper::getParamHash();
-        $paramHash->{MESSAGE_TEXT} = "<br /><big><b><i>Next four options are available only for advanced users:  </i></b></big><br />";
+        $paramHash->{MESSAGE_TEXT} = "<br /><table><tr><td><big><b><i>Next four options are available only for advanced users:  </i></b></big></td><td>";
         Apache::lonhelper::message->new();
         $paramHash = Apache::lonhelper::getParamHash();
 	$paramHash->{'variable'} = 'ANSWER_TYPE';   
@@ -1216,7 +1216,7 @@
 
     if ($ENV{'request.role.adv'}) {
         $paramHash = Apache::lonhelper::getParamHash();
-        $paramHash->{MESSAGE_TEXT} = "<br />";
+        $paramHash->{MESSAGE_TEXT} = "</td></tr><tr><td>&nbsp;</td><td>";
         Apache::lonhelper::message->new();
         $paramHash = Apache::lonhelper::getParamHash();
 	$paramHash->{'variable'} = 'LATEX_TYPE';   
@@ -1231,11 +1231,9 @@
 				     ['Print in standard LaTeX mode', 'standard'] ];
 	}
         Apache::lonhelper::dropdown->new();
-    } 
-
-    if ($ENV{'request.role.adv'}) {
+ 
         $paramHash = Apache::lonhelper::getParamHash();
-        $paramHash->{MESSAGE_TEXT} = "<br />";
+        $paramHash->{MESSAGE_TEXT} = "</td></tr><tr><td>&nbsp;</td><td>";
         Apache::lonhelper::message->new();
         $paramHash = Apache::lonhelper::getParamHash();
 	$paramHash->{'variable'} = 'TABLE_CONTENTS';   
@@ -1246,7 +1244,7 @@
         Apache::lonhelper::dropdown->new();
         
         $paramHash = Apache::lonhelper::getParamHash();
-        $paramHash->{MESSAGE_TEXT} = "<br />";
+        $paramHash->{MESSAGE_TEXT} = "</td></tr><tr><td>&nbsp;</td><td>";
         Apache::lonhelper::message->new();
         $paramHash = Apache::lonhelper::getParamHash();
 	$paramHash->{'variable'} = 'TABLE_INDEX';   
@@ -1255,6 +1253,10 @@
                                    ['Print without Index', 'no'],
                                    ['Print with Index', 'yes'] ];
         Apache::lonhelper::dropdown->new();
+
+        $paramHash = Apache::lonhelper::getParamHash();
+        $paramHash->{MESSAGE_TEXT} = "</td></tr><table>";
+        Apache::lonhelper::message->new();
     }
 
     Apache::lonprintout::page_format_state->new("FORMAT");