添加黑河logo

This commit is contained in:
wlx 2013-06-18 03:05:05 +00:00
parent 9b32dd5718
commit 6168aaafa4
4 changed files with 93 additions and 72 deletions

View File

@ -9,6 +9,7 @@ class HeiheController extends DataController
$this->debug = 1; $this->debug = 1;
$this->view->pageID = "heihe-".$this->_request->getActionName(); $this->view->pageID = "heihe-".$this->_request->getActionName();
$this->view->nav[] = array('link'=>"/heihe",'title'=>'黑河计划数据管理中心'); $this->view->nav[] = array('link'=>"/heihe",'title'=>'黑河计划数据管理中心');
$this->_helper->layout->setLayout('heihe');
} }
function indexAction() function indexAction()

View File

@ -46,6 +46,7 @@ class HiwaterController extends DataController
$this->view->pageIn = "collapse9"; $this->view->pageIn = "collapse9";
} }
$this->view->pageID = "hiwater-".$acName; $this->view->pageID = "hiwater-".$acName;
$this->_helper->layout->setLayout('heihe');
} }
function indexAction() function indexAction()

View File

@ -1,34 +1,49 @@
<div id="divHeader"> <div class="masthead">
<div id="heiheLogo"> <div class="row">
<a href="/heihe"><img src="/images/heihe-logo.png" alt="Heihe Logo" /></a> <div class="span5"><a href="/"><img src="/images/heihe-logo.png" alt="Westdc Logo" /></a></div>
<div class="span5">
<form method="get" action="/search" id="search" style="padding-top:17px;">
<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="nav"> </div>
<div id="divNavi"> <div class="navbar">
<ul> <div class="navbar-inner">
<!-- CSS Tabs --> <div class="container">
<li><a href="/"><span>首页</span></a></li> <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<!-- <li><a href="/news"><span>新闻动态</span></a></li> --> <span class="icon-bar"></span>
<li><a href="/data"><span>数据产品与服务</span></a></li> <span class="icon-bar"></span>
<li><a href="/review"><span>数据评审</span></a></li> <span class="icon-bar"></span>
<li><a href="/author"><span>数据作者</span></a></li> </button>
<li><a href="/knowledge"><span>知识积累</span></a></li> <a class="brand" href="/">WestDC</a>
<li><a href="/community"><span>合作与交流</span></a></li> <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-review"><a href="/review"><span>数据评审</span></a></li>
<li id="main-nav-author"><a href="/author"><span>数据作者</span></a></li>
<li id="main-nav-knowledge"><a href="/knowledge"><span>知识积累</span></a></li>
<li><a href="/archives"><span>新闻动态</span></a></li>
<li><a href="/about"><span>关于本站</span></a></li> <li><a href="/about"><span>关于本站</span></a></li>
</ul> </ul>
</div>
<div id="userNavi"> <p class="navbar-text pull-right">
<?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/edit">'.$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"><i class="icon-user"></i>登录</a> <a href="/account/register">注册</a>';
} } ?>
?> </p>
</div> </div>
</div> </div>
</div> </div>
</div><!-- /.navbar -->
</div>

View File

@ -1,28 +1,33 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" <!DOCTYPE html>
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head> <head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<link rel="stylesheet" type="text/css" media="screen"
href="/css/default.css" />
<link rel="stylesheet" type="text/css" media="screen"
href="/css/heihe.css" />
<script src='/js/navi.js' type="text/javascript"></script>
<link rel="alternate" type="application/rss+xml" title="WestDC RSS Feed" href="/data/feed" />
<link rel="pingback" href="http://westdc.westgis.ac.cn/data/pingback" />
<?= $this->headTitle() ?> <?= $this->headTitle() ?>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<link href="/js/lib/bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen">
<link rel="stylesheet" href="/js/lib/bootstrap/css/font-awesome.min.css">
<!--[if IE 7]>
<link rel="stylesheet" href="/js/lib/bootstrap/css/font-awesome-ie7.min.css">
<![endif]-->
<link href="/js/lib/bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet" media="screen">
<script src="/js/lib/jquery.lasted.js"></script>
<script src="/js/lib/bootstrap/js/bootstrap.min.js"></script>
<script src="/js/navi.js"></script>
<?= $this->headScript() ?> <?= $this->headScript() ?>
<?= $this->headLink() ?> <?= $this->headLink() ?>
<?= $this->headStyle() ?> <?= $this->headStyle() ?>
<link rel="shortcut icon" href="/favicon_64.png" />
<link rel="alternate" type="application/rss+xml" title="WestDC RSS Feed" href="/data/feed" />
<link rel="pingback" href="http://westdc.westgis.ac.cn/data/pingback" />
</head> </head>
<body> <body>
<div class="container">
<?= $this->render('heihe_header.phtml') ?> <?= $this->render('heihe_header.phtml') ?>
<div class="clearLine"/> <!--<div class="breadcrumb"><?= $this->breadcrumb() ?> </div>-->
<div id="divBreadCrumb"><?= $this->breadcrumb() ?> </div> <?= $this->layout()->content ?>
<div id="divContent"><?= $this->layout()->content ?></div>
<div class="clearLine"/>
<?= $this->render('footer.phtml') ?> <?= $this->render('footer.phtml') ?>
<script type="text/javascript">setPage();</script> </div>
</body>
<!-- Piwik --> <!-- Piwik -->
<script type="text/javascript"> <script type="text/javascript">
var pkBaseURL = (("https:" == document.location.protocol) ? "https://piwik.westgis.ac.cn/" : "http://piwik.westgis.ac.cn/"); var pkBaseURL = (("https:" == document.location.protocol) ? "https://piwik.westgis.ac.cn/" : "http://piwik.westgis.ac.cn/");
@ -34,6 +39,5 @@ piwikTracker.trackPageView();
piwikTracker.enableLinkTracking(); piwikTracker.enableLinkTracking();
} catch( err ) {} } catch( err ) {}
</script><noscript><p><img src="http://piwik.westgis.ac.cn/piwik.php?idsite=5" style="border:0" alt="" /></p></noscript> </script><noscript><p><img src="http://piwik.westgis.ac.cn/piwik.php?idsite=5" style="border:0" alt="" /></p></noscript>
<!-- End Piwik Tracking Code --> <script>setPage();</script>
</body>
</html> </html>