{strip}
{foreach from=$groupArray item=currGroup} {/foreach}
ID Group Name Privileges Projects Papers
{$currGroup.group_id} {$currGroup.group_name} {if ($currGroup.group_privilege==$smarty.const.GP_ADMIN)} Admin {elseif ($currGroup.group_privilege==$smarty.const.GP_USER)} User {elseif ($currGroup.group_privilege==$smarty.const.GP_VIEW)} Viewer {elseif ($currGroup.group_privilege==$smarty.const.GP_GUEST)} Guest {else} ERR {/if} {implode from=$currGroup.projects item="project_name" delim=", "} {implode from=$currGroup.papers item="title" delim="
"}
{/strip}