version 1.8, 2009/11/23 21:45:18
|
version 1.9, 2010/01/07 18:21:25
|
Line 301 sub display_settings {
|
Line 301 sub display_settings {
|
} else { |
} else { |
$colend = @items; |
$colend = @items; |
} |
} |
$r->print('<p><table class="LC_double_column"><tr><td class="LC_left_col">'); for (my $i=0; $i<$colend; $i++) { |
if ($context ne 'course') { |
|
$r->print('<p><table class="LC_double_column"><tr><td class="LC_left_col">'); |
|
} |
|
else { |
|
$r->print('<div id="prefs" style="max-width:900px;margin: 10px auto 10px auto;">'); |
|
} |
|
for (my $i=0; $i<$colend; $i++) { |
$r->print($output{$items[$i]}); |
$r->print($output{$items[$i]}); |
} |
} |
$r->print('</td><td></td><td class="LC_right_col">'); |
if ($context ne 'course') { |
|
$r->print('</td><td></td><td class="LC_right_col">'); |
|
} |
if ($colend < @items) { |
if ($colend < @items) { |
for (my $i=$colend; $i<@items; $i++) { |
for (my $i=$colend; $i<@items; $i++) { |
$r->print($output{$items[$i]}); |
$r->print($output{$items[$i]}); |
} |
} |
} |
} |
$r->print('</td></tr></table></p>'); |
if ($context ne 'course') { |
$r->print(&print_footer($r,$phase,'process','Save',\@actions)); |
$r->print('</td></tr></table></p>'); |
|
} |
|
else { |
|
$r->print('</div>'); |
|
} |
|
$r->print(&print_footer($r,$phase,'process','Save Changes',\@actions)); |
} else { |
} else { |
$r->print('<input type="hidden" name="phase" value="" />'. |
$r->print('<input type="hidden" name="phase" value="" />'. |
'<input type="hidden" name="numcols" value="'. |
'<input type="hidden" name="numcols" value="'. |
Line 321 sub display_settings {
|
Line 334 sub display_settings {
|
} |
} |
$r->print('</form>'); |
$r->print('</form>'); |
} |
} |
|
if ($context eq 'course') { |
|
$r->print(' |
|
<script type="text/javascript"> |
|
$(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%"); |
|
}); |
|
</script> |
|
'); |
|
} |
$r->print(&Apache::loncommon::end_page()); |
$r->print(&Apache::loncommon::end_page()); |
return; |
return; |
} |
} |