version 1.89, 2008/12/17 14:51:11
|
version 1.92, 2009/02/12 21:15:47
|
Line 86 use Apache::lonlocal;
|
Line 86 use Apache::lonlocal;
|
use Apache::lonmsgdisplay(); |
use Apache::lonmsgdisplay(); |
use Apache::lontemplate; |
use Apache::lontemplate; |
use HTML::Entities(); |
use HTML::Entities(); |
|
use Image::Magick; |
|
|
sub handler { |
sub handler { |
my $r = shift; |
my $r = shift; |
Line 284 my $image;
|
Line 285 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=qq{<img name="userPhoto" src="$syllabus{'uploaded.photourl'}" />}; |
|
|
#This call is to resize all "about me" images in the LonCapa System. When its done, you can remove this line. |
|
&Apache::lonnet::resizeImage(&Apache::lonnet::filelocation('',$syllabus{'uploaded.photourl'})); |
|
|
|
#--End Resize--- |
|
|
|
$image=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 372 my $image;
|
Line 379 my $image;
|
('View recent activity by this student', |
('View recent activity by this student', |
$cnum,$cdom).(' 'x2)); |
$cnum,$cdom).(' 'x2)); |
} |
} |
$r->print(&Apache::loncommon::noteswrapper('Add Records',$cnum,$cdom)); |
$r->print(&Apache::loncommon::noteswrapper(&mt('Add Records'),$cnum,$cdom)); |
} else { |
} else { |
$r->print('\\\\\textbf{'.&mt('User Notes, Records of Face-To-Face Discussions, and Critical Messages in Course').'}\\\\'.&mt('Shared by course faculty and staff').'\\\\\\\\'); |
$r->print('\\\\\textbf{'.&mt('User Notes, Records of Face-To-Face Discussions, and Critical Messages in Course').'}\\\\'.&mt('Shared by course faculty and staff').'\\\\\\\\'); |
&Apache::lonmsgdisplay::disfacetoface($r,$cnum,$cdom); |
&Apache::lonmsgdisplay::disfacetoface($r,$cnum,$cdom); |
Line 764 sub parse_directory {
|
Line 771 sub parse_directory {
|
' '.$showname.'</a>'; |
' '.$showname.'</a>'; |
$output.='</td><td>'; |
$output.='</td><td>'; |
if ($have_meta) { |
if ($have_meta) { |
$output.= '<a href="'.$url.'.meta"><img alt="'.&mt('Catalog Information').'" src="'. |
$output.= '<a href="'.$url.'.meta"><img alt="'.&mt('Metadata').'" src="'. |
&Apache::loncommon::lonhttpdurl('/res/adm/pages/catalog.gif'). |
&Apache::loncommon::lonhttpdurl('/res/adm/pages/catalog.gif'). |
'" class="LC_icon" /></a>'; |
'" class="LC_icon" /></a>'; |
} |
} |