authtree.html 757 B

12345678910111213141516171819202122
  1. {volist name="data" id="v"}
  2. <tr>
  3. <td>
  4. {if condition="in_array($v['id'],$select)"}
  5. <input type="checkbox" checked class="ids" name="ids[]" value="{$v.id}">
  6. {else /}
  7. <input type="checkbox" class="ids" name="ids[]" value="{$v.id}">
  8. {/if}
  9. </td>
  10. <td style="text-indent:{$depth * 1}em;">
  11. {if condition="isset($v['children']) && !empty($v['children'])"}
  12. <i class="glyphicon glyphicon-folder-open"></i>
  13. {else /}
  14. <i class="glyphicon glyphicon-list-alt"></i>
  15. {/if}
  16. {$v.title}
  17. </td>
  18. </tr>
  19. {if condition="isset($v['children']) && !empty($v['children'])"}
  20. {:widget_view('org/authtree',['data'=>$v['children'],'select'=>$select,'depth'=>$depth + 1])}
  21. {/if}
  22. {/volist}