--- loncom/interface/lonsimplepage.pm 2009/12/22 06:32:35 1.91
+++ loncom/interface/lonsimplepage.pm 2010/01/07 14:45:08 1.92
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Simple Page Editor
#
-# $Id: lonsimplepage.pm,v 1.91 2009/12/22 06:32:35 faziophi Exp $
+# $Id: lonsimplepage.pm,v 1.92 2010/01/07 14:45:08 wenzelju Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -328,7 +328,7 @@ sub handler {
}
#print the image
- my $image;
+ my $image='';
if ($syllabus{'uploaded.photourl'}) {
&Apache::lonnet::allowuploaded('/adm/smppg',
$syllabus{'uploaded.photourl'});
@@ -341,26 +341,26 @@ sub handler {
}
if ($allowed) {
- $r->print('');
- my $upload_photo_label = &mt('Upload a Photo');
- my $upload_button_label = &mt('Upload');
-
- my $content_for_upload_photo=<<"UPLOAD_PHOTO";
-
-
-
-UPLOAD_PHOTO
- &Apache::lontemplate::print_template($r, $upload_photo_label,$content_for_upload_photo,$allowed, 'LC_Box');
+ &Apache::lontemplate::print_start_template($r, &mt('Upload a Photo'),'LC_Box');
+ $r->print($image);
+ $r->print("
");
+ $r->print(
+ ''.
+ ''.
+ ''.
+ '');
+ &Apache::lontemplate::print_end_template($r);
+
# if ($syllabus{'uploaded.photourl'}) {
# $r->print('');
# }
}
- if ($allowed) {
- $r->print($image.'