Diff for /loncom/interface/lontemplate.pm between versions 1.18 and 1.19

version 1.18, 2009/02/20 15:09:28 version 1.19, 2009/02/20 17:45:40
Line 58  sub print_aboutme_content_template{ Line 58  sub print_aboutme_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};
  #&start_ContentBox($r,$allowed);  
        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 97  sub print_aboutme_content_template{ Line 97  sub print_aboutme_content_template{
               }                }
           }            }
        }         }
  #&end_ContentBox($r);  
 }  }
   
 sub start_ContentBox{  sub start_ContentBox{
Line 114  sub end_ContentBox{ Line 114  sub end_ContentBox{
 sub send_message{  sub send_message{
  my ($r,$cnum,$cdom) = @_;   my ($r,$cnum,$cdom) = @_;
  my $s;   my $s;
  my $image = qq{<img name="Send message" src="/res/adm/pages/com.png" border="none" />};   my $image = qq{<img name="Send message" src="/res/adm/pages/com.png" border="none" />};
  #$r->print('<div>');   $s=&Apache::loncommon::messagewrapper($image,$cnum,$cdom).' '.&Apache::loncommon::messagewrapper(&mt('Send me a message'),$cnum,$cdom);
  $s=&Apache::loncommon::messagewrapper($image,$cnum,$cdom).' '.&Apache::loncommon::messagewrapper(&mt('Send me a message'),$cnum,$cdom);  
  #$r->print('</div>');  
  return $s;   return $s;
 }  }
   
Line 126  sub print_template Line 124  sub print_template
  my ($r,$topic,$content, $allowed,$boxclass) = @_;   my ($r,$topic,$content, $allowed,$boxclass) = @_;
  $r->print('<div class="'.$boxclass.'">');   $r->print('<div class="'.$boxclass.'">');
  $r->print('<h4 class="LC_hcell">'.$topic.'</h4>');   $r->print('<h4 class="LC_hcell">'.$topic.'</h4>');
 # $r->print('<blockquote>'.$content.'</blockquote>');  
  $r->print('<p>' .$content . '</p>');   $r->print('<p>' .$content . '</p>');
  $r->print('</div>');   $r->print('</div>');
 }  }
Line 141  sub print_editbox_template Line 138  sub print_editbox_template
 }  }
 sub print_start_page_functions  sub print_start_page_functions
 {  {
  my($r)=@_;   my($r)=@_;
  #TODO add translation for Functions  
  $r->print('<fieldset><legend>'. &mt('Functions') . '</legend>');   $r->print('<fieldset><legend>'. &mt('Functions') . '</legend>');
 }  }
 sub print_functions_content  sub print_functions_content
 {  {
  my($r,$content) = @_;   my($r,$content) = @_;
  $r->print($content.'&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp');   $r->print('&nbsp'.$content.'&nbsp');
   
 }  }
 sub print_end_page_functions  sub print_end_page_functions

Removed from v.1.18  
changed lines
  Added in v.1.19


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