summaryrefslogtreecommitdiff
path: root/modules/local_import/views/local_import_tree.html.php
blob: b028cfa1d45456a5a3366253073e121f89da66dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?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>