--- loncom/interface/domainprefs.pm 2008/07/13 00:00:50 1.63 +++ loncom/interface/domainprefs.pm 2008/07/19 21:44:55 1.65 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Handler to set domain-wide configuration settings # -# $Id: domainprefs.pm,v 1.63 2008/07/13 00:00:50 raeburn Exp $ +# $Id: domainprefs.pm,v 1.65 2008/07/19 21:44:55 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -393,7 +393,10 @@ sub print_config_box { if (($action eq 'autoupdate') || ($action eq 'rolecolors') || ($action eq 'usercreation') || ($action eq 'usermodification') || ($action eq 'coursecategories')) { - my $colspan = ($action eq 'rolecolors')?' colspan="2"':''; + my $colspan = ''; + if (($action eq 'rolecolors') || ($action eq 'coursecategories')) { + $colspan = ' colspan="2"'; + } $output .= ' @@ -423,7 +426,6 @@ sub print_config_box { '; - my $colspan = ($action eq 'coursecategories')?' colspan="2"':''; $output .= ' '; @@ -1983,14 +1985,15 @@ sub print_scantronformat { $css_class = $itemcount%2?' class="LC_odd_row"':''; $datatable .= ''; if (!$is_custom) { - $datatable .= ''; + $datatable .= ''; if (keys(%error) == 0) { $datatable .= '' - .''. + '';
'.&mt($item->{'header'}->[1]->{'col1'}).''.&mt($item->{'header'}->[1]->{'col2'}).'
'.&mt('Default in use:').'
'; + $datatable .= '
'.&mt('Default in use:').'
'. + ''; if ($scantronurl) { $datatable .= ''. &mt('Default scantron format file').''; } else { $datatable = &mt('File unavailable for display'); } - $datatable .= '
'; if (!$switchserver) { @@ -2011,19 +2014,21 @@ sub print_scantronformat { } $datatable .= ''.$errorstr.' '; } elsif ($scantronurl) { - $datatable .= '' - .&mt('Custom scantron format file').'' - .''.&mt('Replace:').'
'; + $datatable .= '
'. + ''. + &mt('Custom scantron format file').' '. + &mt('Replace:').'
'; } } if (keys(%error) == 0) { if ($switchserver) { $datatable .= &mt('Upload to library server: [_1]',$switchserver); } else { - $datatable .=' '; + $datatable .=' '. + ''; } } $datatable .= '