--- loncom/interface/lonrequestcourse.pm 2009/08/06 00:49:31 1.5 +++ loncom/interface/lonrequestcourse.pm 2009/08/06 04:01:36 1.6 @@ -1,7 +1,7 @@ # The LearningOnline Network # Request a course # -# $Id: lonrequestcourse.pm,v 1.5 2009/08/06 00:49:31 raeburn Exp $ +# $Id: lonrequestcourse.pm,v 1.6 2009/08/06 04:01:36 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -190,8 +190,9 @@ sub handler { sub header { my ($bodytitle,$jscript,$loaditems,$jsextra) = @_; if ($jscript) { - $jscript = ''."\n"; + $jscript = ''."\n"; } if ($loaditems) { $loaditems = {'add_entries' => $loaditems,}; @@ -968,7 +969,9 @@ sub print_review { ''.$autoroster[$env{'form.autodrops'}].''. ''.&Apache::lonlocal::locallocaltime($startenroll).''. ''.&Apache::lonlocal::locallocaltime($endenroll).''; - $section_values = ''; + $section_values = ''. + ''; my $secinfo; if ($env{'form.sectotal'} > 0) { for (my $i=0; $i<$env{'form.sectotal'}; $i++) { @@ -983,13 +986,13 @@ sub print_review { } } } - if ($secinfo) { - $section_values .= '
'. + &mt('Institutional section').''.&mt('LON-CAPA section').'
'. - ''.$secinfo. - '
'. - &mt('Institutional section').''.&mt('LON-CAPA section').'
'; + if ($secinfo eq '') { + $secinfo = ''.&mt('None').''; } - $section_values .= ''; + $section_values .= $secinfo.''. + ''. + ''; my $xlistinfo; if ($env{'form.crosslisttotal'}) { for (my $i=0; $i<$env{'form.crosslisttotal'}; $i++) { @@ -1012,13 +1015,10 @@ sub print_review { } } } - if ($xlistinfo) { - $section_values .= '
'. + &mt('Institutional course/section').''.&mt('LON-CAPA section').'
'. - ''.$xlistinfo. - '
'. - &mt('Institutional course/section').''.&mt('LON-CAPA section').'
'; + if ($xlistinfo eq '') { + $xlistinfo = ''.&mt('None').''; } - $section_values .= ''; + $section_values .= $xlistinfo.''; } } @@ -1092,7 +1092,7 @@ sub print_review { my $output = '

'.&mt('Review the details of the course request before submission.').'

'. '
'.&Apache::lonhtmlcommon::start_pick_box(). &Apache::lonhtmlcommon::row_title(&mt('Owner')). - ''. + '
'. ''. ''. ''.
'.&mt('Name').''.&mt('Username:Domain').''.&mt('E-mail address').'