Diff for /loncom/interface/lonsimplepage.pm between versions 1.91 and 1.92

version 1.91, 2009/12/22 06:32:35 version 1.92, 2010/01/07 14:45:08
Line 328  sub handler { Line 328  sub handler {
         }          }
   
         #print the image          #print the image
         my $image;          my $image='';
         if ($syllabus{'uploaded.photourl'}) {          if ($syllabus{'uploaded.photourl'}) {
             &Apache::lonnet::allowuploaded('/adm/smppg',              &Apache::lonnet::allowuploaded('/adm/smppg',
                     $syllabus{'uploaded.photourl'});                      $syllabus{'uploaded.photourl'});
Line 341  sub handler { Line 341  sub handler {
         }          }
   
         if ($allowed) {          if ($allowed) {
             $r->print('<input type="hidden" name="forceedit" value="edit" />');              &Apache::lontemplate::print_start_template($r, &mt('Upload a Photo'),'LC_Box');
             my $upload_photo_label = &mt('Upload a Photo');              $r->print($image);
             my $upload_button_label = &mt('Upload');              $r->print("<br /><br />");
               $r->print(
             my $content_for_upload_photo=<<"UPLOAD_PHOTO";                  '<input type="hidden" name="forceedit" value="edit" />'.
                   <input type="file" name="uploaddoc" size="50" />                  '<input type="file" name="uploaddoc" size="50" />'.
                   <input type="submit" name="storeupl" value="$upload_button_label" />                  '<input type="submit" name="storeupl" value="'.&mt('Upload').'" />'.
                   <input type="hidden" name="forceedit" value="edit" />                  '<input type="hidden" name="forceedit" value="edit" />');
 UPLOAD_PHOTO              &Apache::lontemplate::print_end_template($r);
             &Apache::lontemplate::print_template($r, $upload_photo_label,$content_for_upload_photo,$allowed, 'LC_Box');      
   
 #            if ($syllabus{'uploaded.photourl'}) {  #            if ($syllabus{'uploaded.photourl'}) {
 #                $r->print('<input type="submit" name="delupl"'  #                $r->print('<input type="submit" name="delupl"'
 #                         .' value="'.&mt('Delete Photo').'" />');  #                         .' value="'.&mt('Delete Photo').'" />');
 #            }  #            }
         }          }
         if ($allowed) {          #Image in Student view and printout.
             $r->print($image.'<div class="LC_footer_clear">&nbsp;</div>');          else {
               $r->print($image);
         }          }
         if (!$allowed) {$r->print($image); }  
   
         foreach my $field (sort(keys(%syllabusfields))) {          foreach my $field (sort(keys(%syllabusfields))) {
             if (($syllabus{$field}) || ($allowed) ||              if (($syllabus{$field}) || ($allowed) ||

Removed from v.1.91  
changed lines
  Added in v.1.92


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>