version 1.2, 2002/09/10 20:53:36
|
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 33 use Apache::Constants qw(:common);
|
Line 33 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::lonxml; |
|
use Apache::lonfeedback; |
|
|
sub handler { |
sub handler { |
my $r = shift; |
my $r = shift; |
Line 89 ENDDOCUMENT
|
Line 91 ENDDOCUMENT
|
|
|
if ($allowed) { |
if ($allowed) { |
$r->print( |
$r->print( |
'<p><a href="'.$r->uri.'?forcestudent=1">Show Public View</a></p>'); |
'<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 104 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; |
Line 141 ENDDOCUMENT
|
Line 144 ENDDOCUMENT
|
$r->print('<blockquote>'. |
$r->print('<blockquote>'. |
$message.'</blockquote>'); |
$message.'</blockquote>'); |
if ($allowed) { |
if ($allowed) { |
$r->print('<br /><textarea cols="80" rows="20" name="'.$_.'">'. |
$r->print('<br /><textarea cols="80" rows="10" name="'.$_.'">'. |
$syllabus{$_}. |
$syllabus{$_}. |
'</textarea><input type="submit" name="storesyl" value="Store" />'); |
'</textarea><input type="submit" name="storesyl" value="Store" />'); |
} |
} |