Diff for /loncom/interface/courseprefs.pm between versions 1.8 and 1.8.2.1

version 1.8, 2009/10/13 04:48:03 version 1.8.2.1, 2009/11/24 21:50:14
Line 1640  sub user_table { Line 1640  sub user_table {
     } else {      } else {
         my $num = 0;          my $num = 0;
         my @curr = split(/,/,$currvalue);          my @curr = split(/,/,$currvalue);
         $output .= &Apache::loncommon::start_data_table();          $output .= '<table class="LC_nested_outer">';
         my ($currusers);          my ($currusers);
         foreach my $val (@curr) {          foreach my $val (@curr) {
             next if ($val eq '');              next if ($val eq '');
Line 1671  sub user_table { Line 1671  sub user_table {
             $num ++;              $num ++;
         }          }
         if ($num) {          if ($num) {
             $output .= &Apache::loncommon::start_data_table_row().              $output .= '<tr>'.
                        '<td align="left"><i>';                         '<td align="left"><i>';
             if ($num > 1) {              if ($num > 1) {
                 $output .= $lt->{'currone'};                  $output .= $lt->{'currone'};
Line 1680  sub user_table { Line 1680  sub user_table {
             }              }
             $output .= '</i><br />'.              $output .= '</i><br />'.
                           '<table>'.$currusers.'</table></td>'.                            '<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>'.                    '<td align="left"><span class="LC_nobreak"><i>'.
                   $lt->{'add'}.'</i></span><br />'.                    $lt->{'add'}.'</i></span><br />'.
                   &select_recipient($item,$num,$cdom,$sections).                    &select_recipient($item,$num,$cdom,$sections).
                   '<input type="hidden" name="'.$item.'_total" value="'.$num.'" />'.                    '<input type="hidden" name="'.$item.'_total" value="'.$num.'" />'.
                   '</td>'.&Apache::loncommon::end_data_table_row().                    '</td></tr></table>';
                   &Apache::loncommon::end_data_table();  
     }      }
     return $output;      return $output;
 }  }
Line 1699  sub select_recipient { Line 1698  sub select_recipient {
     my $selectlink =      my $selectlink =
         &Apache::loncommon::selectstudent_link('display',$item.'_uname_'.$num,          &Apache::loncommon::selectstudent_link('display',$item.'_uname_'.$num,
                                                $item.'_udom_'.$num,1);                                                 $item.'_udom_'.$num,1);
     my $css_class = ($num % 2)?'LC_even_row':'LC_odd_row';  
     my $output =       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>'.          '<input type="text" name="'.$item.'_uname_'.$num.'" value="" /></td>'.
         '<td align="center">'.&mt('Domain').'<br />'.$domform.'</td>';          '<td align="center">'.&mt('Domain').'<br />'.$domform.'</td>';
     if (ref($sections) eq 'ARRAY') {      if (ref($sections) eq 'ARRAY') {
Line 1755  sub print_discussion { Line 1753  sub print_discussion {
     }      }
     my %items = (      my %items = (
         'plc.roles.denied' => {          'plc.roles.denied' => {
                    text => '<b>'.&mt($itemtext->{'plc.roles.denied'}).'</b>'.                     text => '<span class="LC_nobreak"><b>'.
                            &Apache::loncommon::help_open_topic("Course_Disable_Discussion").                             &mt($itemtext->{'plc.roles.denied'}).'</b>'.
                              &Apache::loncommon::help_open_topic("Course_Disable_Discussion").'</span><br />'.
                            &mt('(role-based)'),                             &mt('(role-based)'),
                    input => 'checkbox',                     input => 'checkbox',
                  },                   },
Line 1768  sub print_discussion { Line 1767  sub print_discussion {
                  },                   },
   
         'pch.roles.denied'   => {          'pch.roles.denied'   => {
                    text => '<b>'.&mt($itemtext->{'pch.roles.denied'}).'</b>'.                     text => '<span class="LC_nobreak"><b>'.
                            &Apache::loncommon::help_open_topic("Course_Disable_Discussion").'<br />'.                             &mt($itemtext->{'pch.roles.denied'}).'</b>'.
                              &Apache::loncommon::help_open_topic("Course_Disable_Discussion").'</span><br />'.
                            &mt('(role-based)'),                             &mt('(role-based)'),
                    input => 'checkbox',                     input => 'checkbox',
                  },                   },
Line 2515  function getIndexByName(item) { Line 2515  function getIndexByName(item) {
 </script>  </script>
   
 ENDJS  ENDJS
     $output .= $currstr.&Apache::loncommon::start_data_table();      $output .= $currstr.'<table class="LC_nested_outer">';
     if (@curr > 0) {      if (@curr > 0) {
         for (my $i=0; $i<@curr; $i++) {          for (my $i=0; $i<@curr; $i++) {
             my $pos = $i+1;              my $pos = $i+1;
             $output .= &Apache::loncommon::start_data_table_row().              $output .= '<tr>'.
                        '<td align="left"><span class="LC_nobreak">'.                         '<td align="left"><span class="LC_nobreak">'.
                        &position_selector($pos,$i,$maxnum).&mt('Delete:').                         &position_selector($pos,$i,$maxnum).&mt('Delete:').
                        '<input type="checkbox" name="printfmthdr_del_'.$i.                         '<input type="checkbox" name="printfmthdr_del_'.$i.
Line 2533  ENDJS Line 2533  ENDJS
                            '<input type="textbox" name="printfmthdr_text_'.$i.'"'.                             '<input type="textbox" name="printfmthdr_text_'.$i.'"'.
                            ' value="'.$curr[$i].'" size="25" /></td>';                             ' value="'.$curr[$i].'" size="25" /></td>';
             }              }
             $output .= &Apache::loncommon::end_data_table_row();              $output .= '</tr>';
         }          }
     }      }
     my $pos = $currnum+1;       my $pos = $currnum+1; 
     $output .= &Apache::loncommon::start_data_table_row().      $output .= '<tr>'.
                '<td align="left"><span class="LC_nobreak">'.                 '<td align="left"><span class="LC_nobreak">'.
                &position_selector($pos,$currnum,$maxnum).                 &position_selector($pos,$currnum,$maxnum).
                '<b>'.&mt('New').'</b></span></td><td align="left">'.                 '<b>'.&mt('New').'</b></span></td><td align="left">'.
                &substitution_selector($currnum).'</td>'.                 &substitution_selector($currnum).'</td>'.
                &Apache::loncommon::end_data_table_row();                 '</tr>';
     $pos ++;      $pos ++;
     $currnum ++;      $currnum ++;
     $output .= &Apache::loncommon::start_data_table_row().      $output .= '<tr>'.
                '<td align="left"><span class="LC_nobreak">'.                 '<td align="left"><span class="LC_nobreak">'.
                &position_selector($pos,$currnum,$maxnum).                 &position_selector($pos,$currnum,$maxnum).
                '<b>'.&mt('New').'</b></span></td>'.                 '<b>'.&mt('New').'</b></span></td>'.
Line 2554  ENDJS Line 2554  ENDJS
                '" value="" size ="25" />'.                 '" value="" size ="25" />'.
                '<input type="hidden" name="printfmthdr_maxnum" value="'.                 '<input type="hidden" name="printfmthdr_maxnum" value="'.
                 $maxnum.'" /></td>'.                  $maxnum.'" /></td>'.
                &Apache::loncommon::end_data_table_row().                 '</tr>'.
                &Apache::loncommon::end_data_table();                  '</table>';
     return $output;      return $output;
 }  }
   

Removed from v.1.8  
changed lines
  Added in v.1.8.2.1


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>