--- loncom/interface/lontemplate.pm 2008/12/02 23:41:00 1.6 +++ loncom/interface/lontemplate.pm 2008/12/17 00:44:53 1.10 @@ -1,7 +1,7 @@ # The LearningOnline Network # "Template" Functions to generate html output # -# $Id: lontemplate.pm,v 1.6 2008/12/02 23:41:00 harmsja Exp $ +# $Id: lontemplate.pm,v 1.10 2008/12/17 00:44:53 ehlerst Exp $ # # Copyright Michigan State University Board of Trustees # @@ -43,11 +43,22 @@ use Apache::lonlocal; use Apache::lonmsgdisplay(); use HTML::Entities(); + +sub start_columnSection{ + my ($r) = @_; + $r->print('
'); + } + &print_template($r,$syllabusfields{$field},$message,$allowed); } else { $r->print('\\\\\textbf{'.$syllabusfields{$field}.'}\\\\'. &Apache::lonxml::xmlparse($r,'tex',$message).'\\\\'); } if ($allowed) { &print_editbox_template($r,$syllabus{$field},$field); + if($target ne 'tex'){ + $r->print('
'); + } } } } + &end_ContentBox($r); +} + +sub start_ContentBox{ + my ($r,$allowed) = @_; + if($allowed){ + $r->print(''.(&Apache::loncommon::messagewrapper(&mt('Send me a message'),$cnum,$cdom)).''); $r->print('
'.$content.''); $r->print('