{function printTree} {foreach $data as $entry} {if !$zero && $entry.id === 0} {continue} {/if} {$width = 500 - ($entry.level * 26)}
  • {foreach $tableDef.fields as $name => $column} {if ($column.wpjAdmin and !isSuperuser()) or $column.visible == 'N'} {continue} {/if}
    {$view->printListRowItem($column, $entry)}
    {/foreach}
    {if !empty($entry.children) && ($openedSections == 'all' || in_array($entry.id, $openedSections))} {/if}
  • {/foreach} {/function} {if $SQL[0].id === 0}
    {/if}