{assign var='types' value=$userquery->get_level_types()}
{section name=t loop=$types}

| {$types[t].user_permission_type_name} |

{assign var=perms value=$userquery->get_permissions($types[t].user_permission_type_id)}

{assign var = bgcolor value = ""} {foreach from=$perms item=perm} {if $perm.permission_id !=""}
{$perm.permission_id} | {$perm.permission_name} | {$perm.permission_code} | {$perm.permission_desc} | Delete
{else}
No Permission Found
{/if} {if $bgcolor == ""} {assign var = bgcolor value = "#EEEEEE"} {else} {assign var = bgcolor value = ""} {/if} {foreachelse}
No Permission Found
{/foreach}

Add New Permission

Permission Name Permission Code Permission Description yes no

{/section}