westdc-zf1/application/default/views/scripts/header.phtml

52 lines
1.9 KiB
PHTML
Raw Normal View History

<!-- header -->
<link href="/sjyportal/css/style.css" rel="stylesheet" type="text/css" />
<header>
<div class="container">
<div class="row-fluid">
<div class="span12">
<div class="span4">
<img src="/sjyportal/img/logo.png" />
</div>
<div class="span8 inline">
<p class="pull-right" style="color:#000000; font-size:9px;">
<?php
$auth = Zend_Auth::getInstance();
if($auth->hasIdentity())
{
2014-06-11 09:34:30 +00:00
$user = $auth->getIdentity();
echo '<a href="/account"><i class="icon-user"></i> '.$user->username.'</a> ';
2014-06-11 09:36:14 +00:00
if ($user->usertype == $this->config->auth->identifier)
2014-06-11 09:34:30 +00:00
{
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="/account/logout">退出</a>';
} else {
echo '<a href="/account/login">登 录</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="/account/register">注 册</a>';
} ?>
</p>
<?php $current_url =$_SERVER["REQUEST_URI"]?>
<p>
2014-06-11 13:01:51 +00:00
<ul class="nav nav-pills pull-right" id="mainmenu">
<li style="padding-right:20px"><a href="/">首 页</a></li>
2014-06-12 01:58:26 +00:00
<li style="padding-right:20px"><a href="/archives/">新 闻</a></li>
2014-06-11 13:01:51 +00:00
<li style="padding-right:20px"><a href="/data">数 据</a></li>
<li style="padding-right:20px"><a href="/about">关于我们</a></li>
<li style="padding-right:20px" class="input-append ">
<form action="/search" method="get"><input class="input-medium" placeholder="关键字" type="text" name="q"><button class="btn" type="submit">搜索</button></form>
</li>
</ul>
</p>
</div>
</div>
</div>
</div>
</header>
<div class="container">
<?= $this->render('breadcrumbs.phtml'); ?>