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

albertel lon-capa-cvs@mail.lon-capa.org
Sat, 22 Apr 2006 15:39:22 -0000


albertel		Sat Apr 22 11:39:22 2006 EDT

  Modified files:              
    /loncom/interface	lonparmset.pm 
  Log:
  - data_tabling the parm overiew screens
  
  
Index: loncom/interface/lonparmset.pm
diff -u loncom/interface/lonparmset.pm:1.294 loncom/interface/lonparmset.pm:1.295
--- loncom/interface/lonparmset.pm:1.294	Tue Apr 18 16:35:47 2006
+++ loncom/interface/lonparmset.pm	Sat Apr 22 11:39:22 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Handler to set parameters for assessments
 #
-# $Id: lonparmset.pm,v 1.294 2006/04/18 20:35:47 www Exp $
+# $Id: lonparmset.pm,v 1.295 2006/04/22 15:39:22 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -2333,7 +2333,7 @@
 	return '';
     } else {
 	$tableopen=1;
-	return '<table border="2"><tr><th>'.&mt('Parameter').'</th><th>'.
+	return &Apache::loncommon::start_data_table().'<tr><th>'.&mt('Parameter').'</th><th>'.
 	    &mt('Delete').'</th><th>'.&mt('Set to ...').'</th></tr>';
     }
 }
@@ -2341,7 +2341,7 @@
 sub tableend {
     if ($tableopen) {
 	$tableopen=0;
-	return '</table>';
+	return &Apache::loncommon::end_data_table();
     } else {
 	return'';
     }
@@ -2592,7 +2592,9 @@
 #
 # Ready to print
 #
-	    $r->print(&tablestart().'<tr><td><b>'.&standard_parameter_names($name).
+	    $r->print(&tablestart().
+		      &Apache::loncommon::start_data_table_row().
+		      '<td><b>'.&standard_parameter_names($name).
 		      '</b></td><td><input type="checkbox" name="del_'.
 		      $thiskey.'" /></td><td>');
 	    $foundkeys++;
@@ -2638,7 +2640,7 @@
 	    }
 	    $r->print('<input type="hidden" name="typeof_'.$thiskey.'" value="'.
 		      $thistype.'">');
-	    $r->print('</td></tr>');
+	    $r->print('</td>'.&Apache::loncommon::end_data_table_row());
 	}
     }
     return $foundkeys;