修改头部用户操作按钮
This commit is contained in:
parent
dd8e2cf9f3
commit
3af42da773
|
@ -15,14 +15,14 @@
|
||||||
$auth = Zend_Auth::getInstance();
|
$auth = Zend_Auth::getInstance();
|
||||||
if($auth->hasIdentity())
|
if($auth->hasIdentity())
|
||||||
{
|
{
|
||||||
$user = $auth->getIdentity();
|
$user = $auth->getIdentity();
|
||||||
echo '<a href="/account"><i class="icon-user"></i> '.$user->username.'</a> ';
|
echo '<a href="/account"><i class="icon-user"></i> '.$user->username.'</a> ';
|
||||||
if ($user->usertype=="administrator")
|
if ($user->usertype=="administrator")
|
||||||
{
|
{
|
||||||
echo '<a href="/admin"><i class="icon-cog"></i> 后台 </a>';
|
echo '<a href="/admin"><i class="icon-cog"></i> 后台 </a>';
|
||||||
}
|
}
|
||||||
echo '<a href="/data/order"><i class="icon-shopping-cart"></i> 数据篮 </a>';
|
echo '<a href="/data/order"><i class="icon-shopping-cart"></i> 数据篮 </a>';
|
||||||
echo '<a href="/account/logout">退出</a>';
|
echo '<a href="/account/logout">退出</a>';
|
||||||
} else {
|
} else {
|
||||||
echo '<a href="/account/login">登 录</a> | <a href="/account/register">注 册</a>';
|
echo '<a href="/account/login">登 录</a> | <a href="/account/register">注 册</a>';
|
||||||
} ?>
|
} ?>
|
||||||
|
|
Loading…
Reference in New Issue