--- loncom/interface/lonbulletin.pm 2009/12/08 13:33:12 1.55 +++ loncom/interface/lonbulletin.pm 2009/12/14 13:42:33 1.56 @@ -1,7 +1,7 @@ # The LearningOnline Network # Bulletin Board Handler # -# $Id: lonbulletin.pm,v 1.55 2009/12/08 13:33:12 wenzelju Exp $ +# $Id: lonbulletin.pm,v 1.56 2009/12/14 13:42:33 wenzelju Exp $ # # Copyright Michigan State University Board of Trustees # @@ -236,6 +236,19 @@ sub handler { # ---------------------------------------------------------------- Get discussion board if (($syllabus{'uploaded.lastmodified'}) || ($allowed)) { + #Print Topic as Heading + my $titletext=$syllabus{'aaa_title'}; + if ($target ne 'tex') { + $r->print('

'.$titletext.'

'); + } else { + $r->print('\\\\\textbf{'.&Apache::lonxml::xmlparse($r,'tex',$titletext).'}\\\\'); + } + #Outputbox and Inputbox for Topic + if ($allowed) { + $r->print('
'); + &Apache::lontemplate::print_template($r, &mt('Title'), $titletext,$allowed,'LC_Box'); + &Apache::lontemplate::print_editbox_template($r, $syllabus{'aaa_title'},'aaa_title'); + } if ($syllabus{'uploaded.photourl'}) { &Apache::lonnet::allowuploaded('/adm/syllabus', $syllabus{'uploaded.photourl'}); @@ -244,11 +257,9 @@ sub handler { if ($allowed) { &Apache::lontemplate::print_template($r, &mt('Upload a Photo'), ''.&mt('Image').'',$allowed,'LC_Box'); $r->print( - ''. ''. ''. ''. - '
'. ''); } #Image in Student view. @@ -277,19 +288,7 @@ sub handler { if ($allowed) { &Apache::lontemplate::print_editbox_template($r, $syllabus{$field}, $field); } - } else { - #Print Topic as Heading - if ($target ne 'tex') { - $r->print('

'.$message.'

'); - } else { - $r->print('\\\\\textbf{'.&Apache::lonxml::xmlparse($r,'tex',$message).'}\\\\'); - } - #Outputbox and Inputbox for Topic - if ($allowed) { - &Apache::lontemplate::print_template($r, $syllabusfields{$field}, $message,$allowed,'LC_Box'); - &Apache::lontemplate::print_editbox_template($r, $syllabus{$field}, $field); - } - } + } } } if ($allowed) {