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

albertel lon-capa-cvs-allow@mail.lon-capa.org
Fri, 27 Jul 2007 00:24:50 -0000


albertel		Thu Jul 26 20:24:50 2007 EDT

  Modified files:              
    /loncom/interface	lonsyllabus.pm 
  Log:
  - data table the adv role listing on the syllabus page
  
  
Index: loncom/interface/lonsyllabus.pm
diff -u loncom/interface/lonsyllabus.pm:1.61 loncom/interface/lonsyllabus.pm:1.62
--- loncom/interface/lonsyllabus.pm:1.61	Thu Jul 26 20:21:39 2007
+++ loncom/interface/lonsyllabus.pm	Thu Jul 26 20:24:50 2007
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Syllabus
 #
-# $Id: lonsyllabus.pm,v 1.61 2007/07/27 00:21:39 albertel Exp $
+# $Id: lonsyllabus.pm,v 1.62 2007/07/27 00:24:50 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -135,13 +135,14 @@
 # -------------------------------------------------------- Get course personnel
     my %coursepersonnel=&Apache::lonnet::get_course_adv_roles($cdom.'/'.$cnum);
     if ($target ne 'tex') {
-	$r->print('<table border="2">');
+	$r->print(&Apache::loncommon::start_data_table());
     } else {
 	$r->print('\begin{tabular}{|p{0.45\textwidth}|p{0.45\textwidth}|}\hline');
     }
     foreach my $element (sort keys %coursepersonnel) {
 	if ($target ne 'tex') {
-	    $r->print('<tr><td>'.$element.'</td><td>');
+	    $r->print(&Apache::loncommon::start_data_table_row().
+		      '<td>'.$element.'</td><td>');
 	} else {
 	    $r->print(' '.&Apache::lonxml::xmlparse($r,'tex',$element).' & '); 
 	}
@@ -157,13 +158,13 @@
 	    }
 	}
 	if ($target ne 'tex') {
-	    $r->print('</td></tr>');
+	    $r->print('</td>'.&Apache::loncommon::end_data_table_row());
 	} else {
 	    $r->print('\\\\ \hline');
 	}
     }
     if ($target ne 'tex') {
-	$r->print('</table>');
+	$r->print(&Apache::loncommon::end_data_table());
     } else {
 	$r->print('\end{tabular}\\\\');
     }