2014-06-12 08:59:00 +00:00
|
|
|
<!-- header -->
|
2014-06-14 04:18:16 +00:00
|
|
|
<link href="/sjyportal/css/style.css" rel="stylesheet" type="text/css" />
|
2014-06-12 08:59:00 +00:00
|
|
|
|
|
|
|
|
|
|
|
<header>
|
|
|
|
<div class="container">
|
|
|
|
<div class="row-fluid">
|
|
|
|
<div class="span12">
|
2014-06-13 10:13:29 +00:00
|
|
|
<div class="span3">
|
2014-06-12 08:59:00 +00:00
|
|
|
<img src="/sjyportal/img/logo.png" />
|
|
|
|
</div>
|
2014-06-14 03:25:49 +00:00
|
|
|
<div class="span9">
|
|
|
|
<p class="pull-right" style="font-size:9px; position:relative; top:-8px;">
|
2014-06-12 08:59:00 +00:00
|
|
|
<?php
|
|
|
|
$auth = Zend_Auth::getInstance();
|
|
|
|
if($auth->hasIdentity())
|
|
|
|
{
|
|
|
|
$user = $auth->getIdentity();
|
|
|
|
echo '<a href="/account"><i class="icon-user"></i> '.$user->username.'</a> ';
|
|
|
|
if ($user->usertype == $this->config->auth->identifier)
|
|
|
|
{
|
|
|
|
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> | <a href="/account/register">注 册</a>';
|
|
|
|
} ?>
|
|
|
|
</p>
|
2014-06-13 10:13:29 +00:00
|
|
|
|
2014-06-14 03:25:49 +00:00
|
|
|
<p class="pull-right" >
|
2014-06-13 10:13:29 +00:00
|
|
|
<form action="/search" method="get">
|
|
|
|
<ul class="navigat nav nav-pills pull-right" id="mainmenu">
|
2014-06-14 04:18:16 +00:00
|
|
|
<li><a href="/">首 页</a></li>
|
2014-06-14 03:25:49 +00:00
|
|
|
<li style="padding-left:15px"><a href="/archives/">新 闻</a></li>
|
|
|
|
<li style="padding-left:15px"><a href="/data">数 据</a></li>
|
|
|
|
<li style="padding-left:15px"><a href="/about">关于我们</a></li>
|
|
|
|
<li style="padding-left:15px" class="input-append ">
|
2014-06-13 10:13:29 +00:00
|
|
|
<input class="input-medium" placeholder="关键字" type="text" name="q">
|
|
|
|
<button class="btn" type="submit">搜索</button>
|
2014-06-12 08:59:00 +00:00
|
|
|
</li>
|
|
|
|
|
|
|
|
</ul>
|
2014-06-13 10:13:29 +00:00
|
|
|
</form>
|
2014-06-12 08:59:00 +00:00
|
|
|
</p>
|
2014-06-13 10:13:29 +00:00
|
|
|
|
2014-06-12 08:59:00 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</header>
|
|
|
|
|
|
|
|
<div class="container">
|
2014-06-13 10:13:29 +00:00
|
|
|
<?= $this->render('breadcrumbs.phtml'); ?>
|