Diff for /loncom/interface/lonsimplepage.pm between versions 1.88 and 1.89

version 1.88, 2009/12/08 12:20:49 version 1.89, 2009/12/12 14:45:42
Line 337  sub handler { Line 337  sub handler {
         }          }
   
         if ($allowed) {          if ($allowed) {
             $r->print(              $r->print('<input type="hidden" name="forceedit" value="edit" />');
                   '<input type="hidden" name="forceedit" value="edit" />'.              my $upload_photo_label = &mt('Upload a Photo');
                   '<h3>'.&mt('Upload a Photo').'</h3>'.              my $upload_button_label = &mt('Upload');
                   '<input type="file" name="uploaddoc" size="50" />'.  
                   '<input type="submit" name="storeupl" value="'.&mt('Upload').'" />'.              my $content_for_upload_photo=<<"UPLOAD_PHOTO";
                   '<input type="hidden" name="forceedit" value="edit" />');                    <input type="file" name="uploaddoc" size="50" />
                     <input type="submit" name="storeupl" value="$upload_button_label" />
                     <input type="hidden" name="forceedit" value="edit" />
   UPLOAD_PHOTO
               &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').'" />');

Removed from v.1.88  
changed lines
  Added in v.1.89


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