--- loncom/interface/lonaboutme.pm 2003/09/21 21:40:06 1.17 +++ loncom/interface/lonaboutme.pm 2004/04/30 23:13:52 1.21 @@ -1,7 +1,7 @@ # The LearningOnline Network # "About Me" Personal Information # -# $Id: lonaboutme.pm,v 1.17 2003/09/21 21:40:06 www Exp $ +# $Id: lonaboutme.pm,v 1.21 2004/04/30 23:13:52 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -108,8 +108,11 @@ ENDDOCUMENT if (($ENV{'form.uploaddoc.filename'}) && ($ENV{'form.storeupl'}) && ($allowed)) { if ($ENV{'form.uploaddoc.filename'}=~/\.(gif|jpg|png|jpeg)$/i) { - $syllabus{'uploaded.photourl'}= - &Apache::lonnet::userfileupload('uploaddoc'); + if ($syllabus{'uploaded.photourl'}) { + &Apache::lonnet::removeuploadedurl($syllabus{'uploaded.photourl'}); + } + $syllabus{'uploaded.photourl'}= + &Apache::lonnet::userfileupload('uploaddoc',undef,'aboutme'); } $syllabus{'uploaded.lastmodified'}=time; &Apache::lonnet::put('aboutme',\%syllabus,$cdom,$cnum); @@ -129,17 +132,18 @@ ENDDOCUMENT # ---------------------------------------------------------------- Get syllabus if (($syllabus{'uploaded.lastmodified'}) || ($allowed)) { my $lastmod=$syllabus{'uploaded.lastmodified'}; - $lastmod=($lastmod?localtime($lastmod):'never'); - $r->print('Last updated: '.$lastmod); + $lastmod=($lastmod?&Apache::lonlocal::locallocaltime($lastmod):&mt('never')); + $r->print(&mt('Last updated').': '.$lastmod); if ($syllabus{'uploaded.photourl'}) { - $r->print(''); } if ($allowed) { $r->print( '
'. - '

Upload a Photo

'. + '

'.&mt('Upload a Photo').'

'. ''. ''. '
'); @@ -172,7 +176,9 @@ ENDDOCUMENT if (&Apache::lonnet::allowed('srm',$ENV{'request.course.id'})) { $r->print('

'. &mt('User Notes, Records of Face-To-Face Discussions, and Critical Messages in Course').'

'. -&mt('Shared by course faculty and staff').'
'); +&mt('Shared by course faculty and staff'). +&Apache::loncommon::help_open_topic("Course_Face_To_Face_Records,Course_Critical_Message"). +'
'); &Apache::lonmsg::disfacetoface($r,$cnum,$cdom); $r->print(&Apache::loncommon::noteswrapper('Add Records',$cnum,$cdom)); }