version 1.6, 2008/12/02 23:41:00
|
version 1.7, 2008/12/09 10:31:49
|
Line 43 use Apache::lonlocal;
|
Line 43 use Apache::lonlocal;
|
use Apache::lonmsgdisplay(); |
use Apache::lonmsgdisplay(); |
use HTML::Entities(); |
use HTML::Entities(); |
|
|
|
|
|
sub start_columnSection{ |
|
my ($r) = @_; |
|
$r->print('<div class="columnSection">'); |
|
} |
|
|
|
sub end_columnSection{ |
|
my ($r) = @_; |
|
$r->print('</div>'); |
|
} |
|
|
sub print_content_template{ |
sub print_content_template{ |
my ($r,$allowed,$target,$syllabusfields_ref,$syllabus_ref) = @_; |
my ($r,$allowed,$target,$syllabusfields_ref,$syllabus_ref) = @_; |
my %syllabusfields = %{$syllabusfields_ref}; |
my %syllabusfields = %{$syllabusfields_ref}; |
my %syllabus = %{$syllabus_ref}; |
my %syllabus = %{$syllabus_ref}; |
$r->print('<div class="columnSection">'); |
# if(!$allowed){ |
|
$r->print('<div class="ContentBox">'); |
|
# } |
foreach my $field (sort(keys(%syllabusfields))) { |
foreach my $field (sort(keys(%syllabusfields))) { |
if (($syllabus{$field}) || ($allowed)) { |
if (($syllabus{$field}) || ($allowed)) { |
my $message=$syllabus{$field}; |
my $message=$syllabus{$field}; |
Line 73 sub print_content_template{
|
Line 86 sub print_content_template{
|
} |
} |
} |
} |
} |
} |
$r->print('</div>'); |
# if(!$allowed){ |
|
$r->print('</div>'); |
|
# } |
} |
} |
|
|
|
sub print_image { |
|
my ($r,$image) = @_; |
|
$r->print('<div class="ContentBox">'); |
|
$r->print($image); |
|
$r->print('</div>'); |
|
} |
|
|
sub print_template |
sub print_template |
{ |
{ |
my ($r,$topic,$content) = @_; |
my ($r,$topic,$content) = @_; |
Line 88 sub print_template
|
Line 110 sub print_template
|
sub print_editbox_template |
sub print_editbox_template |
{ |
{ |
my ($r,$content,$field) = @_; |
my ($r,$content,$field) = @_; |
$r->print('<br /><textarea cols="80" rows="6" name="'.$field.'">'. |
$r->print('<br /><textarea cols="55" rows="6" name="'.$field.'">'. |
&HTML::Entities::encode($content,'"&<>'). |
&HTML::Entities::encode($content,'"&<>'). |
'</textarea><input type="submit" name="storesyl" value="'. |
'</textarea><input type="submit" name="storesyl" value="'. |
&mt('Save All').'" />'); |
&mt('Save All').'" />'); |
|
|
} |
} |
|
|
1; |
1; |