getSubFolders();
$subFolders = filterAccess($subFolders, $user, M_READ);
if ($level+1 < count($path))
$nextFolderID = $path[$level+1]->getID();
else
$nextFolderID = -1;
print "
\n";
print " \n";
print " 0)
print " background=\"".getImgPath("down.gif")."\"";
print "> 0) printImgPath("right_in_to_down.gif");
else printImgPath("right_in.gif");
print "\" border=0> | \n";
print " ";
if ($folder->getAccessMode($user) >= $accessMode) {
print "getID() . ", '" . addslashes($folder->getName()) . "')\">";
print "".$folder->getName()." | \n";
}
else
print "".$folder->getName()."\n";
print "
\n";
for ($i = 0; $i < count($subFolders); $i++) {
if ($subFolders[$i]->getID() == $exclude)
continue;
print "";
if ($i +1 < count($subFolders))
print " | ";
else
print " | ";
print "";
if ($subFolders[$i]->getID() == $nextFolderID)
printTree($path, $accessMode, $exclude, $level+1);
else {
$subFolders_ = $subFolders[$i]->getSubFolders();
$subFolders_ = filterAccess($subFolders_, $user, M_READ);
print "";
}
print " | ";
print "
";
}
print "
\n";
}
?>
getPath(), $mode, $exclude);
?>