{volist name="data" id="v"} <tr> <td> {if condition="in_array($v['id'],$select)"} <input type="checkbox" checked class="ids {$v.pids}" name="ids[]" value="{$v.id}" onclick="checkSubClick('{$v.id}',this)"> {else /} <input type="checkbox" class="ids {$v.pids}" name="ids[]" value="{$v.id}" onclick="checkSubClick('{$v.id}',this)"> {/if} </td> <td style="text-indent:{$depth * 1}em;"> {if condition="isset($v['children']) && !empty($v['children'])"} <i class="glyphicon glyphicon-folder-open"></i> {else /} <i class="glyphicon glyphicon-list-alt"></i> {/if} {$v.title} </td> </tr> {if condition="isset($v['children']) && !empty($v['children'])"} {:widget_view('org/authtree',['data'=>$v['children'],'select'=>$select,'depth'=>$depth + 1])} {/if} {/volist}