add icons

This commit is contained in:
wlx 2013-03-26 14:35:45 +00:00
parent cce92ea781
commit 891c874cdc
1 changed files with 3 additions and 3 deletions

View File

@ -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>';
} ?> } ?>