use new layout

This commit is contained in:
wlx 2011-10-25 13:43:03 +00:00
parent 2af318539c
commit eede619740
1 changed files with 33 additions and 29 deletions

View File

@ -1,29 +1,33 @@
<div id="divLogo"> <div id="divHeader">
<a href="/"><img src="/images/heihe-logo1.png" alt="Heihe Logo" /></a> <div id="divLogo">
</div> <a href="/"><img src="/images/heihe-logo.png" alt="Westdc Logo" /></a>
<div id="divNavi"> </div>
<ul> <div class="nav">
<!-- CSS Tabs --> <div id="divNavi">
<li><a href="/"><span>首页</span></a></li> <ul>
<!-- <li><a href="/news"><span>新闻动态</span></a></li> --> <!-- CSS Tabs -->
<li><a href="/data"><span>数据产品与服务</span></a></li> <li><a href="/"><span>首页</span></a></li>
<li><a href="/review"><span>元数据评审</span></a></li> <!-- <li><a href="/news"><span>新闻动态</span></a></li> -->
<li><a href="/knowledge"><span>知识积累平台</span></a></li> <li><a href="/data"><span>数据产品与服务</span></a></li>
<li><a href="/community"><span>合作与交流</span></a></li> <li><a href="/review"><span>元数据评审</span></a></li>
<li><a href="/about"><span>关于本站</span></a></li> <li><a href="/knowledge"><span>知识积累平台</span></a></li>
</ul> <li><a href="/community"><span>合作与交流</span></a></li>
<div id="userNavi"> <li><a href="/about"><span>关于本站</span></a></li>
<?php </ul>
$auth = Zend_Auth::getInstance(); </div>
if($auth->hasIdentity()) <div id="userNavi">
{ <?php
$user = $auth->getIdentity(); $auth = Zend_Auth::getInstance();
echo '<a href="/account/edit">'.$user->username.'</a> '; if($auth->hasIdentity())
if ($user->usertype=="administrator") echo '<a href="/admin">后台管理</a> '; {
echo '<a href="/data/order">数据篮</a> <a href="/account/logout">注销</a>'; $user = $auth->getIdentity();
} else { echo '<a href="/account/edit">'.$user->username.'</a> ';
echo '<a href="/account/login">登录</a> <a href="/account/register">注册</a>'; if ($user->usertype=="administrator") echo '<a href="/admin">后台管理</a> ';
} echo '<a href="/data/order">数据篮</a> <a href="/account/logout">注销</a>';
?> } else {
</div> echo '<a href="/account/login">登录</a> <a href="/account/register">注册</a>';
</div> }
?>
</div>
</div>
</div>