Diff for /loncom/interface/londocs.pm between versions 1.22 and 1.25

version 1.22, 2002/09/10 19:01:09 version 1.25, 2002/10/10 17:17:11
Line 211  END Line 211  END
  $foldertitle;   $foldertitle;
  }   }
     if ($isfolder) { $url.='&foldername='.$foldertitle; }      if ($isfolder) { $url.='&foldername='.$foldertitle; }
     $line.='<td bgcolor="#FFFFBB"><a href="'.$url.'"><img src="/adm/lonIcons/'.      $line.='<td bgcolor="#FFFFBB"><a href="'.$url.'" target="cat_'.$folder.
   '"><img src="/adm/lonIcons/'.
         $icon.'.gif" border="0"></a></td>'.          $icon.'.gif" border="0"></a></td>'.
         "<td bgcolor='#FFFFBB'><a href='$url'>$title</a></td></tr>";          "<td bgcolor='#FFFFBB'><a href='$url' target='cat_$folder'>$title</a></td></tr>";
     return $line;      return $line;
 }  }
   
Line 326  ENDNEWSCRIPT Line 327  ENDNEWSCRIPT
   $r->print('</head>'.    $r->print('</head>'.
             &Apache::loncommon::bodytag('Course Documents','',$events));              &Apache::loncommon::bodytag('Course Documents','',$events));
   unless ($showdoc) {    unless ($showdoc) {
       if ($allowed) {
          $r->print(<<ENDCOURSEVERIFY);
   <form name="courseverify">
   <input type="submit" name="verify" value="Verify Content" />
   <input type="submit" name="versions" value="Check Resource Versions" />
   </form>
   ENDCOURSEVERIFY
       }
 # --------------------------------------------------------- Standard documents  # --------------------------------------------------------- Standard documents
       $r->print('<table>');
     if (($standard) && ($allowed) && (!$forcesupplement)) {      if (($standard) && ($allowed) && (!$forcesupplement)) {
        $r->print('<h2>Main Course Documents</h2>');         $r->print('<tr><td bgcolor="#FFFFBB"><h2>Main Course Documents</h2>');
        my $folder=$ENV{'form.folder'};         my $folder=$ENV{'form.folder'};
        unless ($folder=~/^default/) { $folder='default'; }         unless ($folder=~/^default/) { $folder='default'; }
        &editor($r,$coursenum,$coursedom,$folder,$allowed);         &editor($r,$coursenum,$coursedom,$folder,$allowed);
Line 416  value="$plainname=/adm/$udom/$uname/abou Line 426  value="$plainname=/adm/$udom/$uname/abou
 </td></tr>  </td></tr>
 </table>  </table>
 ENDFORM  ENDFORM
        $r->print('<hr />');         $r->print('</td></tr>');
     }      }
 # ----------------------------------------------------- Supplemental documents  # ----------------------------------------------------- Supplemental documents
     if (!$forcestandard) {      if (!$forcestandard) {
        $r->print('<h2>Supplemental Course Documents</h2>');         $r->print(
     '<tr><td bgcolor="#BBFFFF"><h2>Supplemental Course Documents</h2>');
        my $folder=$ENV{'form.folder'};         my $folder=$ENV{'form.folder'};
        unless ($folder=~/supplemental/) { $folder='supplemental'; }         unless ($folder=~/supplemental/) { $folder='supplemental'; }
        &editor($r,$coursenum,$coursedom,$folder,$allowed);         &editor($r,$coursenum,$coursedom,$folder,$allowed);
Line 488  value="$plainname=/adm/$udom/$uname/abou Line 499  value="$plainname=/adm/$udom/$uname/abou
 <input name="newaboutme" type="submit" value="My Personal Info" />  <input name="newaboutme" type="submit" value="My Personal Info" />
 </form>  </form>
 </td></tr>  </td></tr>
 </table>  </table></td></tr>
 ENDSUPFORM  ENDSUPFORM
        }         }
     }      }
     if ($allowed) {      if ($allowed) {
  $r->print('<form name="extimport"><input type="hidden" name="title"><input type="hidden" name="url"><input type="hidden" name="useform"></form>');   $r->print('<form name="extimport"><input type="hidden" name="title"><input type="hidden" name="url"><input type="hidden" name="useform"></form>');
     }      }
       $r->print('</table>');
   } else {    } else {
 # -------------------------------------------------------- This is showdoc mode  # -------------------------------------------------------- This is showdoc mode
       $r->print("<h1>Uploaded Document</h1><p>It is recommended that you use an up-to-date virus scanner before handling this file.</p><p><table>".        $r->print("<h1>Uploaded Document</h1><p>It is recommended that you use an up-to-date virus scanner before handling this file.</p><p><table>".

Removed from v.1.22  
changed lines
  Added in v.1.25


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