Diff for /loncom/interface/lontemplate.pm between versions 1.6 and 1.8

version 1.6, 2008/12/02 23:41:00 version 1.8, 2008/12/10 15:58:36
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">');          $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 84  sub print_content_template{
               }                }
           }            }
        }         }
    $r->print('</div>');
   }
   
   sub start_ContentBox{
    my ($r) = @_;
    $r->print('<div class="ContentBox">');
   }
   
   sub end_ContentBox{
    my ($r) = @_;
    $r->print('</div>');
   }
   
   sub send_message{
    my ($r,$cnum,$cdom) = @_;
    $r->print('<div class="ContentBoxSpecial">');
    $r->print('<h4 class="hcell">'.&mt('Contact').'</h4>');
           $r->print('<blockquote>'.(&Apache::loncommon::messagewrapper(&mt('Send me a message'),$cnum,$cdom)).'</blockquote>');
         $r->print('</div>');          $r->print('</div>');
 }  }
   
Line 88  sub print_template Line 117  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="53" 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;

Removed from v.1.6  
changed lines
  Added in v.1.8


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>