数据首页样式修改

This commit is contained in:
wlx 2013-04-11 04:24:08 +00:00
parent 48d8d728ec
commit 5c625137a1
1 changed files with 50 additions and 78 deletions

View File

@ -8,23 +8,56 @@ $this->headTitle()->setSeparator(' - ');
.fieldlist ul li:hover{color:#FFF;background:#0088CC;border-radius: 6px 6px 6px 6px;} .fieldlist ul li:hover{color:#FFF;background:#0088CC;border-radius: 6px 6px 6px 6px;}
.fieldlist ul li:hover a{color:#FFF; text-decoration:none;} .fieldlist ul li:hover a{color:#FFF; text-decoration:none;}
.news_list ul li{line-height:24px;} .news_list ul li{line-height:24px;}
</style> </style>
<div class="row">
<div class="span12">
<h4><i class="icon-folder-open"></i>专题数据集</h4>
<a class="btn btn-info" href="/heihe/"><i class="icon-folder-open"></i>黑河计划数据管理中心</a>
<a class="btn btn-info" href="/water"><i class="icon-folder-open"></i>黑河综合遥感联合试验</a>
<a class="btn btn-info" href="/hiwater"><i class="icon-folder-open"></i>黑河生态水文遥感试验</a>
</div>
<div class="span12">
<h4><i class="icon-flag"></i>特色导航</h4>
<form method="get" action="/search" id="search" class="form-search inline">
<div class="input-append">
<input type="text" value="" id="q" name="q" class="span2 search-query" placeholder="全文搜索">
<button type="submit" class="btn"><i class="icon-search"></i>搜索</button>
</div>
<a class="btn" href="/data/advancesearch"><i class="icon-search"></i>高级搜索</a>
</form>
<ul class="unstyled inline">
<li><a class="btn" href="/data/thumb"><i class="icon-road"></i>缩略图浏览</a></li>
<li><a class="btn" href="/data/timeline"><i class="icon-calendar"></i>时间轴浏览</a></li>
<li><a class="btn" href="/data/map"><i class="icon-globe"></i>空间浏览</a></li>
<li><a class="btn" href="/data/timemap"><i class="icon-film"></i>时空浏览</a></li>
<li><a class="btn" href="/data/browse"><i class="icon-reorder"></i>数据列表浏览</a></li>
<li><a class="btn" href="/data/onlinelist"><i class="icon-th"></i>在线数据清单</a></li>
<li><a class="btn" href="/data/offlinelist"><i class="icon-th"></i>离线数据清单</a></li>
<li><a class="btn" href="/data/offlinelist"><i class="icon-filter"></i>单位浏览</a></li>
<li><a class="btn" href="/data/offlinelist"><i class="icon-user-md"></i>数据作者浏览</a></li>
<li><a class="btn" href="/data/offlinelist"><i class="icon-exchange"></i>文献浏览</a></li>
</ul>
</div>
<?php
$keytypezh=array('place'=>'地点关键词','theme'=>'主题关键词','discipline'=>'学科关键词','stratum'=>'地层关键词','temporal'=>'时间关键词');
foreach($this->keywords as $type=>$kcg) :
if (is_array($kcg) && count($kcg)>0 ) :
?>
<div class="span6">
<h4><a href="/data/tag/"><i class="icon-tags"></i><?php echo $keytypezh[$type]; ?></a></h4>
<ul class="unstyled inline">
<?php foreach($kcg as $cg) : ?>
<li><a href='/data/tag/<?php echo $cg['keyword']; ?>'><i class="icon-tag"></i><?php echo $cg['keyword']; ?></a><span class="note">(<?php echo $cg['count']; ?>)</span></li>
<?php endforeach; ?>
<li class="more"><a href='/data/tag/'>...更多>>></a></li>
</ul>
</div>
<?php endif;endforeach; ?>
</div>
<div class="row"> <div class="row">
<div class="span6"> <div class="span6">
<h4><img src="/images/dbs.png" align="absmiddle" />数据导航</h4> <h4><img src="/images/dbs.png" align="absmiddle" />数据导航</h4>
<div>
<form method="get" action="/search" id="search" class="form-search">
<div class="input-append">
<input type="text" value="" id="q" name="q" class="span2 search-query">
<button type="submit" class="btn">搜索</button>
</div>
<a href="/data/advancesearch">高级搜索</a>
</form>
</div>
<div>
<a href="/heihe/">黑河计划数据管理中心</a> <a href="/water">黑河综合遥感联合试验</a>
</div>
<div class="fieldlist"> <div class="fieldlist">
<fieldset><legend><a href="/data/category">数据集类别</a></legend> <fieldset><legend><a href="/data/category">数据集类别</a></legend>
<ul class="unstyled inline"> <ul class="unstyled inline">
@ -45,38 +78,10 @@ $this->headTitle()->setSeparator(' - ');
</div> </div>
<?php endif; ?> <?php endif; ?>
</div> </div>
<div class="fieldlist">
<?php
$keytypezh=array('place'=>'地点关键词','theme'=>'主题关键词','discipline'=>'学科关键词','stratum'=>'地层关键词','temporal'=>'时间关键词');
foreach($this->keywords as $type=>$kcg) :
if (is_array($kcg) && count($kcg)>0 ) :
?>
<fieldset><legend><a href="/data/tag/"><?php echo $keytypezh[$type]; ?></a></legend>
<ul class="unstyled inline">
<?php foreach($kcg as $cg) : ?>
<li><a href='/data/tag/<?php echo $cg['keyword']; ?>'><?php echo $cg['keyword']; ?></a><span class="note">(<?php echo $cg['count']; ?>)</span></li>
<?php endforeach; ?>
<li class="more"><a href='/data/tag/'>...更多>>></a></li>
</ul>
</fieldset>
<?php endif;endforeach; ?>
<h5>其它浏览方式</h5>
<hr />
<ul class="unstyled inline">
<li><a href="/data/thumb">缩略图浏览</a></li>
<li><a href="/data/timeline">时间轴浏览</a></li>
<li><a href="/data/map">空间浏览</a></li>
<li><a href="/data/timemap">时空浏览</a></li>
<li><a href="/data/browse">数据列表浏览</a></li>
<li><a href="/data/onlinelist">在线数据清单</a></li>
<li><a href="/data/offlinelist">离线数据清单</a></li>
</ul>
</div>
</div><!-- /left --> </div><!-- /left -->
<div class="span6"> <div class="span6">
<div class="news_list"> <div class="news_list">
<h4><img src="/images/dbs.png" align="absmiddle" />数据最近更新<a href="/data/feed" target="_blank"><img src="images/rss.png"></a></h4> <h4><img src="/images/dbs.png" align="absmiddle" />数据最近更新<a href="/data/feed" target="_blank"><img src="images/rss.png"></a></h4>
<hr />
<ul class="unstyled"> <ul class="unstyled">
<?php foreach($this->metadata as $md) : ?> <?php foreach($this->metadata as $md) : ?>
<li><img src="/images/westdc_20w.gif" /> <a href="/data/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']);?></a> </li> <li><img src="/images/westdc_20w.gif" /> <a href="/data/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']);?></a> </li>
@ -86,32 +91,8 @@ $this->headTitle()->setSeparator(' - ');
</div> </div>
<div> <div>
<h4><img src="/images/Project24x24_24-bit.png" align="absmiddle" />&nbsp;数据服务</h4> <h4><img src="/images/Project24x24_24-bit.png" align="absmiddle" />&nbsp;数据服务</h4>
<hr />
<div class="items"> <div class="items">
<div class="item"> <div class="item">
<h3> <a href="/data/newsletter">数据中心通讯</a></h3>
<p class="description">
数据中心不定期发布数据通讯,通告中心动态、最新数据和数据工具</p>
<ul class="unstyled">
<li>-&nbsp;&nbsp;&nbsp;<a href='/images/newsletter/<?php echo $this->newsletter; ?>' target="_blank"><?php echo $this->newsletterno; ?>期数据通讯</a>(pdf格式)</li>
<li>
<?php
echo $this->form;
if (!empty($this->messages)) : ?>
<span id="message">
<?php
foreach ($this->messages as $info)echo $info;
?>
</span>
<?php endif; ?>
</li>
</ul>
</div>
<div class="item">
<h3><a href="/data/service">用户服务</a></h3>
<p class="description">
了解"西部数据中心"数据服务内容、方式及政策</p>
<ul class="unstyled"> <ul class="unstyled">
<li>-&nbsp;&nbsp;&nbsp;<a href="/data/offlineapp">离线数据服务记录最近20个</a></li> <li>-&nbsp;&nbsp;&nbsp;<a href="/data/offlineapp">离线数据服务记录最近20个</a></li>
<li>-&nbsp;&nbsp;&nbsp;<a href="/data/request">如何从西部数据中心申请数据</a></li> <li>-&nbsp;&nbsp;&nbsp;<a href="/data/request">如何从西部数据中心申请数据</a></li>
@ -119,18 +100,9 @@ $this->headTitle()->setSeparator(' - ');
</ul> </ul>
</div> </div>
<div class="item">
<h3><a href="/knowledge">文献服务</a></h3> </div>
<p class="description">
数据中心依托中科院资环信息中心提供西部环境与生态文献和文档服务</p>
</div>
<!--<div class="item">
<h3><a href="/data/ogcwxs">在线地图服务</a></h3>
<p class="description">提供OGC WMS、WFS等在线地图服务</p>-->
</div>
<div class="item">
<h3><a href="/about/contact">联系我们</a></h3>
</div>
</div> </div>
</div><!-- /right --> </div><!-- /right -->