version 1.154, 2013/05/03 16:26:43
|
version 1.157, 2014/06/19 00:36:29
|
Line 78 use Apache::Constants qw(:common);
|
Line 78 use Apache::Constants qw(:common);
|
use Apache::loncommon; |
use Apache::loncommon; |
use Apache::lonnet; |
use Apache::lonnet; |
use Apache::lontexconvert; |
use Apache::lontexconvert; |
use Apache::lonfeedback; |
use Apache::lonhtmlgateway; |
use Apache::lonrss(); |
use Apache::lonrss(); |
use Apache::lonlocal; |
use Apache::lonlocal; |
use Apache::lonmsgdisplay(); |
use Apache::lonmsgdisplay(); |
use Apache::lontemplate; |
use Apache::lontemplate; |
|
use Apache::longroup; |
use HTML::Entities(); |
use HTML::Entities(); |
use Image::Magick; |
use Image::Magick; |
|
|
Line 312 sub handler {
|
Line 313 sub handler {
|
if (($allowed) && ($env{'form.storesyl'})) { |
if (($allowed) && ($env{'form.storesyl'})) { |
foreach my $syl_field (keys(%syllabusfields)) { |
foreach my $syl_field (keys(%syllabusfields)) { |
my $field=$env{'form.'.$syl_field}; |
my $field=$env{'form.'.$syl_field}; |
$field=~s/\s+$//s; |
chomp($field); |
$field=&Apache::lonfeedback::clear_out_html($field,$env{'user.adv'}); |
my $gateway = Apache::lonhtmlgateway->new(); |
|
$field = $gateway->process_incoming_html($field,1); |
$syllabus{$syl_field}=$field; |
$syllabus{$syl_field}=$field; |
} |
} |
$syllabus{'uploaded.lastmodified'}=time; |
$syllabus{'uploaded.lastmodified'}=time; |
Line 540 sub display_portfolio_header {
|
Line 542 sub display_portfolio_header {
|
title => &mt('Go to personal information page for [_1]',$name), |
title => &mt('Go to personal information page for [_1]',$name), |
no_mt => 1}, |
no_mt => 1}, |
{href => "/adm/$cdom/$cnum/aboutme/portfolio".$query_string, |
{href => "/adm/$cdom/$cnum/aboutme/portfolio".$query_string, |
text => 'Viewable files', |
text => &mt('Viewable files'), |
title => &mt('Viewable portfolio files for [_1]',$name), |
title => &mt('Viewable portfolio files for [_1]',$name), |
no_mt => 1} |
no_mt => 1} |
]; |
]; |
Line 629 sub portfolio_files {
|
Line 631 sub portfolio_files {
|
my $diroutput; |
my $diroutput; |
if ($is_course) { |
if ($is_course) { |
my %files_by_group; |
my %files_by_group; |
|
my %curr_groups = &Apache::longroup::coursegroups($cdom,$cnum); |
foreach my $filename (sort(keys(%access_controls))) { |
foreach my $filename (sort(keys(%access_controls))) { |
my ($group,$path) = split('/',$filename,2); |
my ($group,$path) = split('/',$filename,2); |
$files_by_group{$group}{$path} = $access_controls{$filename}; |
if (exists($curr_groups{$group})) { |
|
$files_by_group{$group}{$path} = $access_controls{$filename}; |
|
} |
} |
} |
foreach my $group (sort(keys(%files_by_group))) { |
foreach my $group (sort(keys(%files_by_group))) { |
my %fileshash; |
my %fileshash; |