예제 #1
0
 * @copyright  1997-2005 The PHP Group
 * @license    http://www.php.net/license/3_01.txt  PHP License 3.01
 * @version    SVN: $Id$
 * @link       http://pear.php.net/package/PackageName
 * @see        NetOther, Net_Sample::Net_Sample()
 * @since      File available since Release 1.2.0
 * @deprecated File deprecated in Release 2.0.0
 */
$defaul = '../';
if (!isset($_POST['dir'])) {
    $fileBrowser = new FileBrowser($defaul);
} else {
    $fileBrowser = new FileBrowser($defaul, $_POST['dir']);
}
$fileBrowser->SetExtensionFilter(array(".DS_Store", ".gitignore", ".version"));
$arrayFiles = $fileBrowser->Get();
@($itratorFiles = new ItemIterator($arrayFiles["files"]));
@($iteratorFolders = new ItemIterator($arrayFiles["folders"]));
?>
<ul class="jqueryFileTree" style="display: none;">
    <?php 
while ($iteratorFolders->valid()) {
    $name = $iteratorFolders->current()->getName();
    $path = $iteratorFolders->current()->getPath();
    ?>
        <li class="directory collapsed"><a href="" rel="<?php 
    echo $path;
    ?>
"><?php 
    echo $name;
    ?>