getSubFolders(), $user, M_READ); $documents = filterAccess($folder->getDocuments(), $user, M_READ); if ($level+1 < count($path)) $nextFolderID = $path[$level+1]->getID(); else $nextFolderID = -1; print "\n"; print " \n"; print " \n"; print " \n"; print " \n"; for ($i = 0; $i < count($subFolders); $i++) { print ""; if ($i +1 < count($subFolders) + count($documents)) print ""; else print ""; print ""; print ""; } for ($i = 0; $i < count($documents); $i++) { print ""; if ($i +1 < count($documents)) print ""; else print ""; print ""; print ""; } print "
0) print " background=\"".getImgPath("down.gif")."\""; print "> 0) printImgPath("right_in_to_down.gif"); else printImgPath("right_in.gif"); print "\" border=0>"; print "".$folder->getName()."
"; if ($subFolders[$i]->getID() == $nextFolderID) printTree($path, $level+1); else { $subFolders_ = filterAccess($subFolders[$i]->getSubFolders(), $user, M_READ); $documents_ = filterAccess($subFolders[$i]->getDocuments(), $user, M_READ); print ""; if (count($subFolders_) + count($documents_) > 0) print " "; else print " "; print " "; print "
getID()."\">"; print "".$subFolders[$i]->getName()."
"; } print "
"; print " "; print " "; print " "; print "
getID().",'".addslashes($documents[$i]->getName())."');\">".$documents[$i]->getName()."
"; print "
\n"; } ?> <?php echo getMLText("choose_target_document")?> getPath()); ?>