<?php defined("SYSPATH") or die("No direct script access.") ?>
<? // rWatcher Edit: This file used to be server_add_tree.html.php ?>
<li class="ui-icon-left">
<span class="ui-icon ui-icon-folder-open"></span>
<span class="g-directory" ref="">
<?= t("All") ?>
</span>
<ul>
<? foreach ($parents as $dir): ?>
<span class="g-directory" ref="<?= html::clean_attribute($dir) ?>">
<?= html::clean(basename($dir)) ?>
<? endforeach ?>
<? foreach ($files as $file): ?>
<span class="ui-icon <?= is_dir($file) ? "ui-icon-folder-collapsed" : "ui-icon-document" ?>"></span>
<span class="<?= is_dir($file) ? "g-directory" : "g-file" ?>"
ref="<?= html::clean_attribute($file) ?>" >
<?= html::clean(basename($file)) ?>
</li>
<? if (!$files): ?>
<li> <i> <?= t("empty") ?> </i> </li>
<? endif ?>
</ul>