2009-02-24 05:54:19 +00:00
|
|
|
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
2009-07-11 05:03:36 -07:00
|
|
|
<li class="ui-icon-left">
|
|
|
|
|
<span class="ui-icon ui-icon-folder-open"></span>
|
|
|
|
|
<span ondblclick="open_dir('')">
|
|
|
|
|
<?= t("All") ?>
|
|
|
|
|
</span>
|
|
|
|
|
<ul>
|
|
|
|
|
|
|
|
|
|
<? foreach ($parents as $dir): ?>
|
|
|
|
|
<li class="ui-icon-left">
|
|
|
|
|
<span class="ui-icon ui-icon-folder-open"></span>
|
2009-08-30 23:11:13 -07:00
|
|
|
<span ondblclick='open_dir(<?= html::js_string($dir) ?>)'>
|
2009-08-29 22:54:20 -07:00
|
|
|
<?= html::clean(basename($dir)) ?>
|
2009-07-11 05:03:36 -07:00
|
|
|
</span>
|
|
|
|
|
<ul>
|
|
|
|
|
<? endforeach ?>
|
|
|
|
|
|
|
|
|
|
<? foreach ($files as $file): ?>
|
|
|
|
|
<li class="ui-icon-left">
|
|
|
|
|
<span class="ui-icon <?= is_dir($file) ? "ui-icon-folder-collapsed" : "ui-icon-document" ?>"></span>
|
|
|
|
|
<span onclick="select_file(this)"
|
|
|
|
|
<? if (is_dir($file)): ?>
|
|
|
|
|
ondblclick="open_dir($(this).attr('file'))"
|
|
|
|
|
<? endif ?>
|
2009-08-30 21:34:55 -07:00
|
|
|
file="<?= html::clean_attribute($file) ?>"
|
2009-07-11 05:03:36 -07:00
|
|
|
>
|
2009-08-29 22:54:20 -07:00
|
|
|
<?= html::clean(basename($file)) ?>
|
2009-07-11 05:03:36 -07:00
|
|
|
</span>
|
|
|
|
|
</li>
|
|
|
|
|
<? endforeach ?>
|
|
|
|
|
<? if (!$files): ?>
|
|
|
|
|
<li> <i> <?= t("empty") ?> </i> </li>
|
|
|
|
|
<? endif ?>
|
|
|
|
|
|
|
|
|
|
<? foreach ($parents as $dir): ?>
|
|
|
|
|
</ul>
|
|
|
|
|
</li>
|
|
|
|
|
<? endforeach ?>
|
|
|
|
|
|
|
|
|
|
</ul>
|
2009-07-02 11:23:40 -07:00
|
|
|
</li>
|