--- loncom/interface/lontemplate.pm 2008/11/20 13:57:40 1.3 +++ loncom/interface/lontemplate.pm 2008/12/22 14:24:50 1.14 @@ -1,7 +1,7 @@ # The LearningOnline Network # "Template" Functions to generate html output # -# $Id: lontemplate.pm,v 1.3 2008/11/20 13:57:40 www Exp $ +# $Id: lontemplate.pm,v 1.14 2008/12/22 14:24:50 ehlerst Exp $ # # Copyright Michigan State University Board of Trustees # @@ -34,6 +34,8 @@ use strict; use Apache::Constants qw(:common); use Apache::loncommon; use Apache::lonnet; +use Apache::lonxml; +use Apache::lonspeller; use Apache::lontexconvert; use Apache::lonfeedback; use Apache::lonrss(); @@ -42,23 +44,93 @@ 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(''.$content.'
'.$content.''); $r->print('