diff options
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> |
