用戶登陸狀態(tài)代碼范例
{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} 指此區(qū)域內(nèi)的代碼不會(huì)被緩存,該方法需要閉合
2、通常情況下企業(yè)網(wǎng)站無需會(huì)員登陸 因此此功能通常用于管理員登陸

閩公網(wǎng)安備號(hào):35010402350377
