--- loncom/interface/lonsimplepage.pm 2009/02/19 17:32:39 1.67 +++ loncom/interface/lonsimplepage.pm 2009/02/20 15:09:28 1.68 @@ -1,7 +1,7 @@ # The LearningOnline Network # Simple Page Editor # -# $Id: lonsimplepage.pm,v 1.67 2009/02/19 17:32:39 neumanie Exp $ +# $Id: lonsimplepage.pm,v 1.68 2009/02/20 15:09:28 amueller Exp $ # # Copyright Michigan State University Board of Trustees # @@ -305,8 +305,11 @@ sub handler { '
' ); } if($allowed){ - $r->print($image.'
 
'); + $r->print($image.'
 
'); } +# if(!$allowed){ +# $r-print($image); +# } foreach my $field (sort(keys(%syllabusfields))) { if (($syllabus{$field}) || ($allowed) || @@ -332,21 +335,24 @@ sub handler { if($allowed){ $r->print('

'); } - $r->print('

'.$message.'

'); + $r->print('

'.$message.'

'); } else { my $safeinit; $r->print(&Apache::lonxml::xmlparse($r,'tex','

'.$message.'

')); } if ($allowed) { if ($env{'form.grade_target'} ne 'tex') { - $r->print('

'.&mt('Title').'

'); + #$r->print('

'.&mt('Title').'

'); + &Apache::lontemplate::print_template($r, &mt('Title'), $message, $allowed, 'LC_ContentBoxSpecial'); &Apache::lontemplate::print_editbox_template($r,$syllabus{$field},$field); $r->print('

'); } else { my $safeinit; $r->print(&Apache::lonxml::xmlparse($r,'tex',$syllabus{$field},$safeinit)); } - } + } +# if ($allowed) { $r->print($image . '
 
'); } + if(!$allowed) {$r->print($image); } } else { if ($target ne 'tex') { if($allowed){ @@ -370,10 +376,10 @@ sub handler { } } } - - if(!$allowed){ - $r->print($image); - } + #MUEA: Stand hier if??? +# if(!$allowed){ +# $r->print($image); +# } if ($allowed && ($env{'form.grade_target'} ne 'tex')) { $r->print(&Apache::lonhtmlcommon::htmlareaselectactive ('bbb_content').'
');