Diff for /loncom/interface/lonaboutme.pm between versions 1.77 and 1.79

version 1.77, 2008/12/08 23:13:52 version 1.79, 2008/12/09 11:31:56
Line 236  sub handler { Line 236  sub handler {
   &Apache::lonnet::removeuploadedurl($syllabus{'uploaded.photourl'});    &Apache::lonnet::removeuploadedurl($syllabus{'uploaded.photourl'});
       }        }
       $syllabus{'uploaded.photourl'}=        $syllabus{'uploaded.photourl'}=
                  &Apache::lonnet::userfileupload('uploaddoc',undef,'aboutme');                   &Apache::lonnet::userphotoupload('uploaddoc','aboutme');
    }     }
           $syllabus{'uploaded.lastmodified'}=time;            $syllabus{'uploaded.lastmodified'}=time;
           &Apache::lonnet::put('aboutme',\%syllabus,$cdom,$cnum);            &Apache::lonnet::put('aboutme',\%syllabus,$cdom,$cnum);
Line 270  my $image; Line 270  my $image;
        if ($syllabus{'uploaded.photourl'}) {         if ($syllabus{'uploaded.photourl'}) {
    &Apache::lonnet::allowuploaded('/adm/aboutme',     &Apache::lonnet::allowuploaded('/adm/aboutme',
   $syllabus{'uploaded.photourl'});    $syllabus{'uploaded.photourl'});
    $image=     $image=qq{<img name="userPhoto" src="$syllabus{'uploaded.photourl'}" />};
                qq{<img name="userPhoto" src="$syllabus{'uploaded.photourl'}" />};  
   
    if ($target eq 'tex') {     if ($target eq 'tex') {
        $image=&Apache::lonxml::xmlparse($r,'tex',$image);         $image=&Apache::lonxml::xmlparse($r,'tex',$image);
Line 291  my $image; Line 290  my $image;
  '</form><form method="post">');   '</form><form method="post">');
   
        }         }
    &Apache::lontemplate::start_columnSection($r);
  &Apache::lontemplate::print_content_template($r,$allowed,$target,\%syllabusfields,\%syllabus);   &Apache::lontemplate::print_content_template($r,$allowed,$target,\%syllabusfields,\%syllabus);
        if($target ne 'tex')         if($target ne 'tex')
        {         {
    &Apache::lontemplate::print_image($r,$image);
   &print_portfiles_link($r,$is_course);    &print_portfiles_link($r,$is_course);
  $r->print('<div class="ContentBox">');  
  $r->print($image);   
  $r->print('</div>');  
       $r->print('</div>');        $r->print('</div>');
  $r->print('<p>');   $r->print('<p>');
                   
Line 358  my $image; Line 355  my $image;
             $r->print('<p><a href="javascript:window.close()">'.&mt('Close window').'</a>');              $r->print('<p><a href="javascript:window.close()">'.&mt('Close window').'</a>');
         }          }
  $r->print('<br />'.&mt('Last updated').': '.$lastmod);   $r->print('<br />'.&mt('Last updated').': '.$lastmod);
    &Apache::lontemplate::end_columnSection($r);
  $r->print(&Apache::loncommon::end_page());   $r->print(&Apache::loncommon::end_page());
     } else {      } else {
  $r->print('\end{document}');   $r->print('\end{document}');

Removed from v.1.77  
changed lines
  Added in v.1.79


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