add icons
This commit is contained in:
parent
cce92ea781
commit
891c874cdc
|
@ -19,9 +19,9 @@
|
||||||
if($auth->hasIdentity())
|
if($auth->hasIdentity())
|
||||||
{
|
{
|
||||||
$user = $auth->getIdentity();
|
$user = $auth->getIdentity();
|
||||||
echo '<a href="/account">'.$user->username.'</a> ';
|
echo '<a href="/account"><i class="icon-user"></i>'.$user->username.'</a> ';
|
||||||
if ($user->usertype=="administrator") echo '<a href="/admin">后台管理</a> ';
|
if ($user->usertype=="administrator") echo '<a href="/admin"><i class="icon-cog"></i>后台管理</a> ';
|
||||||
echo '<a href="/data/order">数据篮</a> <a href="/account/logout">注销</a>';
|
echo '<a href="/data/order"><i class="icon-shopping-cart"></i>数据篮</a> <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