用户登陆状态代码范例
{nocache}
<div>
{if $_Y['user']['uid']}
<a href="member.php?mod=loginout">退出</a>
{else}
<a href="member.php?mod=login" id="login" onclick="showUrl(this.id,this.href,1);return false;">登录</a>
{/if}
</div>
{/nocache}说明:
1、{nocache} 指此区域内的代码不会被缓存,该方法需要闭合
2、通常情况下企业网站无需会员登陆 因此此功能通常用于管理员登陆
