Files
gallery3/modules/local_import/views/local_import_tree.html.php
Tim Almdal 5b35490be1 Major change to local import, in that checking the high level
directory will process all the files underneath w/o having to expand
the tree first.
2009-02-24 16:47:45 +00:00

23 lines
768 B
PHP

<?php 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 ?>"></span>
<? endif ?>
<?= "<label>" . form::checkbox("checkbox", $file) . " $file</label>" ?>
</li>
<? endforeach ?>
</ul>