--- loncom/interface/lonconfigsettings.pm 2009/11/23 21:45:18 1.8 +++ loncom/interface/lonconfigsettings.pm 2010/01/07 18:21:25 1.9 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Handler to set domain-wide configuration settings # -# $Id: lonconfigsettings.pm,v 1.8 2009/11/23 21:45:18 raeburn Exp $ +# $Id: lonconfigsettings.pm,v 1.9 2010/01/07 18:21:25 faziophi Exp $ # # Copyright Michigan State University Board of Trustees # @@ -301,17 +301,30 @@ sub display_settings { } else { $colend = @items; } - $r->print('

'); for (my $i=0; $i<$colend; $i++) { + if ($context ne 'course') { + $r->print('

'); + } + else { + $r->print('
'); + } + for (my $i=0; $i<$colend; $i++) { $r->print($output{$items[$i]}); } - $r->print('
'); + if ($context ne 'course') { + $r->print(''); + } if ($colend < @items) { for (my $i=$colend; $i<@items; $i++) { $r->print($output{$items[$i]}); } } - $r->print('

'); - $r->print(&print_footer($r,$phase,'process','Save',\@actions)); + if ($context ne 'course') { + $r->print('

'); + } + else { + $r->print(''); + } + $r->print(&print_footer($r,$phase,'process','Save Changes',\@actions)); } else { $r->print(''. ' + $(document).ready(function(){ + $("#prefs").accordion({ + autoHeight: false + }); + $("#prefs td.LC_left_item").css("text-align", "right"); + $("#prefs td.LC_left_item").css("width", "40%"); + $("#prefs td.LC_left_item").css("padding-right", "10px"); + $("#prefs td.LC_right_item").css("text-align", "left"); + $("#prefs td.LC_right_item").css("width", "60%"); + }); + +'); + } $r->print(&Apache::loncommon::end_page()); return; }