version 1.37, 2006/07/17 21:59:24
|
version 1.39, 2006/08/16 19:40:46
|
Line 36 use Apache::lontexconvert;
|
Line 36 use Apache::lontexconvert;
|
use Apache::lonfeedback; |
use Apache::lonfeedback; |
use Apache::lonlocal; |
use Apache::lonlocal; |
use Apache::lonhtmlcommon; |
use Apache::lonhtmlcommon; |
|
use HTML::Entities(); |
use LONCAPA; |
use LONCAPA; |
|
|
sub handler { |
sub handler { |
Line 197 sub handler {
|
Line 198 sub handler {
|
if ($syllabus{'uploaded.photourl'}) { |
if ($syllabus{'uploaded.photourl'}) { |
&Apache::lonnet::removeuploadedurl($syllabus{'uploaded.photourl'}); |
&Apache::lonnet::removeuploadedurl($syllabus{'uploaded.photourl'}); |
} |
} |
$syllabus{'uploaded.photourl'}= |
if ($group ne '') { |
&Apache::lonnet::userfileupload('uploaddoc',1,'bulletin'); |
$syllabus{'uploaded.photourl'}= |
|
&Apache::lonnet::userfileupload('uploaddoc',1, |
|
'bulletin/'.$group.'/'.$marker); |
|
} else { |
|
$syllabus{'uploaded.photourl'}= |
|
&Apache::lonnet::userfileupload('uploaddoc',1, |
|
'bulletin/'.$marker); |
|
} |
} |
} |
$syllabus{'uploaded.lastmodified'}=time; |
$syllabus{'uploaded.lastmodified'}=time; |
&Apache::lonnet::put('bulletinpage_'.$marker,\%syllabus,$dom,$crs); |
&Apache::lonnet::put('bulletinpage_'.$marker,\%syllabus,$dom,$crs); |
Line 257 sub handler {
|
Line 265 sub handler {
|
} |
} |
if ($allowed) { |
if ($allowed) { |
$r->print('<br /><textarea cols="80" rows="10" name="'.$_.'">'. |
$r->print('<br /><textarea cols="80" rows="10" name="'.$_.'">'. |
$syllabus{$_}. |
&HTML::Enitites::encode($syllabus{$_},'&"<>'). |
'</textarea><input type="submit" name="storesyl" value="'.&mt('Store').'" />'); |
'</textarea><input type="submit" name="storesyl" value="'.&mt('Store').'" />'); |
} |
} |
} else { |
} else { |
Line 269 sub handler {
|
Line 277 sub handler {
|
if ($allowed) { |
if ($allowed) { |
$r->print( |
$r->print( |
'<br />'.&mt('Topic').'<br /><textarea cols="80" rows="2" name="'.$_.'">'. |
'<br />'.&mt('Topic').'<br /><textarea cols="80" rows="2" name="'.$_.'">'. |
$syllabus{$_}. |
&HTML::Enitites::encode($syllabus{$_},'&"<>'). |
'</textarea><input type="submit" name="storesyl" value="'.&mt('Store').'" />'); |
'</textarea><input type="submit" name="storesyl" value="'.&mt('Store').'" />'); |
} |
} |
} |
} |