2009-02-24 05:54:19 +00:00
|
|
|
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
2009-07-10 08:01:32 -07:00
|
|
|
<? foreach ($files as $file): ?>
|
2009-07-02 11:23:40 -07:00
|
|
|
<? $id = substr(md5($file), 10) ?>
|
|
|
|
|
<li id="file_<?= $id ?>" class="<?= is_file($file) ? "gFile" : "gDirectory gCollapsed ui-icon-left" ?>">
|
|
|
|
|
<? if (is_dir($file)): ?>
|
|
|
|
|
<span onclick="open_close_branch('<?=$file?>', '<?=$id?>')" class="ui-icon ui-icon-plus"></span>
|
|
|
|
|
<? endif ?>
|
|
|
|
|
<label>
|
2009-07-10 08:01:32 -07:00
|
|
|
<?= form::checkbox("path[]", $file, false, "onclick=click_node(this)") ?>
|
|
|
|
|
<?= p::clean(basename($file)) ?>
|
2009-07-02 11:23:40 -07:00
|
|
|
</label>
|
|
|
|
|
<? if (is_dir($file)): ?>
|
|
|
|
|
<ul id="tree_<?= $id ?>" style="display: none"></ul>
|
|
|
|
|
<? endif ?>
|
|
|
|
|
</li>
|
|
|
|
|
<? endforeach ?>
|
|
|
|
|
<? if (!$files): ?>
|
|
|
|
|
<li class="gFile"> <i> <?= t("empty") ?> </i> </li>
|
|
|
|
|
<? endif ?>
|