version 1.49, 2006/12/11 03:49:12
|
version 1.50, 2007/05/02 01:33:49
|
Line 266 sub handler {
|
Line 266 sub handler {
|
'<form method="post" enctype="multipart/form-data">'. |
'<form method="post" enctype="multipart/form-data">'. |
'<input type="hidden" name="forceedit" value="edit" />'. |
'<input type="hidden" name="forceedit" value="edit" />'. |
'<h3>Upload a Photo</h3>'. |
'<h3>Upload a Photo</h3>'. |
'<input type="file" name="uploaddoc" size="50">'. |
'<input type="file" name="uploaddoc" size="50" />'. |
'<input type="submit" name="storeupl" value="Upload">'. |
'<input type="submit" name="storeupl" value="Upload" />'. |
'</form><form method="post">'); |
'</form><form method="post">'); |
} |
} |
foreach my $field (sort(keys(%syllabusfields))) { |
foreach my $field (sort(keys(%syllabusfields))) { |
Line 299 sub handler {
|
Line 299 sub handler {
|
$r->print( |
$r->print( |
'<br />Title<br /><textarea cols="80" rows="2" name="'.$field.'">'. |
'<br />Title<br /><textarea cols="80" rows="2" name="'.$field.'">'. |
&HTML::Entities::encode($syllabus{$field},'"&<>'). |
&HTML::Entities::encode($syllabus{$field},'"&<>'). |
'</textarea><input type="submit" name="storesyl" value="Store" />'); |
'</textarea><input type="submit" name="storesyl" value="Save" />'); |
} else { |
} else { |
my $safeinit; |
my $safeinit; |
$r->print(&Apache::lonxml::xmlparse($r,'tex',$syllabus{$field},$safeinit)); |
$r->print(&Apache::lonxml::xmlparse($r,'tex',$syllabus{$field},$safeinit)); |
Line 325 sub handler {
|
Line 325 sub handler {
|
if ($target ne 'tex') { |
if ($target ne 'tex') { |
$r->print('<br /><textarea cols="80" rows="24" name="'.$field.'" id="'.$field.'">'. |
$r->print('<br /><textarea cols="80" rows="24" name="'.$field.'" id="'.$field.'">'. |
&HTML::Entities::encode($syllabus{$field},'"&<>'). |
&HTML::Entities::encode($syllabus{$field},'"&<>'). |
'</textarea><input type="submit" name="storesyl" value="Store" />'); |
'</textarea><input type="submit" name="storesyl" value="Save" />'); |
} else { |
} else { |
my $safeinit; |
my $safeinit; |
$r->print(&Apache::lonxml::xmlparse($r,'tex',$syllabus{$field},$safeinit)); |
$r->print(&Apache::lonxml::xmlparse($r,'tex',$syllabus{$field},$safeinit)); |