Diff for /loncom/interface/lonrequestcourse.pm between versions 1.5 and 1.6

version 1.5, 2009/08/06 00:49:31 version 1.6, 2009/08/06 04:01:36
Line 190  sub handler { Line 190  sub handler {
 sub header {  sub header {
     my ($bodytitle,$jscript,$loaditems,$jsextra) = @_;      my ($bodytitle,$jscript,$loaditems,$jsextra) = @_;
     if ($jscript) {      if ($jscript) {
         $jscript = '<script type="text/javascript">'.          $jscript = '<script type="text/javascript">'."\n".
                    $jscript.'</script>'."\n";                     '// <![CDATA['."\n".
                      $jscript."\n".'// ]]>'."\n".'</script>'."\n";
     }      }
     if ($loaditems) {      if ($loaditems) {
         $loaditems = {'add_entries' => $loaditems,};          $loaditems = {'add_entries' => $loaditems,};
Line 968  sub print_review { Line 969  sub print_review {
                              '<td>'.$autoroster[$env{'form.autodrops'}].'</td>'.                               '<td>'.$autoroster[$env{'form.autodrops'}].'</td>'.
                              '<td>'.&Apache::lonlocal::locallocaltime($startenroll).'</td>'.                               '<td>'.&Apache::lonlocal::locallocaltime($startenroll).'</td>'.
                              '<td>'.&Apache::lonlocal::locallocaltime($endenroll).'</td>';                               '<td>'.&Apache::lonlocal::locallocaltime($endenroll).'</td>';
             $section_values = '<td>';              $section_values = '<td><table class="LC_innerpickbox"><tr><th>'.
                                 &mt('Institutional section').'</th>'.
                                 '<th>'.&mt('LON-CAPA section').'</th></tr>';
             my $secinfo;              my $secinfo;
             if ($env{'form.sectotal'} > 0) {              if ($env{'form.sectotal'} > 0) {
                 for (my $i=0; $i<$env{'form.sectotal'}; $i++) {                  for (my $i=0; $i<$env{'form.sectotal'}; $i++) {
Line 983  sub print_review { Line 986  sub print_review {
                     }                      }
                 }                  }
             }              }
             if ($secinfo) {              if ($secinfo eq '') {
                 $section_values .= '<table class="LC_innerpickbox"><tr><th>'.                  $secinfo = '<tr><td colspan="2">'.&mt('None').'</td></tr>';
                                    &mt('Institutional section').'</th>'.  
                                    '<th>'.&mt('LON-CAPA section').'</th></tr>'.$secinfo.  
                                    '</table>';  
             }              }
             $section_values .= '</td><td>';              $section_values .= $secinfo.'</table></td><td>'.
                                  '<table class="LC_innerpickbox"><tr><th>'.
                                  &mt('Institutional course/section').'</th>'.
                                  '<th>'.&mt('LON-CAPA section').'</th></tr>';
             my $xlistinfo;              my $xlistinfo;
             if ($env{'form.crosslisttotal'}) {              if ($env{'form.crosslisttotal'}) {
                 for (my $i=0; $i<$env{'form.crosslisttotal'}; $i++) {                  for (my $i=0; $i<$env{'form.crosslisttotal'}; $i++) {
Line 1012  sub print_review { Line 1015  sub print_review {
                     }                      }
                 }                  }
             }              }
             if ($xlistinfo) {              if ($xlistinfo eq '') {
                 $section_values .= '<table class="LC_innerpickbox"><tr><th>'.                  $xlistinfo = '<tr><td colspan="2">'.&mt('None').'</td></tr>';
                                    &mt('Institutional course/section').'</th>'.  
                                    '<th>'.&mt('LON-CAPA section').'</th></tr>'.$xlistinfo.  
                                    '</table>';  
             }              }
             $section_values .= '</td>';              $section_values .= $xlistinfo.'</table></td>';
         }          }
     }      }
   
Line 1092  sub print_review { Line 1092  sub print_review {
     my $output =  '<p>'.&mt('Review the details of the course request before submission.').'</p>'.        my $output =  '<p>'.&mt('Review the details of the course request before submission.').'</p>'.  
                   '<div>'.&Apache::lonhtmlcommon::start_pick_box().                    '<div>'.&Apache::lonhtmlcommon::start_pick_box().
                   &Apache::lonhtmlcommon::row_title(&mt('Owner')).                    &Apache::lonhtmlcommon::row_title(&mt('Owner')).
                   '<table class="LC_innerpickbox">'.                    '<table class="LC_innerpickbox"><tr>'.
                   '<th>'.&mt('Name').'</th>'.                    '<th>'.&mt('Name').'</th>'.
                   '<th>'.&mt('Username:Domain').'</th>'.                    '<th>'.&mt('Username:Domain').'</th>'.
                   '<th>'.&mt('E-mail address').'</th>'.                    '<th>'.&mt('E-mail address').'</th>'.

Removed from v.1.5  
changed lines
  Added in v.1.6


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