{if !$memberinfo} {php $a = '/index.php?s=member&c=login';} {else} {php $a = '/index.php?s=pay&c=member&a=card';} {/if}
{loop $cats $t} {if $t['parentid']==0 && $t['ismenu']} {php $arrchilds = @explode(',', $t['arrchilds']);}
{$t['catname']}
{/if} {/loop}
{if $memberinfo}
会员
{$memberinfo['username']}
已登录
会员中心
退出
{else}
登录
注册
{/if}