summaryrefslogtreecommitdiff
path: root/modules/server_add/views/server_add_tree.html.php
blob: f8205a8bcbf00a1108fb62e2b117aad8d51cbc1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php defined("SYSPATH") or die("No direct script access.") ?>
<? foreach ($files as $file => $name): ?>
<? $id = substr(md5($file), 10) ?>
<li id="file_<?= $id ?>" class="<?= is_file($file) ? "gFile" : "gDirectory gCollapsed ui-icon-left" ?>">
  <? if (is_dir($file)): ?>
  <span onclick="open_close_branch('<?=$file?>', '<?=$id?>')" class="ui-icon ui-icon-plus"></span>
  <? endif ?>
  <label>
    <?= form::checkbox("path[]", p::clean($file), false, "onclick=click_node(this)") ?>
    <?= p::clean($name) ?>
  </label>
  <? if (is_dir($file)): ?>
  <ul id="tree_<?= $id ?>" style="display: none"></ul>
  <? endif ?>
</li>
<? endforeach ?>
<? if (!$files): ?>
<li class="gFile"> <i> <?= t("empty") ?> </i> </li>
<? endif ?>