Files
gallery3/modules/server_add/views/server_add_tree.html.php
Tim Almdal 5c82ce33a2 Refactor the server add module to make use of the task api (Ticket
#125).  Haven't quite figured out what to do with the errors in the
context. Maybe they should show on the mainenance screen?
2009-03-10 21:30:33 +00:00

23 lines
775 B
PHP

<?php defined("SYSPATH") or die("No direct script access.") ?>
<script type="text/javascript">
$("#<?= $tree_id ?>").ready(function() {
$("#<?= $tree_id ?> span.ui-icon").click(function(event) {
open_close_branch(this, event);
});
$("#<?= $tree_id ?> :checkbox").click(function(event) {
checkbox_click(this, event);
});
});
</script>
<ul id="<?= $tree_id ?>" 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"></span>
<? endif ?>
<label> <?= form::checkbox("checkbox[]", $file_info["path"]) . " $file" ?> </label>
</li>
<? endforeach ?>
</ul>