version 1.84, 2009/06/11 16:48:33
|
version 1.85, 2009/07/10 15:05:28
|
Line 304 sub handler {
|
Line 304 sub handler {
|
&Apache::lonnet::allowuploaded('/adm/smppg', |
&Apache::lonnet::allowuploaded('/adm/smppg', |
$syllabus{'uploaded.photourl'}); |
$syllabus{'uploaded.photourl'}); |
|
|
$image='<img src="'.$syllabus{'uploaded.photourl'}.'" |
$image='<img src="'.$syllabus{'uploaded.photourl'} |
/>'; |
.'" alt="'.&mt('Image').'" />'; |
if ($target eq 'tex') { |
if ($target eq 'tex') { |
$image=&Apache::lonxml::xmlparse($r,'tex',$image); |
$image=&Apache::lonxml::xmlparse($r,'tex',$image); |
} |
} |
Line 313 sub handler {
|
Line 313 sub handler {
|
|
|
if ($allowed) { |
if ($allowed) { |
$r->print( |
$r->print( |
'<form method="post" enctype="multipart/form-data">'. |
'<form method="post" action="" enctype="multipart/form-data">'. |
'<input type="hidden" name="forceedit" value="edit" />'. |
'<input type="hidden" name="forceedit" value="edit" />'. |
'<h3>'.&mt('Upload a Photo').'</h3>'. |
'<h3>'.&mt('Upload a Photo').'</h3>'. |
'<input type="file" name="uploaddoc" size="50" />'. |
'<input type="file" name="uploaddoc" size="50" />'. |
'<input type="submit" name="storeupl" value="'.&mt('Upload').'" />'. |
'<input type="submit" name="storeupl" value="'.&mt('Upload').'" />'. |
'</form><form method="post">'. |
'</form><form method="post" action="">'. |
'<input type="hidden" name="forceedit" value="edit" />'); |
'<input type="hidden" name="forceedit" value="edit" />'); |
if ($syllabus{'uploaded.photourl'}) { |
if ($syllabus{'uploaded.photourl'}) { |
$r->print('<form method="post"><input type="submit" name="delupl" value="'.&mt('Delete Photo').'" />' ); |
$r->print('<input type="submit" name="delupl"' |
|
.' value="'.&mt('Delete Photo').'" />'); |
} |
} |
} |
} |
if ($allowed) { |
if ($allowed) { |
$r->print($image.'<div class="clear"> </div>'); |
$r->print($image.'<div class="LC_footer_clear"> </div>'); |
} |
} |
|
|
foreach my $field (sort(keys(%syllabusfields))) { |
foreach my $field (sort(keys(%syllabusfields))) { |