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

albertel lon-capa-cvs@mail.lon-capa.org
Sat, 17 Mar 2007 02:14:26 -0000


albertel		Fri Mar 16 22:14:26 2007 EDT

  Modified files:              
    /loncom/interface	lonparmset.pm 
  Log:
  - better date display in parm cleaning interface
  
  
  
Index: loncom/interface/lonparmset.pm
diff -u loncom/interface/lonparmset.pm:1.361 loncom/interface/lonparmset.pm:1.362
--- loncom/interface/lonparmset.pm:1.361	Sun Mar  4 21:46:45 2007
+++ loncom/interface/lonparmset.pm	Fri Mar 16 22:14:26 2007
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Handler to set parameters for assessments
 #
-# $Id: lonparmset.pm,v 1.361 2007/03/05 02:46:45 albertel Exp $
+# $Id: lonparmset.pm,v 1.362 2007/03/17 02:14:26 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -2882,6 +2882,11 @@
 		      '<td><input type="checkbox" name="del_'.$thiskey.'" /></td>'		      );
 	    
 	    $r->print('<td>');
+	    my $display_value = $resourcedata->{$thiskey};
+	    if (&isdateparm($resourcedata->{$thiskey.'.type'})) {
+		$display_value = 
+		    &Apache::lonlocal::locallocaltime($display_value);
+	    }
 	    $r->print(&mt('Parameter: "[_1]" with value: "[_2]"',
 			  &standard_parameter_names($data{'parameter_name'}),
 			  $resourcedata->{$thiskey}));
@@ -2906,7 +2911,7 @@
 		$r->print(&mt('Resource: [_1] <br />&nbsp;&nbsp;&nbsp;with ID: [_2] <br />&nbsp;&nbsp;&nbsp;in folder [_3]',
 			      $url,$resid,$map));
 	    }
-	    $r->print(&mt('Part: [_1]',$data{'parameter_part'}));
+	    $r->print(' <br />&nbsp;&nbsp;&nbsp;'.&mt('Part: [_1]',$data{'parameter_part'}));
 	    $r->print('</td></tr>');
 	
 	}