version 1.4, 2003/02/10 15:19:43
|
version 1.6, 2003/02/10 20:03:13
|
Line 1
|
Line 1
|
# The LearningOnline Network |
# The LearningOnline Network |
# Simple Page Editor |
# Bulletin Board Handler |
# |
# |
# $Id$ |
# $Id$ |
# |
# |
Line 34 use Apache::loncommon;
|
Line 34 use Apache::loncommon;
|
use Apache::lonnet; |
use Apache::lonnet; |
use Apache::lontexconvert; |
use Apache::lontexconvert; |
use Apache::lonxml; |
use Apache::lonxml; |
|
use Apache::lonfeedback; |
|
|
sub handler { |
sub handler { |
my $r = shift; |
my $r = shift; |
Line 90 ENDDOCUMENT
|
Line 91 ENDDOCUMENT
|
|
|
if ($allowed) { |
if ($allowed) { |
$r->print( |
$r->print( |
'<p><a href="'.$r->uri.'?forcestudent=1">Show Public View</a>'. |
'<p>'. |
&Apache::loncommon::help_open_topic('Uploaded_Templates_PublicView').</p>'); |
&Apache::loncommon::help_open_topic('Uploaded_Templates_TextBoxes','Help with filling in text boxes').'<br /><a href="'.$r->uri.'?forcestudent=1">Show Public View</a>'. |
|
&Apache::loncommon::help_open_topic('Uploaded_Templates_PublicView').'</p>'); |
} |
} |
if (($ENV{'form.uploaddoc.filename'}) && |
if (($ENV{'form.uploaddoc.filename'}) && |
($ENV{'form.storeupl'}) && ($allowed)) { |
($ENV{'form.storeupl'}) && ($allowed)) { |
Line 106 ENDDOCUMENT
|
Line 108 ENDDOCUMENT
|
foreach (keys %syllabusfields) { |
foreach (keys %syllabusfields) { |
my $field=$ENV{'form.'.$_}; |
my $field=$ENV{'form.'.$_}; |
$field=~s/\s+$//s; |
$field=~s/\s+$//s; |
$field=~s/\</\<\;/g; |
$field=&Apache::lonfeedback::clear_out_html($field,1); |
$field=~s/\>/\>\;/g; |
|
$syllabus{$_}=$field; |
$syllabus{$_}=$field; |
} |
} |
$syllabus{'uploaded.lastmodified'}=time; |
$syllabus{'uploaded.lastmodified'}=time; |