version 1.152, 2012/12/06 21:43:27
|
version 1.156, 2014/01/28 16:22:30
|
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(); |
Line 139 sub handler {
|
Line 139 sub handler {
|
|
|
# ------------------------------------------------------------ Get Query String |
# ------------------------------------------------------------ Get Query String |
&Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'}, |
&Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'}, |
['forceedit','forcestudent', |
['forceedit','forcestudent','todocs', |
'register','popup','folderpath','title']); |
'register','popup','folderpath','title']); |
|
|
# ----------------------------------------------- Available Portfolio file display |
# ----------------------------------------------- Available Portfolio file display |
if (($target ne 'tex') && ($action eq 'portfolio')) { |
if (($target ne 'tex') && ($action eq 'portfolio')) { |
&display_portfolio_header($r,$is_course); |
&display_portfolio_header($r,$is_course); |
Line 313 sub handler {
|
Line 312 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 406 sub handler {
|
Line 406 sub handler {
|
if ($target ne 'tex') { |
if ($target ne 'tex') { |
$r->print('</div>'); |
$r->print('</div>'); |
if ($env{'form.popup'}) { |
if ($env{'form.popup'}) { |
$r->print('<p><a href="javascript:window.close()">'.&mt('Close window').'</a>'); |
$r->print('<p><a href="javascript:window.close()">'.&mt('Close window').'</a></p>'); |
} |
} |
$r->print(&Apache::loncommon::end_page()); |
$r->print(&Apache::loncommon::end_page()); |
} else { |
} else { |
Line 541 sub display_portfolio_header {
|
Line 541 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} |
]; |
]; |