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

albertel lon-capa-cvs@mail.lon-capa.org
Fri, 30 Jun 2006 01:06:24 -0000


albertel		Thu Jun 29 21:06:24 2006 EDT

  Modified files:              
    /loncom/interface	lonprintout.pm 
  Log:
  - hide the specif code sleector unles there are codes to print BUG#4870
  
  
Index: loncom/interface/lonprintout.pm
diff -u loncom/interface/lonprintout.pm:1.447 loncom/interface/lonprintout.pm:1.448
--- loncom/interface/lonprintout.pm:1.447	Mon Jun 26 18:18:48 2006
+++ loncom/interface/lonprintout.pm	Thu Jun 29 21:06:22 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Printout
 #
-# $Id: lonprintout.pm,v 1.447 2006/06/26 22:18:48 foxr Exp $
+# $Id: lonprintout.pm,v 1.448 2006/06/30 01:06:22 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -2314,10 +2314,16 @@
 	}
 	if (%codes_to_print) {
 	    $code_selection .='   
-             <exec>
-               push(@{$state->{CHOICES}},@{$helper->{DATA}{ALL_CODE_CHOICES}});
-            </exec>
+	    <message><b>Choose single code from list</b></message>
+		<message></td><td></message>
+		<choices variable="CODE_SELECTED_FROM_LIST" multichoice="0" allowempty="0">
+                  <exec>
+                     push(@{$state->{CHOICES}},@{$helper->{DATA}{ALL_CODE_CHOICES}});
+                  </exec>
+		</choices>
+	    <message></td></tr><tr><td colspan="2"><hr width=\'33%\' /></td></tr><tr><td></message>
             '.$/;
+
 	}
 
 	
@@ -2375,12 +2381,9 @@
         </validator>
     </string>
     <message></td></tr><tr><td colspan="2"><hr width='33%' /></td></tr><tr><td></message>
-    <message><b>Choose single code from list</b></message>
-    <message></td><td></message>
-    <choices variable="CODE_SELECTED_FROM_LIST" multichoice="0" allowempty="0">
         $code_selection
-    </choices>
-    <message></td></tr><tr><td colspan="2"><hr width='33%' /></td></tr><tr><td></message>
+
+    
     <message><b>Reprint a set of saved CODEs:</b></message>
     <message></td><td></message>
     <dropdown variable="REUSE_OLD_CODES">
@@ -2486,12 +2489,7 @@
         </validator>
     </string>
     <message></td></tr><tr><td colspan="2"><hr width='33%' /></td></tr><tr><td></message>
-    <message><b>Choose single code from list</b></message>
-    <message></td><td></message>
-    <dropdown variable="CODE_SELECTED_FROM_LIST" multichoice="0" allowempty="0">
         $code_selection
-    </dropdown>
-    <message></td></tr><tr><td colspan="2"><hr width='33%' /></td></tr><tr><td></message>
     <message><b>Reprint a set of saved CODEs:</b></message>
     <message></td><td></message>
     <dropdown variable="REUSE_OLD_CODES">