24 lines
640 B
Smarty
Executable File
24 lines
640 B
Smarty
Executable File
{*Smarty template*}
|
|
|
|
<div id="tree">
|
|
|
|
{if is_array($structure.treedata)}
|
|
{foreach from=$structure.treedata item=o}
|
|
<div style="background-color: {cycle values="#eeeeee,#dadada"}">
|
|
{$structure.treedata.type}
|
|
{if $structure.treedata.tree}
|
|
{str_repeat str=' ' count=3}
|
|
{else}
|
|
{str_repeat str=' ' count=$o.level}
|
|
{/if}
|
|
{if $o.type == 'Folder'}
|
|
<a href="{$UI_BROWSER}?act=fileBrowse&id={$o.id}">[{$o.name}]</a>
|
|
{else}
|
|
{$o.name}
|
|
{/if}
|
|
<br>
|
|
</div>
|
|
{/foreach}
|
|
{/if}
|
|
|
|
</div> |