--- loncom/interface/lonsimplepage.pm 2009/01/28 14:45:06 1.64 +++ loncom/interface/lonsimplepage.pm 2009/02/13 17:26:56 1.65 @@ -1,7 +1,7 @@ # The LearningOnline Network # Simple Page Editor # -# $Id: lonsimplepage.pm,v 1.64 2009/01/28 14:45:06 bisitz Exp $ +# $Id: lonsimplepage.pm,v 1.65 2009/02/13 17:26:56 neumanie Exp $ # # Copyright Michigan State University Board of Trustees # @@ -284,7 +284,7 @@ sub handler { $syllabus{'uploaded.photourl'}); $image=''; + />'; if ($target eq 'tex') { $image=&Apache::lonxml::xmlparse($r,'tex',$image); } @@ -299,12 +299,11 @@ sub handler { '
'. ''. '' ); - } - &Apache::lontemplate::start_columnSection($r); + } if($allowed){ $r->print($image.'
 
'); - } - &Apache::lontemplate::start_ContentBox($r,$allowed); + } + foreach my $field (sort(keys(%syllabusfields))) { if (($syllabus{$field}) || ($allowed) || ($field eq 'abb_links' && $group ne '')) { @@ -349,7 +348,7 @@ sub handler { if($allowed){ $r->print('

'); } - &Apache::lontemplate::print_template($r,$syllabusfields{$field},$message,$allowed); + &Apache::lontemplate::print_template($r,$syllabusfields{$field},$message,$allowed,'LC_ContentBoxSpecial'); } else { my $safeinit; $r->print(&Apache::lonxml::xmlparse($r,'tex','

'.$syllabusfields{$field}.'

')); @@ -367,11 +366,11 @@ sub handler { } } } - &Apache::lontemplate::end_ContentBox($r); + if(!$allowed){ $r->print($image); } - &Apache::lontemplate::end_columnSection($r); + if ($allowed) { $r->print('

'.'
' .''.&mt('Show Student View').''.