翻译并重新布局数据页面

This commit is contained in:
wlx 2011-10-24 08:54:25 +00:00
parent c1188d9046
commit 469fbb03fe
2 changed files with 27 additions and 57 deletions

View File

@ -3,21 +3,21 @@ $this->headTitle($this->config->title->site);
$this->headTitle($this->config->title->data); $this->headTitle($this->config->title->data);
$this->headTitle()->setSeparator(' - '); $this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/metadata.css'); $this->headLink()->appendStylesheet('/css/metadata.css');
$this->breadcrumb('<a href="/">首页</a>'); $this->breadcrumb('<a href="/">Home</a>');
$this->breadcrumb($this->config->title->data); $this->breadcrumb($this->config->title->data);
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
?> ?>
<div id='leftContainer'> <div id='leftContainer'>
<div id="links"> <div id="links">
<div class="title"><img src="/images/dbs.png" align="absmiddle" />数 据 导 航</div> <div class="title"><img src="/images/dbs.png" align="absmiddle" />Data Explore</div>
<h3> <h3>
<?php echo $this->searchform; ?> <?php echo $this->searchform; ?>
<a href="/data/advancesearch">高级搜索</a></h3> </h3>
<h3><a href="/water">黑河综合遥感联合试验</a> <a href="/data/datasetcd">特色数据集光盘</a> </h3> <h3>Data Collections: <a href="/water">Watershed Allied Telemetry Experimental Research</a> </h3>
<h3> 分类浏览</h3> <h3>Navigation by Features</h3>
<div id='category'> <div id='category'>
<fieldset><legend><a href="/data/category">数据集类别</a></legend> <fieldset><legend><a href="/data/category">Category in ISO 19115</a></legend>
<ul> <ul>
<?php foreach($this->category as $cg) : ?> <?php foreach($this->category as $cg) : ?>
<li><a href='/data/category/code/<?php echo $cg['code']; ?>'><?php (empty($cg['name_zh']))?print($cg['name']):print($cg['name_zh']); ?></a><span class="note">(<?php echo $cg['count']; ?>)</span></li> <li><a href='/data/category/code/<?php echo $cg['code']; ?>'><?php (empty($cg['name_zh']))?print($cg['name']):print($cg['name_zh']); ?></a><span class="note">(<?php echo $cg['count']; ?>)</span></li>
@ -26,7 +26,7 @@ $this->breadcrumb()->setSeparator(' > ');
</div> </div>
<?php if ($this->serie) : ?> <?php if ($this->serie) : ?>
<div id='series'> <div id='series'>
<fieldset><legend><a href="/data/series">数据集序列</a></legend> <fieldset><legend><a href="/data/series">Series</a></legend>
<ul> <ul>
<?php foreach($this->serie as $cg) : ?> <?php foreach($this->serie as $cg) : ?>
<li><a href='/data/series/<?php echo $cg['id']; ?>'><?php echo $cg['name']; ?></a><span class="note">(<?php echo $cg['count']; ?>)</span></li> <li><a href='/data/series/<?php echo $cg['id']; ?>'><?php echo $cg['name']; ?></a><span class="note">(<?php echo $cg['count']; ?>)</span></li>
@ -36,7 +36,7 @@ $this->breadcrumb()->setSeparator(' > ');
<?php endif; ?> <?php endif; ?>
<div id='keyword'> <div id='keyword'>
<?php <?php
$keytypezh=array('place'=>'地点关键词','theme'=>'主题关键词','discipline'=>'学科关键词','stratum'=>'地层关键词','temporal'=>'时间关键词'); $keytypezh=array('place'=>'Place Keyword','theme'=>'Theme Keyword','discipline'=>'Discipline Keyword','stratum'=>'Stratum Keyword','temporal'=>'Temporal Keyword');
foreach($this->keywords as $type=>$kcg) : foreach($this->keywords as $type=>$kcg) :
if (is_array($kcg) && count($kcg)>0 ) : if (is_array($kcg) && count($kcg)>0 ) :
?> ?>
@ -45,20 +45,20 @@ if (is_array($kcg) && count($kcg)>0 ) :
<?php foreach($kcg as $cg) : ?> <?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> <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; ?> <?php endforeach; ?>
<li class="more"><a href='/data/tag/'>...更多>>></a></li> <li class="more"><a href='/data/tag/'>...More>>></a></li>
</ul> </ul>
</fieldset> </fieldset>
<?php endif;endforeach; ?> <?php endif;endforeach; ?>
</div> </div>
<ul><li><a href="/data/timeline">时间轴浏览</a></li> <ul><li><a href="/data/timeline">Timeline</a></li>
<li><a href="/data/map">空间浏览</a></li> <li><a href="/data/map">Spatial Extent</a></li>
<li><a href="/data/timemap">时空浏览</a></li> <li><a href="/data/timemap">TimeMap</a></li>
<li><a href="/data/browse">数据列表浏览</a></li> <li><a href="/data/browse">Browse All Data</a></li>
<li><a href="/data/onlinelist">在线数据清单</a></li> <li><a href="/data/onlinelist">Online Data List</a></li>
<li><a href="/data/offlinelist">离线数据清单</a></li> <li><a href="/data/offlinelist">Offline Data List</a></li>
</ul> </ul>
<h3>数据申请与提交</h3> <h3>Data Submit & Obtain</h3>
<ul><li><a href="/data/submit">如何向西部数据中心提交数据</li></a><li><a href="/data/request">如何申请数据</li></a></ul> <ul><li><a href="/data/submit">How to submit your data</li></a><li><a href="/data/request">How to get data</li></a></ul>
</div> </div>
<div id='toolbox'> <div id='toolbox'>
@ -67,62 +67,32 @@ if (is_array($kcg) && count($kcg)>0 ) :
</div> </div>
<div id='latest'> <div id='latest'>
<div class="title"><img src="/images/dbs.png" align="absmiddle" />数据最近更新<a href="/data/feed" target="_blank"><img src="images/rss.png"></a></div> <div class="title"><img src="/images/dbs.png" align="absmiddle" />Latest Update<a href="/data/feed" target="_blank"><img src="images/rss.png"></a></div>
<div class="mditem"> <div class="mditem">
<ul> <ul>
<?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>
<?php endforeach; ?> <?php endforeach; ?>
<li class="more"><a href="/data/browse">更多</a></li> <li class="more"><a href="/data/browse">More</a></li>
</ul> </ul>
</div> </div>
</div> </div>
<div id="services"> <div id="services">
<div class="title"><img src="/images/Project24x24_24-bit.png" align="absmiddle" />&nbsp;数据服务</div> <div class="title"><img src="/images/Project24x24_24-bit.png" align="absmiddle" />&nbsp;User Support</div>
<div class="items"> <div class="items">
<div class="item"> <div class="item">
<h3> <a href="/data/newsletter">数据中心通讯</a></h3> <h3><a href="/data/service">Use & Copyright</a></h3>
<p class="description"> <p class="description">
数据中心不定期发布数据通讯,通告中心动态、最新数据和数据工具</p> What's the data policy? How to download the data?</p>
<ul> <ul>
<li>-&nbsp;&nbsp;&nbsp;<a href='/images/newsletter/<?php echo $this->newsletter; ?>' target="_blank"><?php echo $this->newsletterno; ?>期数据通讯</a>(pdf格式)</li> <li>-&nbsp;&nbsp;&nbsp;<a href="/data/offlineapp">Offline Service Record</a></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>
<li>-&nbsp;&nbsp;&nbsp;<a href="/data/offlineapp">离线数据服务记录最近20个</a></li>
</ul> </ul>
</div> </div>
<div class="item"> <div class="item">
<h3><a href="/knowledge">文献服务</a></h3> <h3><a href="/about/contact">Contact Us</a></h3>
<p class="description">
数据中心依托中科院资环信息中心提供西部环境与生态文献和文档服务</p>
<ul><li>-&nbsp;&nbsp;&nbsp;<a href="/knowledge/netkites">移动文献查询服务</a></li></ul>
</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>&nbsp; </div>
</div> </div>

View File

@ -1,12 +1,12 @@
<?php <?php
$this->headTitle($this->config->title->site); $this->headTitle($this->config->title->site);
$this->headTitle('首页'); $this->headTitle('Home');
$this->headTitle()->setSeparator(' - '); $this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/index.css'); $this->headLink()->appendStylesheet('/css/index.css');
$auth = Zend_Auth::getInstance(); $auth = Zend_Auth::getInstance();
?> ?>
<div id="leftPanel"> <div id="leftPanel">
<div class="title">下载热门数据</div> <div class="title">Top Downloaded</div>
<ul> <ul>
<?php foreach($this->mdtop as $i=>$md) : ?> <?php foreach($this->mdtop as $i=>$md) : ?>
<li> <img src="/images/no<?php echo $i+1; ?>.gif" align="absmiddle" style="border-width:0px;" />&nbsp; <li> <img src="/images/no<?php echo $i+1; ?>.gif" align="absmiddle" style="border-width:0px;" />&nbsp;