Diff for /loncom/interface/lonsimplepage.pm between versions 1.61 and 1.62

version 1.61, 2008/12/17 00:44:53 version 1.62, 2008/12/17 09:44:04
Line 253  sub handler { Line 253  sub handler {
  $syllabus{'uploaded.lastmodified'}=time;   $syllabus{'uploaded.lastmodified'}=time;
  &Apache::lonnet::put($db_name,\%syllabus,$dom,$crs);   &Apache::lonnet::put($db_name,\%syllabus,$dom,$crs);
     }      }
       if ($allowed && $env{'form.delupl'}) {
           if ($syllabus{'uploaded.photourl'}) {
               &Apache::lonnet::removeuploadedurl($syllabus{'uploaded.photourl'});
               delete($syllabus{'uploaded.photourl'});
               &Apache::lonnet::del('simplepage',['uploaded.photourl']);
           }
       }
     if (($allowed) && ($env{'form.storesyl'})) {      if (($allowed) && ($env{'form.storesyl'})) {
  foreach my $syl_field (keys(%syllabusfields)) {   foreach my $syl_field (keys(%syllabusfields)) {
     my $field=$env{'form.'.$syl_field};      my $field=$env{'form.'.$syl_field};
Line 290  sub handler { Line 297  sub handler {
       '<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">'.
                       '<input type="hidden" name="forceedit" value="edit" />');                        '<input type="hidden" name="forceedit" value="edit" />
         <form method="post"><input type="submit" name="delupl" value="'.&mt('Delete Photo').'" /> </form>');
  }   }
  &Apache::lontemplate::start_columnSection($r);   &Apache::lontemplate::start_columnSection($r);
  if($allowed){   if($allowed){

Removed from v.1.61  
changed lines
  Added in v.1.62


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