This commit is contained in:
liheng 2018-05-14 18:45:39 +08:00
parent 2fa3959252
commit cc649ea28f
4 changed files with 116 additions and 48 deletions

View File

@ -1,5 +1,5 @@
<footer> <footer>
<p style="text-align:center;font-size:12px;">© 中国西部环境与生态科学数据中心 2006-2013 | <a href="/about/contact" >联系我们</a> | <a href="/about/terms">使用条款和免责申明</a> <p style="text-align:center;font-size:12px;">© 时空三极环境大数据平台 2017-2020
| <a href="http://www.miibeian.gov.cn" target="_blank">陇ICP备05000491号</a></p> | <a href="http://www.miibeian.gov.cn" target="_blank">陇ICP备05000491号</a></p>
</footer> </footer>
<?php if(!empty($this->pageID)) {?> <?php if(!empty($this->pageID)) {?>

View File

@ -1,47 +1,69 @@
<div class="masthead">
<div class="row"> <div id="author-header" >
<div class="span5"><a href="/"><img src="/images/sanji-logo.jpg" alt="Westdc Logo" /></a></div>
<div class="span5 pull-right"> <div class="container">
<form method="get" action="/search" id="search" style="padding-top:17px;"> <div class="navbar ">
<div class="input-append">
<input type="text" value="" id="q" name="q" class="span4" placeholder="全文搜索">
<button type="submit" class="btn"><i class="icon-search"></i>搜索</button>
</div></form>
</div>
</div>
<div class="navbar">
<div class="navbar-inner"> <div class="navbar-inner">
<div class="container"> <div class="container">
<button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="brand" href="/">POLES</a>
<div class="nav-collapse collapse">
<ul class="nav" id="mainmenu">
<li id="main-nav-index"><a href="/"><span>首页</span></a></li>
<li id="main-nav-data"><a href="/data"><span>数据产品</span></a></li>
<li id="main-nav-author"><a href="/author"><span>数据作者</span></a></li>
<li><a href="/archives/news/localnews"><span>新闻动态</span></a></li>
<li><a href="/about"><span>关于本站</span></a></li>
</ul>
<p class="navbar-text pull-right"> <!-- .btn-navbar is used as the toggle for collapsed navbar content -->
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<!-- Be sure to leave the brand out there if you want it shown -->
<a class="brand" href="#">时空三极环境大数据平台</a>
<div class="nav-collapse collapse navbar-responsive-collapse">
<ul class="nav pull-right">
<li ><a href="/">首页</a></li>
<li><a href="/data" class="scroll-link">数据产品</a></li>
<li><a href="/archives/news/localnews" class="scroll-link">新闻动态</a></li>
<li><a href="/about" class="scroll-link">关于本站</a></li>
<li><a href="/author" class="scroll-link">数据提交</a></li>
<li>
<form class="navbar-search pull-left" action="/search" id="search-form">
<input type="text" class="search-query span2" name="q" id="q" placeholder="Search">
</form>
</li>
<li class="divider-vertical"></li>
<li class="dropdown">
<a class="dropdown-toggle"
data-toggle="dropdown"
href="#">
<i class="icon-user"></i>
<b class="caret"></b>
</a>
<ul class="dropdown-menu">
<?php <?php
$auth = Zend_Auth::getInstance(); $auth = Zend_Auth::getInstance();
if($auth->hasIdentity()) if($auth->hasIdentity())
{ {
$user = $auth->getIdentity(); $user = $auth->getIdentity();
echo '<a href="/account"><i class="icon-user"></i>'.$user->username.'</a> '; echo '<li><a href="/account"><i class="icon-user"></i>'.$user->username.'</a> </li>';
if ($user->usertype=="administrator") echo '<a href="/admin"><i class="icon-cog"></i>后台</a> '; if ($user->usertype=="administrator") echo '<li><a href="/admin"><i class="icon-cog"></i>后台</a></li> ';
echo '<a href="/data/order"><i class="icon-shopping-cart"></i>数据篮</a> <a href="/account/logout">注销</a>'; echo '<li><a href="/data/order"><i class="icon-shopping-cart"></i>数据篮</a></li> <li><a href="/account/logout">注销</a></li>';
} else { } else {
echo '<a href="/account/login"><i class="icon-user"></i>登录</a> <a href="/account/register">注册</a>'; echo '<li><a href="/account/login"><i class="icon-user"></i>登录</a></li> <li><a href="/account/register">注册</a></li>';
} ?> } ?>
</p> <li class="divider"></li>
</ul>
</li>
<li class="user-nav">
</li>
</ul>
</div>
</div> </div>
</div> </div>
</div> </div>
</div><!-- /.navbar --> </div>
</div> </div>

View File

@ -10,6 +10,7 @@
<link rel="stylesheet" href="/js/lib/bootstrap/css/font-awesome-ie7.min.css"> <link rel="stylesheet" href="/js/lib/bootstrap/css/font-awesome-ie7.min.css">
<![endif]--> <![endif]-->
<link href="/js/lib/bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet" media="screen"> <link href="/js/lib/bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet" media="screen">
<link href="/css/author-header.css" rel="stylesheet" >
<script src="/js/lib/jquery.lasted.js"></script> <script src="/js/lib/jquery.lasted.js"></script>
<script src="/js/lib/bootstrap/js/bootstrap.min.js"></script> <script src="/js/lib/bootstrap/js/bootstrap.min.js"></script>
<script src="/js/navi.js"></script> <script src="/js/navi.js"></script>
@ -21,10 +22,13 @@
<link rel="pingback" href="http://westdc.westgis.ac.cn/data/pingback" /> <link rel="pingback" href="http://westdc.westgis.ac.cn/data/pingback" />
</head> </head>
<body> <body>
<div class="container"> <div class="">
<?= $this->render('header.phtml') ?> <?= $this->render('header.phtml') ?>
<!--<div class="breadcrumb"><?= $this->breadcrumb() ?> </div>--> <!--<div class="breadcrumb"><?= $this->breadcrumb() ?> </div>-->
<div class="container">
<?= $this->layout()->content ?> <?= $this->layout()->content ?>
</div>
<?= $this->render('footer.phtml') ?> <?= $this->render('footer.phtml') ?>
</div> </div>
</body> </body>

View File

@ -0,0 +1,42 @@
#author-header{
background-color: #124075;
margin-bottom: 20px;
}
.navbar-inner{
background-color: #999; !important;
background-image: linear-gradient(to bottom,#124075,#124075);
border: none;
}
#author-header .brand{
color: #fff;
text-shadow: none;
}
#author-header .navbar .nav>li>a{
color: #fff;
text-shadow: none;
}
#author-header .divider-vertical{
border-left: none;
}
#author-header .user-nav{
}
#author-header .user-nav a{
color:#fff;
font-size: 8px;
font-family: 宋体, Arial;
font-weight: normal;
}
#sidebar-nav .bs-review-sidenav li .active{
background-color: crimson;
}