[LON-CAPA-cvs] cvs: loncom(GCI_2) /interface courseprefs.pm

raeburn raeburn@source.lon-capa.org
Sun, 06 Dec 2009 22:17:07 -0000


raeburn		Sun Dec  6 22:17:07 2009 EDT

  Modified files:              (Branch: GCI_2)
    /loncom/interface	courseprefs.pm 
  Log:
  - Backport 1.10.
  
  
Index: loncom/interface/courseprefs.pm
diff -u loncom/interface/courseprefs.pm:1.8 loncom/interface/courseprefs.pm:1.8.4.1
--- loncom/interface/courseprefs.pm:1.8	Tue Oct 13 04:48:03 2009
+++ loncom/interface/courseprefs.pm	Sun Dec  6 22:17:07 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Handler to set configuration settings for a course
 #
-# $Id: courseprefs.pm,v 1.8 2009/10/13 04:48:03 raeburn Exp $
+# $Id: courseprefs.pm,v 1.8.4.1 2009/12/06 22:17:07 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1640,7 +1640,7 @@
     } else {
         my $num = 0;
         my @curr = split(/,/,$currvalue);
-        $output .= &Apache::loncommon::start_data_table();
+        $output .= '<table class="LC_nested_outer">';
         my ($currusers);
         foreach my $val (@curr) {
             next if ($val eq '');
@@ -1671,7 +1671,7 @@
             $num ++;
         }
         if ($num) {
-            $output .= &Apache::loncommon::start_data_table_row().
+            $output .= '<tr>'.
                        '<td align="left"><i>';
             if ($num > 1) {
                 $output .= $lt->{'currone'};
@@ -1680,15 +1680,14 @@
             }
             $output .= '</i><br />'.
                           '<table>'.$currusers.'</table></td>'.
-                          &Apache::loncommon::end_data_table_row();
+                          '</tr>';
         }
-        $output .= &Apache::loncommon::start_data_table_row().
+        $output .= '<tr>'. 
                   '<td align="left"><span class="LC_nobreak"><i>'.
                   $lt->{'add'}.'</i></span><br />'.
                   &select_recipient($item,$num,$cdom,$sections).
                   '<input type="hidden" name="'.$item.'_total" value="'.$num.'" />'.
-                  '</td>'.&Apache::loncommon::end_data_table_row().
-                  &Apache::loncommon::end_data_table();
+                  '</td></tr></table>';
     }
     return $output;
 }
@@ -1699,9 +1698,8 @@
     my $selectlink =
         &Apache::loncommon::selectstudent_link('display',$item.'_uname_'.$num,
                                                $item.'_udom_'.$num,1);
-    my $css_class = ($num % 2)?'LC_even_row':'LC_odd_row';
     my $output = 
-        '<table><tr class="'.$css_class.'"><td align="center">'.&mt('Username').'<br />'.
+        '<table><tr><td align="center">'.&mt('Username').'<br />'.
         '<input type="text" name="'.$item.'_uname_'.$num.'" value="" /></td>'.
         '<td align="center">'.&mt('Domain').'<br />'.$domform.'</td>';
     if (ref($sections) eq 'ARRAY') {
@@ -1755,8 +1753,9 @@
     }
     my %items = (
         'plc.roles.denied' => {
-                   text => '<b>'.&mt($itemtext->{'plc.roles.denied'}).'</b>'.
-                           &Apache::loncommon::help_open_topic("Course_Disable_Discussion").
+                   text => '<span class="LC_nobreak"><b>'.
+                           &mt($itemtext->{'plc.roles.denied'}).'</b>'.
+                           &Apache::loncommon::help_open_topic("Course_Disable_Discussion").'</span><br />'.
                            &mt('(role-based)'),
                    input => 'checkbox',
                  },
@@ -1768,8 +1767,9 @@
                  },
 
         'pch.roles.denied'   => {
-                   text => '<b>'.&mt($itemtext->{'pch.roles.denied'}).'</b>'.
-                           &Apache::loncommon::help_open_topic("Course_Disable_Discussion").'<br />'.
+                   text => '<span class="LC_nobreak"><b>'.
+                           &mt($itemtext->{'pch.roles.denied'}).'</b>'.
+                           &Apache::loncommon::help_open_topic("Course_Disable_Discussion").'</span><br />'.
                            &mt('(role-based)'),
                    input => 'checkbox',
                  },
@@ -2515,11 +2515,11 @@
 </script>
 
 ENDJS
-    $output .= $currstr.&Apache::loncommon::start_data_table();
+    $output .= $currstr.'<table class="LC_nested_outer">';
     if (@curr > 0) {
         for (my $i=0; $i<@curr; $i++) {
             my $pos = $i+1;
-            $output .= &Apache::loncommon::start_data_table_row().
+            $output .= '<tr>'.
                        '<td align="left"><span class="LC_nobreak">'.
                        &position_selector($pos,$i,$maxnum).&mt('Delete:').
                        '<input type="checkbox" name="printfmthdr_del_'.$i.
@@ -2533,19 +2533,19 @@
                            '<input type="textbox" name="printfmthdr_text_'.$i.'"'.
                            ' value="'.$curr[$i].'" size="25" /></td>';
             }
-            $output .= &Apache::loncommon::end_data_table_row();
+            $output .= '</tr>';
         }
     }
     my $pos = $currnum+1; 
-    $output .= &Apache::loncommon::start_data_table_row().
+    $output .= '<tr>'.
                '<td align="left"><span class="LC_nobreak">'.
                &position_selector($pos,$currnum,$maxnum).
                '<b>'.&mt('New').'</b></span></td><td align="left">'.
                &substitution_selector($currnum).'</td>'.
-               &Apache::loncommon::end_data_table_row();
+               '</tr>';
     $pos ++;
     $currnum ++;
-    $output .= &Apache::loncommon::start_data_table_row().
+    $output .= '<tr>'.
                '<td align="left"><span class="LC_nobreak">'.
                &position_selector($pos,$currnum,$maxnum).
                '<b>'.&mt('New').'</b></span></td>'.
@@ -2554,8 +2554,8 @@
                '" value="" size ="25" />'.
                '<input type="hidden" name="printfmthdr_maxnum" value="'.
                 $maxnum.'" /></td>'.
-               &Apache::loncommon::end_data_table_row().
-               &Apache::loncommon::end_data_table(); 
+               '</tr>'.
+               '</table>';
     return $output;
 }