Implementation of local import module. Still need work on better

status messages.
This commit is contained in:
Tim Almdal
2009-02-21 02:28:19 +00:00
parent af2f7f2c56
commit c2fa42cf6c
18 changed files with 706 additions and 0 deletions
@@ -0,0 +1,22 @@
<? defined("SYSPATH") or die("No direct script access."); ?>
<script type="text/javascript">
$("#<?= $uid ?>").ready(function() {
$("#<?= $uid ?> span.ui-icon").click(function(event) {
open_close_branch(this, event);
});
$("#<?= $uid ?> :checkbox").click(function(event) {
checkbox_click(this, event);
});
});
</script>
<ul id="<?= $uid ?>" class="gCheckboxTree">
<? foreach ($data as $file => $file_info): ?>
<li class="<?= empty($file_info["is_dir"]) ? "gFile" : "gDirectory gCollapsed ui-icon-left" ?>">
<? if (!empty($file_info["is_dir"])): ?>
<span class="ui-icon ui-icon-plus" ref="<?= $file_info["path"] ?>"></span>
<? endif ?>
<?= "<label>" . form::checkbox("checkbox", $file_info["path"]) . " $file</label>" ?>
</li>
<? endforeach ?>
</ul>