diff options
| author | Tim Almdal <tnalmdal@shaw.ca> | 2009-02-21 02:28:19 +0000 |
|---|---|---|
| committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-02-21 02:28:19 +0000 |
| commit | c2fa42cf6cf6a2742b2a40ef7fc46f95f7a734f3 (patch) | |
| tree | fdb541eb6d7310ea7582a5aaaaf5bd8201f767d3 /modules/local_import/views/local_import_tree.html.php | |
| parent | af2f7f2c565519c177e9ef7d9848419936ddf8fb (diff) | |
Implementation of local import module. Still need work on better
status messages.
Diffstat (limited to 'modules/local_import/views/local_import_tree.html.php')
| -rw-r--r-- | modules/local_import/views/local_import_tree.html.php | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/modules/local_import/views/local_import_tree.html.php b/modules/local_import/views/local_import_tree.html.php new file mode 100644 index 00000000..21d0095a --- /dev/null +++ b/modules/local_import/views/local_import_tree.html.php @@ -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> |
