--- loncom/interface/lonrequestcourse.pm 2009/08/05 23:44:52 1.4 +++ 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.4 2009/08/05 23:44:52 raeburn Exp $ +# $Id: lonrequestcourse.pm,v 1.6 2009/08/06 04:01:36 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -115,7 +115,7 @@ sub handler { my %trail = ( crstype => 'Course Request Action', codepick => 'Category', - courseinfo => 'Information', + courseinfo => 'Description', enrollment => 'Enrollment', personnel => 'Personnel', review => 'Review', @@ -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,41 +969,56 @@ sub print_review { '
'. + &mt('Institutional section').' | '. + ''.&mt('LON-CAPA section').' |
---|---|
'.$env{'form.secnum_'.$i}.' | ';
if ($env{'form.loncapasec_'.$i} ne '') {
- $section_values .= ' => '.$env{'form.loncapasec_'.$i};
+ $secinfo .= $env{'form.loncapasec_'.$i};
+ } else {
+ $secinfo .= &mt('None');
}
- $section_values .= ' '; + $secinfo .= ' | '; + if ($secinfo eq '') { + $secinfo = ' |
'.&mt('None').' |
'. + &mt('Institutional course/section').' | '. + ''.&mt('LON-CAPA section').' |
---|---|
'; + if (ref($code_order) eq 'ARRAY') { + if (@{$code_order} > 0) { + foreach my $item (@{$code_order}) { + $xlistinfo .= $env{'form.crosslist_'.$i.'_'.$item}; } - } else { - $section_values .= $env{'form.crosslist_'.$i.'_instsec'}; } - } else { - $section_values .= $env{'form.crosslist_'.$i.'_instsec'}; } + $xlistinfo .= $env{'form.crosslist_'.$i.'_instsec'}.' | ';
if ($env{'form.crosslist_'.$i.'_lcsec'}) {
- $section_values .= ' => '.$env{'form.crosslist_'.$i.'_lcsec'};
+ $xlistinfo .= $env{'form.crosslist_'.$i.'_lcsec'};
+ } else {
+ $xlistinfo .= &mt('None');
}
- $section_values .= ' '; + $xlistinfo .= ' |
'.&mt('None').' |
'.&mt('Review the details of the course request before submission.').'
'. ''.&mt('Name').' | '. ''.&mt('Username:Domain').' | '. ''.&mt('E-mail address').' | '. @@ -1085,7 +1101,7 @@ sub print_review { ''.$owneremail.' | '. '
---|