修改关于本站,黑河专题、water专题数据页面,修改数据页面的推荐列表样式,相关搜索样式,相关文献等中的分页样式

This commit is contained in:
Li Jianxuan 2013-03-29 07:29:44 +00:00
parent 7a1e65b42d
commit cdfdac313e
23 changed files with 1443 additions and 1209 deletions

View File

@ -11,6 +11,7 @@ class AboutController extends Zend_Controller_Action
$this->messenger=$this->_helper->getHelper('FlashMessenger'); $this->messenger=$this->_helper->getHelper('FlashMessenger');
$this->view->messages = $this->messenger->getMessages(); $this->view->messages = $this->messenger->getMessages();
$this->db=Zend_Registry::get('db'); $this->db=Zend_Registry::get('db');
$this->view->pageID = "about-".$this->_request->getActionName();
} }
function contactAction() function contactAction()
{ {

View File

@ -6,7 +6,6 @@ class HeiheController extends DataController
function preDispatch() function preDispatch()
{ {
parent::preDispatch(); parent::preDispatch();
$this->_helper->layout->setLayout('heihe');
$this->debug = 1; $this->debug = 1;
} }

View File

@ -1065,11 +1065,11 @@ class ServiceController extends Zend_Controller_Action
{ {
if($page > 0) if($page > 0)
{ {
$pre = '<div class="pagnv"><a href="javascript:void(0);" onClick="recommend('. ($page-1) .')" class="pleft"><img src="/images/scroll_left.gif" /></a></div>'; $pre = '<li><a href="javascript:void(0);" onClick="recommend('. ($page-1) .')">Prev</a></li>';
} }
if($num > $pageSize*($page+1)) if($num > $pageSize*($page+1))
{ {
$next = "<div class=\"pagnv\"><a href=\"javascript:void(0);\" onclick=\"recommend(". ($page+1) .")\" class=\"pright\"><img src=\"/images/scroll_right.gif\" /></a></a></div>"; $next = '<li><a href="javascript:void(0);" onclick="recommend('. ($page+1) .')">Next</a></li>';
} }
} }
$sql .=" limit $pageSize offset ".$page*$pageSize; $sql .=" limit $pageSize offset ".$page*$pageSize;
@ -1082,14 +1082,23 @@ class ServiceController extends Zend_Controller_Action
$rows = $re->fetchAll(); $rows = $re->fetchAll();
if(count($rows>0)) if(count($rows>0))
{ {
echo $pre;
echo '<ul>'; echo '<ul class="unstyled">';
foreach($rows as $c) foreach($rows as $c)
{ {
echo '<li><a target="_blank" href="/data/'.$c['uuid'].'"><span class="title">'.$c['title'].'</span><img src="/service/thumb/uuid/'.$c['uuid'].'" alt="'.$c['title'].'" title="'.$c['title'].'(推荐指数:'.$c['downtimes'].' "/></a></li>'; echo
'<li class="well well-small" style="overflow:hidden;">
<img src="/service/thumb/uuid/'.$c['uuid'].'" alt="'.$c['title'].'" title="'.$c['title'].'"
class="pull-left img-polaroid img-rounded" style="height:80px;"/>
<h4><a target="_blank" href="/data/'.$c['uuid'].'"><span class="title">'.$c['title'].'</span></a></h4>
<h5>推荐指数:'.$c['downtimes'].'</h5>
</li>';
} }
echo '</ul>'; echo '</ul>';
echo '<div class="pagination"><ul>';
echo $pre;
echo $next; echo $next;
echo '</ul></div>';
}else }else
{ {
echo "暂无相关数据"; echo "暂无相关数据";

View File

@ -8,12 +8,14 @@ $this->breadcrumb('<a href="/about">关于本站</a>');
$this->breadcrumb('发展历史'); $this->breadcrumb('发展历史');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
?> ?>
<div id='sidebar'> <div class="row">
<div id='leftnavi'> <div class="span3">
<?= $this->partial('about/navi.phtml'); ?> <?= $this->partial('about/navi.phtml'); ?>
</div> </div>
</div> <div class="span9">
<div id="content"> <div id="content">
<h2>发展历史</h2> <h2>发展历史</h2>
<?= $this->item['body']; ?> <?= $this->item['body']; ?>
</div> </div>
</div>
</div>

View File

@ -8,12 +8,13 @@ $this->breadcrumb('<a href="/about">关于本站</a>');
$this->breadcrumb('联系我们'); $this->breadcrumb('联系我们');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
?> ?>
<div id='sidebar'> <div class="row">
<div id='leftnavi'> <div class="span3">
<?= $this->partial('about/navi.phtml'); ?> <?= $this->partial('about/navi.phtml'); ?>
</div> </div>
</div> <div class="span9">
<div id="contactUs"> 联系我们</div> <div id="content">
<h2>联系我们</h2>
<div id="offline"> <div id="offline">
<p class="title">离线方式</p> <p class="title">离线方式</p>
<p> <p>
@ -39,3 +40,6 @@ foreach ($this->messages as $info)echo $info;
</div> </div>
<?php endif; ?> <?php endif; ?>
</div> </div>
</div>
</div>
</div>

View File

@ -8,12 +8,14 @@ $this->breadcrumb('<a href="/about">关于本站</a>');
$this->breadcrumb('联系我们'); $this->breadcrumb('联系我们');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
?> ?>
<div id='sidebar'> <div class="row">
<div id='leftnavi'> <div class="span3">
<?= $this->partial('about/navi.phtml'); ?> <?= $this->partial('about/navi.phtml'); ?>
</div> </div>
</div> <div class="span9">
<div id="content"> <div id="content">
<h2>数据与版权</h2> <h2>数据与版权</h2>
<?= $this->item['body']; ?> <?= $this->item['body']; ?>
</div> </div>
</div>
</div>

View File

@ -8,12 +8,14 @@ $this->breadcrumb('<a href="/about">关于本站</a>');
$this->breadcrumb('服务成效'); $this->breadcrumb('服务成效');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
?> ?>
<div id='sidebar'> <div class="row">
<div id='leftnavi'> <div class="span3">
<?= $this->partial('about/navi.phtml'); ?> <?= $this->partial('about/navi.phtml'); ?>
</div> </div>
</div> <div class="span9">
<div id="content"> <div id="content">
<h2>服务成效</h2> <h2>服务成效</h2>
<?= $this->item['body']; ?> <?= $this->item['body']; ?>
</div> </div>
</div>
</div>

View File

@ -7,11 +7,11 @@ $this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('关于我们'); $this->breadcrumb('关于我们');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
?> ?>
<div id='sidebar'> <div class="row">
<div id='leftnavi'> <div class="span3">
<?= $this->partial('about/navi.phtml'); ?> <?= $this->partial('about/navi.phtml'); ?>
</div> </div>
</div> <div class="span9">
<div id="content"> <div id="content">
<div class="logo"> <div class="logo">
<img src="/images/westdc_logo_white.gif" /><br /> <img src="/images/westdc_logo_white.gif" /><br />
@ -32,3 +32,5 @@ $this->breadcrumb()->setSeparator(' > ');
<a href="/about/contact">联系我们</a></h2> <a href="/about/contact">联系我们</a></h2>
</div> </div>
</div>
</div>

View File

@ -8,12 +8,14 @@ $this->breadcrumb('<a href="/about">关于本站</a>');
$this->breadcrumb('隐私政策'); $this->breadcrumb('隐私政策');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
?> ?>
<div id='sidebar'> <div class="row">
<div id='leftnavi'> <div class="span3">
<?= $this->partial('about/navi.phtml'); ?> <?= $this->partial('about/navi.phtml'); ?>
</div> </div>
</div> <div class="span9">
<div id="content"> <div id="content">
<h2>隐私政策</h2> <h2>隐私政策</h2>
<?= $this->item['body']; ?> <?= $this->item['body']; ?>
</div> </div>
</div>
</div>

View File

@ -8,12 +8,14 @@ $this->breadcrumb('<a href="/about">关于本站</a>');
$this->breadcrumb('友情链接'); $this->breadcrumb('友情链接');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
?> ?>
<div id='sidebar'> <div class="row">
<div id='leftnavi'> <div class="span3">
<?= $this->partial('about/navi.phtml'); ?> <?= $this->partial('about/navi.phtml'); ?>
</div> </div>
</div> <div class="span9">
<div id="content"> <div id="content">
<h2>友情链接</h2> <h2>友情链接</h2>
<?= $this->item['body']; ?> <?= $this->item['body']; ?>
</div> </div>
</div>
</div>

View File

@ -1,12 +1,14 @@
<ul> <div class="sidebar-nav bs-review-nav">
<li><a href="/about/">中心简介</a></li> <ul class="nav nav-list bs-review-sidenav">
<li><a href="/about/background">发展历史</a></li> <li id="Nav-about-index"><a href="/about/"><i class="icon-chevron-right"></i>中心简介</a></li>
<li><a href="/about/sponsors">支持项目</a></li> <li id="Nav-about-background"><a href="/about/background"><i class="icon-chevron-right"></i>发展历史</a></li>
<li><a href="/about/honor">服务成效</a></li> <li id="Nav-about-sponsors"><a href="/about/sponsors"><i class="icon-chevron-right"></i>支持项目</a></li>
<li><a href="/about/publication">成果发表</a></li> <li id="Nav-about-honor"><a href="/about/honor"><i class="icon-chevron-right"></i>服务成效</a></li>
<li><a href="/about/copyright">数据与版权</a></li> <li id="Nav-about-publication"><a href="/about/publication"><i class="icon-chevron-right"></i>成果发表</a></li>
<li><a href="/about/legal">隐私政策</a></li> <li id="Nav-about-copyright"><a href="/about/copyright"><i class="icon-chevron-right"></i>数据与版权</a></li>
<li><a href="/about/supportus">支持我们</a></li> <li id="Nav-about-legal"><a href="/about/legal"><i class="icon-chevron-right"></i>隐私政策</a></li>
<li><a href="/about/contact">联系我们</a></li> <li id="Nav-about-supportus"><a href="/about/supportus"><i class="icon-chevron-right"></i>支持我们</a></li>
<li><a href="/about/link">友情链接</a></li> <li id="Nav-about-contact"><a href="/about/contact"><i class="icon-chevron-right"></i>联系我们</a></li>
<li id="Nav-about-link"><a href="/about/link"><i class="icon-chevron-right"></i>友情链接</a></li>
</ul> </ul>
</div>

View File

@ -9,21 +9,21 @@ $this->breadcrumb('<a href="/about/publication">成果发表</a>');
$this->breadcrumb('专利与著作权'); $this->breadcrumb('专利与著作权');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
?> ?>
<div id='sidebar'> <div class="row">
<div id='leftnavi'> <div class="span3">
<?= $this->partial('about/navi.phtml'); ?> <?= $this->partial('about/navi.phtml'); ?>
</div> </div>
</div> <div class="span9">
<div id="content"> <div id="content">
<h2>成果发表</h2> <h2>成果发表</h2>
<div id="tabs-controller"> <div>
<ul> <ul class="nav nav-pills">
<li class="box-shadow"><a class="text-shadow" href="/about/publication/">期刊文章</a></li> <li><a href="/about/publication/">期刊文章</a></li>
<li class="box-shadow"><a class="text-shadow" href="/about/publication/ac/report">文档报告</a></li> <li><a href="/about/publication/ac/report">文档报告</a></li>
<li class="box-shadow active"><a class="text-shadow" href="/about/publication/ac/patent">专利与著作权</a></li> <li class="active"><a href="/about/publication/ac/patent">专利与著作权</a></li>
</ul> </ul>
</div> </div>
<div id="datalist"> <div>
<?php if (count($this->paginator)): ?> <?php if (count($this->paginator)): ?>
<ul> <ul>
<?php foreach ($this->paginator as $item): ?> <?php foreach ($this->paginator as $item): ?>
@ -39,3 +39,5 @@ $this->breadcrumb()->setSeparator(' > ');
<?php endif; ?> <?php endif; ?>
</div> </div>
</div> </div>
</div>
</div>

View File

@ -8,21 +8,21 @@ $this->breadcrumb('<a href="/about">关于本站</a>');
$this->breadcrumb('成果发表'); $this->breadcrumb('成果发表');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
?> ?>
<div id='sidebar'> <div class="row">
<div id='leftnavi'> <div class="span3">
<?= $this->partial('about/navi.phtml'); ?> <?= $this->partial('about/navi.phtml'); ?>
</div> </div>
</div> <div class="span9">
<div id="content"> <div id="content">
<h2>成果发表</h2> <h2>成果发表</h2>
<div id="tabs-controller"> <div>
<ul> <ul class="nav nav-pills">
<li class="box-shadow active"><a class="text-shadow" href="/about/publication/">期刊文章</a></li> <li class="active"><a href="/about/publication/">期刊文章</a></li>
<li class="box-shadow"><a class="text-shadow" href="/about/publication/ac/report">文档报告</a></li> <li><a href="/about/publication/ac/report">文档报告</a></li>
<li class="box-shadow"><a class="text-shadow" href="/about/publication/ac/patent">专利与著作权</a></li> <li><a href="/about/publication/ac/patent">专利与著作权</a></li>
</ul> </ul>
</div> </div>
<div id="datalist"> <div>
<?php if (count($this->paginator)): ?> <?php if (count($this->paginator)): ?>
<ul> <ul>
<?php foreach ($this->paginator as $item): ?> <?php foreach ($this->paginator as $item): ?>
@ -38,3 +38,5 @@ $this->breadcrumb()->setSeparator(' > ');
<?php endif; ?> <?php endif; ?>
</div> </div>
</div> </div>
</div>
</div>

View File

@ -9,21 +9,21 @@ $this->breadcrumb('<a href="/about/publication">成果发表</a>');
$this->breadcrumb('文档报告'); $this->breadcrumb('文档报告');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
?> ?>
<div id='sidebar'> <div class="row">
<div id='leftnavi'> <div class="span3">
<?= $this->partial('about/navi.phtml'); ?> <?= $this->partial('about/navi.phtml'); ?>
</div> </div>
</div> <div class="span9">
<div id="content"> <div id="content">
<h2>成果发表</h2> <h2>成果发表</h2>
<div id="tabs-controller"> <div>
<ul> <ul class="nav nav-pills">
<li class="box-shadow"><a class="text-shadow" href="/about/publication/">期刊文章</a></li> <li><a href="/about/publication/">期刊文章</a></li>
<li class="box-shadow active"><a class="text-shadow" href="/about/publication/ac/report">文档报告</a></li> <li class="active"><a href="/about/publication/ac/report">文档报告</a></li>
<li class="box-shadow"><a class="text-shadow" href="/about/publication/ac/patent">专利与著作权</a></li> <li><a href="/about/publication/ac/patent">专利与著作权</a></li>
</ul> </ul>
</div> </div>
<div id="datalist"> <div>
<?php if (count($this->paginator)): ?> <?php if (count($this->paginator)): ?>
<ul> <ul>
<?php foreach ($this->paginator as $item): ?> <?php foreach ($this->paginator as $item): ?>
@ -39,3 +39,5 @@ $this->breadcrumb()->setSeparator(' > ');
<?php endif; ?> <?php endif; ?>
</div> </div>
</div> </div>
</div>
</div>

View File

@ -8,12 +8,14 @@ $this->breadcrumb('<a href="/about">关于本站</a>');
$this->breadcrumb('支持项目'); $this->breadcrumb('支持项目');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
?> ?>
<div id='sidebar'> <div class="row">
<div id='leftnavi'> <div class="span3">
<?= $this->partial('about/navi.phtml'); ?> <?= $this->partial('about/navi.phtml'); ?>
</div> </div>
</div> <div class="span9">
<div id="content"> <div id="content">
<h2>支持项目</h2> <h2>支持项目</h2>
<?= $this->item['body']; ?> <?= $this->item['body']; ?>
</div> </div>
</div>
</div>

View File

@ -8,12 +8,14 @@ $this->breadcrumb('<a href="/about">关于本站</a>');
$this->breadcrumb('支持我们'); $this->breadcrumb('支持我们');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
?> ?>
<div id='sidebar'> <div class="row">
<div id='leftnavi'> <div class="span3">
<?= $this->partial('about/navi.phtml'); ?> <?= $this->partial('about/navi.phtml'); ?>
</div> </div>
</div> <div class="span9">
<div id="content"> <div id="content">
<h2>支持我们</h2> <h2>支持我们</h2>
<?= $this->item['body']; ?> <?= $this->item['body']; ?>
</div> </div>
</div>
</div>

View File

@ -1,26 +1,28 @@
<?php if ($this->pageCount): ?> <?php if ($this->pageCount): ?>
<div class="paginationControl"> <div class="pagination pagination-mini">
<ul>
<!-- Previous page link --> <!-- Previous page link -->
<?php if (isset($this->previous)): ?> <?php if (isset($this->previous)): ?>
<a href="javascript:void(0);" onclick="literature(<?php echo $this->previous;?>)">&lt; Previous</a> <li><a href="javascript:void(0);" onclick="literature(<?php echo $this->previous;?>)">&laquo;</a></li>
<?php else: ?> <?php else: ?>
<span class="disabled">&lt; Previous</span> <li class="disabled"><a href="javascript:;">&laquo;</a></li>
<?php endif; ?> <?php endif; ?>
<!-- Numbered page links --> <!-- Numbered page links -->
<?php foreach ($this->pagesInRange as $page): ?> <?php foreach ($this->pagesInRange as $page): ?>
<?php if ($page != $this->current): ?> <?php if ($page != $this->current): ?>
<a href="javascript:void(0);" onclick="literature(<?php echo $page;?>)"><?= $page; ?></a> <li><a href="javascript:void(0);" onclick="literature(<?php echo $page;?>)"><?= $page; ?></a></li>
<?php else: ?> <?php else: ?>
<span class="current"><?= $page; ?></span> <li class="active"><a href="javascript:void(0);"><?= $page; ?></a></li>
<?php endif; ?> <?php endif; ?>
<?php endforeach; ?> <?php endforeach; ?>
<!-- Next page link --> <!-- Next page link -->
<?php if (isset($this->next)): ?> <?php if (isset($this->next)): ?>
<a href="javascript:void(0);" onclick="literature(<?php echo $this->next;?>)">Next &gt;</a> <li><a href="javascript:void(0);" onclick="literature(<?php echo $this->next;?>)">&raquo;</a></li>
<?php else: ?> <?php else: ?>
<span class="disabled">Next &gt;</span> <li class="disabled"><a href="javascript:;">&raquo;</a></li>
<?php endif; ?> <?php endif; ?>
</ul>
</div> </div>
<?php endif; ?> <?php endif; ?>

View File

@ -1,26 +1,28 @@
<?php if ($this->pageCount): ?> <?php if ($this->pageCount): ?>
<div class="paginationControl"> <div class="pagination pagination-mini">
<ul>
<!-- Previous page link --> <!-- Previous page link -->
<?php if (isset($this->previous)): ?> <?php if (isset($this->previous)): ?>
<a href="javascript:void(0);" onclick="related(<?php echo $this->previous;?>)">&lt; Previous</a> <li><a href="javascript:void(0);" onclick="related(<?php echo $this->previous;?>)">&laquo;</a></li>
<?php else: ?> <?php else: ?>
<span class="disabled">&lt; Previous</span> <li class="disabled"><a href="javascript:;">&laquo;</a></li>
<?php endif; ?> <?php endif; ?>
<!-- Numbered page links --> <!-- Numbered page links -->
<?php foreach ($this->pagesInRange as $page): ?> <?php foreach ($this->pagesInRange as $page): ?>
<?php if ($page != $this->current): ?> <?php if ($page != $this->current): ?>
<a href="javascript:void(0);" onclick="related(<?php echo $page;?>)"><?= $page; ?></a> <li><a href="javascript:void(0);" onclick="related(<?php echo $page;?>)"><?= $page; ?></a></li>
<?php else: ?> <?php else: ?>
<span class="current"><?= $page; ?></span> <li class="active"><a href="javascript:void(0);"><?= $page; ?></a></li>
<?php endif; ?> <?php endif; ?>
<?php endforeach; ?> <?php endforeach; ?>
<!-- Next page link --> <!-- Next page link -->
<?php if (isset($this->next)): ?> <?php if (isset($this->next)): ?>
<a href="javascript:void(0);" onclick="related(<?php echo $this->next;?>)">Next &gt;</a> <li><a href="javascript:void(0);" onclick="related(<?php echo $this->next;?>)">&raquo;</a></li>
<?php else: ?> <?php else: ?>
<span class="disabled">Next &gt;</span> <li class="disabled"><a href="javascript:;">&raquo;</a></li>
<?php endif; ?> <?php endif; ?>
</ul>
</div> </div>
<?php endif; ?> <?php endif; ?>

View File

@ -126,13 +126,13 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
<div id="literature" class="tab-pane"> <div id="literature" class="tab-pane">
</div> </div>
<div id="gsearch" class="tab-pane"> <div id="gsearch" class="tab-pane">
<ul id="searchctrl"> <ul id="searchctrl" class="unstyled span2">
<li><a href="javascript:;" class="googlesearch">Google搜索</a></li> <li><a href="javascript:;" class="googlesearch">Google搜索</a></li>
<li><a href="javascript:;" class="bingsearch">BING搜索</a></li> <li><a href="javascript:;" class="bingsearch">BING搜索</a></li>
<li><a href="javascript:;" class="scholar">Google学术搜索</a></li> <li><a href="javascript:;" class="scholar">Google学术搜索</a></li>
<li><a href="javascript:;" class="cnkiSearch">CNKI学术搜索</a></li> <li><a href="javascript:;" class="cnkiSearch">CNKI学术搜索</a></li>
</ul> </ul>
<ul id="searchlist"> <ul id="searchlist" class="unstyled span6 well well-small">
</ul> </ul>
</div> </div>
<div id="service" class="tab-pane"> <div id="service" class="tab-pane">

View File

@ -1,4 +1,4 @@
<ul> <ul class="nav nav-list">
<li><a href="/heihe/">黑河流域数据简介</a></li> <li><a href="/heihe/">黑河流域数据简介</a></li>
<li><a href="/heihe/core">核心数据</a> <li><a href="/heihe/core">核心数据</a>
<ul> <ul>
@ -12,7 +12,8 @@
</ul> </ul>
</li> </li>
<li><a href="/heihe/base">基础数据</a> <li><a href="/heihe/base">基础数据</a>
<ul><li><a href="/heihe/geobase">基础地理数据</a></li> <ul>
<li><a href="/heihe/geobase">基础地理数据</a></li>
<li><a href="/heihe/landsurface">陆地表层数据</a></li> <li><a href="/heihe/landsurface">陆地表层数据</a></li>
<li><a href="/heihe/rs">遥感数据</a></li> <li><a href="/heihe/rs">遥感数据</a></li>
<li><a href="/heihe/water">水文水资源数据</a></li> <li><a href="/heihe/water">水文水资源数据</a></li>
@ -21,7 +22,7 @@
</ul> </ul>
</li> </li>
</ul> </ul>
<ul> <ul class="nav nav-list">
<li><a href="/heihe/document">黑河文档</a></li> <li><a href="/heihe/document">黑河文档</a></li>
<li><a href="/heihe/list">数据列表</a></li> <li><a href="/heihe/list">数据列表</a></li>
<li><a href="/heihe/browse">整体浏览</a></li> <li><a href="/heihe/browse">整体浏览</a></li>
@ -37,7 +38,7 @@
<li class="bigtitle text-shadow"><a href="/heihe/projects">数据汇交计划</a></li> <li class="bigtitle text-shadow"><a href="/heihe/projects">数据汇交计划</a></li>
</ul> </ul>
<form id="search" enctype="application/x-www-form-urlencoded" action="/heihe/search" method="post"> <form id="search" enctype="application/x-www-form-urlencoded" action="/heihe/search" method="post">
<input type="text" name="q" id="q" value="<?php echo (empty($this->key))?'回车搜索标题和摘要':$this->key; ?>" onfocus="myfocus(this);" onblur="myblur(this);"> <input type="text" name="q" id="q" value="<?php echo (empty($this->key))?'回车搜索标题和摘要':$this->key; ?>" onfocus="myfocus(this);" onblur="myblur(this);" style="width:100%;">
<input type="hidden" name="submit" value="submit"> <input type="hidden" name="submit" value="submit">
</form> </form>
<script> <script>

View File

@ -3,54 +3,273 @@
$this->headTitle($this->config->title->data); $this->headTitle($this->config->title->data);
$this->headTitle($this->metadata->title); $this->headTitle($this->metadata->title);
$this->headTitle()->setSeparator(' - '); $this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/water.css');
$this->headLink()->appendStylesheet('/css/heihemdview.css');
$this->breadcrumb('<a href="/">首页</a>'); $this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>'); $this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
$this->breadcrumb('<a href="/heihe/">'.$this->config->title->heihe.'</a>'); $this->breadcrumb('<a href="/heihe/">'.$this->config->title->heihe.'</a>');
$this->breadcrumb('查看元数据'); $this->breadcrumb('查看元数据');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
$this->theme->AppendPlus($this,'google_map_v3'); $this->theme->AppendPlus($this,'google_map_v3');
$this->theme->AppendPlus($this,'jquery');
$this->theme->AppendPlus($this,'colorbox'); $this->theme->AppendPlus($this,'colorbox');
$this->headScript()->appendFile('/js/jquery.idTabs.min.js');
?> ?>
<div id='sidebar'>
<div id='leftnavi'>
<?= $this->partial('heihe/navi.phtml'); ?>
</div>
</div>
<div id="right">
<?php $md=$this->metadata;if ($md):?> <?php $md=$this->metadata;if ($md):?>
<div class="clear">&nbsp;</div>
<h1><?php echo $this->escape($md->title); <h1><?php echo $this->escape($md->title);
if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?> if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
</h1> </h1>
<div id="rightbar"> <hr />
<div id="ItemSummary"> <div class="row">
<div id="category"> <div class="span2">
<ul><?php foreach($this->category as $cat): ?> <?= $this->partial('heihe/navi.phtml'); ?>
<li><a href="/heihe/category/code/<?php echo $cat->code;?>"><?php echo $this->escape($cat->name_zh);?></a></li> </div>
<div class="span6">
<div>
<a class="colorbox pull-right" title="<?php echo $md->title; ?>" href="/service/bigthumb/uuid/<?php echo $md->uuid; ?>"><img src="/service/thumb/uuid/<?php echo $md->uuid;?>"/></a>
<p>
<?php echo str_replace(array("\r\n", "\n", "\r"),'</p><p>',$md->description);?>
</p>
</div>
<hr />
<div>
<?php if ($md->citation) : ?>
<hr />
<h5>本数据引用方式</h5>
<p><?php echo $this->escape($md->citation);?></p>
<?php endif; ?>
<?php if ($this->ref) : ?>
<hr />
<h5>建议参考文献</h5>
<ol>
<?php foreach($this->ref as $ref) :
if (empty($ref->link))
echo '<li style="white-space:normal; word-break:break-all;overflow:hidden;">'.$ref->reference.'</li>';
else
echo '<li style="white-space:normal; word-break:break-all;overflow:hidden;">'.$ref->reference.' <a href="'.$ref->link.'">下载</a></li>';
endforeach;
?>
</ol>
<?php endif; ?>
<?php if ($this->userref) : ?>
<hr />
<h5>数据用户发表文献</h5>
<ol>
<?php foreach($this->userref as $ref) :
if (empty($ref->link))
echo '<li>'.$ref->reference.'</li>';
else
echo '<li>'.$ref->reference.' <a href="'.$ref->link.'">下载</a></li>';
endforeach;
?>
</ol>
<?php endif; ?>
<hr />
<h5>数据使用声明</h5>
<?php
if ($this->uselimits) :
foreach($this->uselimits as $uselimit) :
echo '<p>'.str_replace(array("\r\n", "\n", "\r"),'</p><p>',$this->escape($uselimit->uselimit)).'</p>';
endforeach;
?>
<?php else : ?>
<p>为尊重知识产权、保障数据作者的权益、扩展数据中心的服务、评估数据的应用潜力,请数据使用者在使用数据所产生的研究成果中(包括公开发表的论文、论著、数据产品和未公开发表的研究报告、数据产品等成果),明确注明数据来源和数据作者。对于转载(二次或多次发布)的数据,作者还须注明原始数据来源。</p>
<p>中文发表的成果参考以下规范注明: 数据来源于国家自然科学基金委员会"中国西部环境与生态科学数据中心"(http://westdc.westgis.ac.cn)</p>
<p>英文发表的成果依据以下规范注明: The data set is provided by Environmental and Ecological Science Data Center for West China,National Natural Science Foundation of China (http://westdc.westgis.ac.cn)</p>
</p>
<?php endif; ?>
<?php if($this->data_archives){ ?>
<h5>相关数据新闻</h5>
<ul>
<?php
foreach($this->data_archives as $v){?>
<li><a href="<?= $v['url']['archive_url']?>"><?= $v['title']?></a></li>
<?php } ?>
</ul>
<hr />
<?php }?>
<?php if ($md->suppinfo) : ?>
<h5>项目支持信息</h5>
<?php echo '<p>'.str_replace(array("\r\n", "\n", "\r"),'</p><p>',$this->escape($md->suppinfo)).'</p>';?>
<hr />
<?php endif; ?>
<?php if ($this->resources) : ?>
<h5>其他在线资源</h5>
<ul><?php foreach($this->resources as $link) : ?>
<li><a href="<?php echo $link->linkage; ?>" title="<?php echo $link->description; ?>">
<?php
if (!empty($link->name))
echo $link->name;
elseif (!empty($link->description))
echo $link->description;
else
echo $link->linkage;
?></a></li>
<?php endforeach; ?> <?php endforeach; ?>
</ul> </ul>
<hr />
<?php endif; ?>
</div>
<div>
<?php
$keywords = array();
foreach($this->keys as $cg){
if($cg['keytype']=="theme")
$keywords[]=$cg['keyword'];
}
$ev = join(" ",$keywords);
?>
<div class="tabbable"> <!-- Only required for left/right tabs -->
<ul class="nav nav-tabs">
<li class="active"><a href="#related" data-toggle="tab" id="related_t">相关数据</a></li>
<li><a href="#literature" data-toggle="tab" id="literature_t">相关文献</a></li>
<li><a href="#gsearch" data-toggle="tab">相关搜索</a></li>
<li><a href="#service" data-toggle="tab">服务记录</a></li>
<li><a href="#recommend" data-toggle="tab" id="recommend_t">给我推荐</a></li>
</ul>
<div class="tab-content">
<div id="related" class="tab-pane active">
</div>
<div id="literature" class="tab-pane">
</div>
<div id="gsearch" class="tab-pane">
<ul id="searchctrl" class="unstyled span2">
<li><a href="javascript:;" class="googlesearch">Google搜索</a></li>
<li><a href="javascript:;" class="bingsearch">BING搜索</a></li>
<li><a href="javascript:;" class="scholar">Google学术搜索</a></li>
<li><a href="javascript:;" class="cnkiSearch">CNKI学术搜索</a></li>
</ul>
<ul id="searchlist" class="unstyled span6 well well-small">
</ul>
</div>
<div id="service" class="tab-pane">
<?php if ($this->downhistory) : ?>
<p>最近10条服务记录如下</p>
<ol start="1">
<?php
foreach($this->downhistory as $v){
echo '<li>'.date("Y-m-d",strtotime($v->ts_created))." ".$v->unit." ".$v->realname;
if (!empty($v->offlineproject))
echo ' 用途:'.$v->offlineproject;
elseif (!empty($v->onlineproject))
echo ' 用途:'.$v->onlineproject;
echo '</li>';
}
?>
</ol>
<?php else : ?>
暂时没有服务记录,欢迎您下载使用!
<?php endif; ?>
</div>
<div id="recommend" class="tab-pane">
</div>
</div>
</div>
<hr />
<div id="comments">
<?php if ($md->status>0 and $md->status<5) : ?>
<p class="strong">此数据还在评审过程中,我们真切地邀请您参加此数据的评审,以便我们能尽快发布此数据!<a href="/review/review/uuid/<?php echo $md->uuid; ?>"><img src="/images/review.png" title="此数据正在评审中,我们邀请您对此数据进行评审,以便其能尽快发布!" /></a></p>
<?php else : ?>
<h4>数据评论</h4>
<div id="allcomments">
<div id="loading"><img src="/images/loading.gif" />评论加载中</div>
</div> </div>
<?php <?php
$kt=''; $auth = Zend_Auth::getInstance();
$i=0; if($auth->hasIdentity())
foreach($this->keys as $cg) : {
if ($kt==$cg->keytype) : $user = $auth->getIdentity();
$i+=1; $name = $user->realname;
else : $email = $user->email;
if (!empty($kt)) echo '</ul></div>'; }else
$kt=$cg->keytype; {
$i=0; $name = "";
endif; $email = "";
if ($i==0) echo '<div id="'.$cg->keytype.'"><ul>'; }
echo '<li><a href="/heihe/tag/key/'.urlencode($cg->keyword).'">'.$cg->keyword.'</a></li>';
endforeach;
echo '</ul></div>';
?> ?>
<form class="form-horizontal" id="postcommentform">
<div class="control-group">
<label class="control-label">姓名</label>
<div class="controls">
<input type="text" name="author" value="<?php echo $name;?>" />
</div>
</div>
<div class="control-group">
<label class="control-label">Email</label>
<div class="controls">
<input type="text" name="email" value="<?php echo $email;?>" />
</div>
</div>
<div class="control-group">
<label class="control-label">Website</label>
<div class="controls">
<input type="text" name="url" value="" /> <span class="help-block">e.g. http://westdc.westgis.ac.cn/</span>
</div>
</div>
<div class="control-group">
<label class="control-label">内容</label>
<div class="controls">
<textarea name="content" class="span5"></textarea>
</div>
</div>
<div class="control-group">
<label class="control-label">验证码</label>
<div class="controls">
<img id="imgcode" style="margin-bottom:-10px;cursor:pointer;border:0px;" src="/service/imgcode/" onClick="this.src=this.src+'?'"><input type="text" name="vdcode" id="vdcode" maxlength="4" value="" />
</div>
</div>
<div class="control-group">
<div class="controls">
<input type="hidden" name="mdtitle" value="<?php echo $md->title;?>" />
<input type="hidden" name="uuid" value="<?php echo $md->uuid;?>" />
<a class="btn btn-primary" id="postcomment" href="javascript:;" onclick="postcomment();">提交</a><button type="reset" id="reset" class="btn">重置</button><span id="returninfo"></span>
</div>
</div>
</form>
<div id="infobox"></div>
<?php endif; ?>
</div>
</div>
</div>
<div class="span4">
<div>
<table class="table table-striped">
<thead>
</thead>
<tbody>
<tr>
<td>类别</td>
<td>
<ul class="nav nav-pills inline unstyled">
<?php foreach($this->category as $cat): ?>
<li><a href="/data/category/code/<?php echo $cat->code;?>"><?php echo $this->escape($cat->name_zh);?></a></li>
<?php endforeach; ?>
</ul>
</td>
</tr>
<?php
foreach($this->keys as $k=>$v)
{
if($v['keytype'] == "category"){ $title = "类别";
}else if($v['keytype'] == "discipline"){$title = "学科";
}else if($v['keytype'] == "place"){$title = "地点";
}else if($v['keytype'] == "theme"){ $title = "主题";
}
$keys[$title][] = $v['keyword'];
}
?>
<?php foreach($keys as $k=>$v) { ?>
<tr>
<td><?= $k ?></td>
<td>
<ul class="nav nav-pills inline unstyled">
<?php foreach($v as $keys) { ?>
<li><a href="/data/tag/key/"><?= $keys ?></a></li>
<?php } ?>
</ul>
</td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
<!-- <!--
<?php if ($this->series): ?> <?php if ($this->series): ?>
<div id="series"> <div id="series">
@ -61,7 +280,10 @@ echo '</ul></div>';
</div> </div>
<?php endif; ?> <?php endif; ?>
--> -->
<ul id=OtherInfo> <div>
<hr />
<h4>数据信息</h4>
<ul class="unstyled">
<?php if ($md->fileformat) : ?> <?php if ($md->fileformat) : ?>
<li id="fileformat">格式:<?php echo $md->fileformat; ?></li> <li id="fileformat">格式:<?php echo $md->fileformat; ?></li>
<?php endif; ?> <?php endif; ?>
@ -69,7 +291,7 @@ echo '</ul></div>';
<?php if ($this->downloaded>9) :?> <?php if ($this->downloaded>9) :?>
<li id="downtimes">下载:<?php echo $this->downloaded; ?></li> <li id="downtimes">下载:<?php echo $this->downloaded; ?></li>
<?php endif; ?> <?php endif; ?>
<li id="viewtimes">浏览<?php echo $this->viewed; ?></li> <li id="viewtimes">浏览:<?php echo $this->viewed; ?></li>
<!-- <!--
<?php if ($md->projection) : ?> <?php if ($md->projection) : ?>
<li id="projection" title="<?= $this->projection; ?>">数据投影: <li id="projection" title="<?= $this->projection; ?>">数据投影:
@ -89,11 +311,19 @@ else
<?php if (!empty($md->timebegin)) : ?> <?php if (!empty($md->timebegin)) : ?>
<li id="datatimes">数据时间范围:<?php echo date('Y-m-d',strtotime($md->timebegin));if (!empty($md->timeend)) echo " 至 ".date('Y-m-d',strtotime($md->timeend)); ?></li> <li id="datatimes">数据时间范围:<?php echo date('Y-m-d',strtotime($md->timebegin));if (!empty($md->timeend)) echo " 至 ".date('Y-m-d',strtotime($md->timeend)); ?></li>
<?php endif; ?> <?php endif; ?>
<?php if (!empty($this->doc)) : ?>
<li id="datadoc"><a href="<?php $wikiTitle = $this->doc;
if(strpos($wikiTitle,'http://wiki.westgis.ac.cn/index.php/')!==false){
$title=str_replace('http://wiki.westgis.ac.cn/index.php/','',$wikiTitle);
echo "/data/wiki/$title";
}else{
echo $this->doc;
}?>">数据说明文档</a></li>
<?php endif; ?>
<?php if ($this->attachments) : ?> <?php if ($this->attachments) : ?>
<li>相关文档: <li id="attach"><span>相关文档:</span>
<?php foreach ($this->attachments as $k=>$a) : ?> <?php foreach ($this->attachments as $k=>$a) : ?>
<a href="/service/attach/id/<?php echo $a->id; ?>" title="<?php echo $a->realname; ?>"><?php echo ($k+1); ?></a> <a href="/service/attach/id/<?php echo $a->id; ?>" title="<?php echo $a->realname; ?>"><img src="/images/document.png"></a>
<?php endforeach; ?> <?php endforeach; ?>
<a href="/service/attach/zip/<?php echo $md->uuid; ?>"><img src="/images/zip_icon.gif" title="打包下载"/></a> <a href="/service/attach/zip/<?php echo $md->uuid; ?>"><img src="/images/zip_icon.gif" title="打包下载"/></a>
</li> </li>
@ -104,7 +334,7 @@ else
<?php if ($md->status>0 and $md->status<5) : ?> <?php if ($md->status>0 and $md->status<5) : ?>
<a href="/review/review/uuid/<?php echo $md->uuid; ?>"><img src="/images/review.png" title="此数据正在评审中,我们邀请您对此数据进行评审,以便其能尽快发布!" /></a> <a href="/review/review/uuid/<?php echo $md->uuid; ?>"><img src="/images/review.png" title="此数据正在评审中,我们邀请您对此数据进行评审,以便其能尽快发布!" /></a>
<?php else : if (!$md->datatype) : ?> <?php else : if (!$md->datatype) : ?>
<a href="javascript:todownload(1);"><img src="/images/download.png" title="直接下载" /></a> <a href="/data/todownload/?uuid=<?= $md->uuid?>"><img src="/images/download.png" title="直接下载" /></a>
<?php else: ?> <?php else: ?>
<a href="/data/order/uuid/<?php echo $md->uuid; ?>"><img src="/images/order.png" title="免费!离线申请此数据(在线数据和离线数据都可申请)"/></a> <a href="/data/order/uuid/<?php echo $md->uuid; ?>"><img src="/images/order.png" title="免费!离线申请此数据(在线数据和离线数据都可申请)"/></a>
<?php endif;endif; ?> <?php endif;endif; ?>
@ -112,12 +342,12 @@ else
</div> </div>
<hr /> <hr />
<h2>空间位置</h2> <h4>空间位置</h4>
<div id='watermap'></div> <div id='watermap' style="width:100%;height:300px;"></div>
<hr /> <hr />
<h2>联系信息</h2> <h4>联系信息</h4>
<div id="authors"> <div id="authors">
<ul> <ul class="unstyled">
<?php <?php
$party_zh=array('resourceProvider'=>'资源提供者','custodian'=>'维护者','owner'=>'拥有者','user'=>'用户','distributor'=>'数据服务联系人','originator'=>'创建者','pointOfContact'=>'联系人','principalInvestigator'=>'数据调查与处理者','processor'=>'处理者','publisher'=>'元数据发布者','author'=>'元数据作者'); $party_zh=array('resourceProvider'=>'资源提供者','custodian'=>'维护者','owner'=>'拥有者','user'=>'用户','distributor'=>'数据服务联系人','originator'=>'创建者','pointOfContact'=>'联系人','principalInvestigator'=>'数据调查与处理者','processor'=>'处理者','publisher'=>'元数据发布者','author'=>'元数据作者');
$r=''; $r='';
@ -146,18 +376,18 @@ endforeach;
?> ?>
</ul> </ul>
<hr /> <hr />
<ul> <ul class="unstyled">
<li>元数据更新时间:<?php print date('Y-m-d',strtotime($md->ts_created)); ?></li> <li>元数据更新时间:<?php print date('Y-m-d',strtotime($md->ts_created)); ?> <a href="/service/xml/uuid/<?php echo $md->uuid;?>"><img src="/images/xml.gif" alt="查看XML源文件"></a><a href="/service/doc/uuid/<?php echo $md->uuid; ?>"><img src="/images/doc-icon.png" alt="Word doc格式"></a></li>
<li> <!--<li><a href="/data/detail/id/<?php echo $md->id;?>">详细元数据</a></li>-->
<a href="/service/pdf/uuid/<?php echo $md->uuid; ?>"><img src="/images/pdf_icon.gif" alt="Adobe PDF格式" title="Adobe PDF格式"></a> <?php if($this->version->c>0):?>
<a href="/service/odt/uuid/<?php echo $md->uuid; ?>"><img src="/images/odt_icon.gif" alt="OpenOffice odt格式" title="OpenOffice odt格式"></a> <li id="dataversion">版本历史:<a href="javascript:void(0);" onclick="dataVersion()" title=""><?= $this->version->c ?><img src="/images/list_extensions.gif" style="vertical-align:middle" /></a></li>
<a href="/service/doc/uuid/<?php echo $md->uuid; ?>"><img src="/images/doc_icon.gif" alt="Word doc格式" title="Word doc格式"></a> <?php endif;?>
<a href="/service/xml/uuid/<?php echo $md->uuid;?>"><img src="/images/xml_icon.gif" alt="查看XML源文件" title="查看XML源文件"></a>
</li>
</ul> </ul>
</div> </div>
<hr />
<div class="pull-left">分享到</div>
<!-- JiaThis Button BEGIN --> <!-- JiaThis Button BEGIN -->
<div class="jiathis_style" style="padding-left:12px;"> <div class="jiathis_style" style="margin-left:10px;">
<a class="jiathis_button_tsina"></a> <a class="jiathis_button_tsina"></a>
<a class="jiathis_button_linkedin"></a> <a class="jiathis_button_linkedin"></a>
<a class="jiathis_button_googleplus"></a> <a class="jiathis_button_googleplus"></a>
@ -172,179 +402,13 @@ endforeach;
</div> </div>
<!-- JiaThis Button END --> <!-- JiaThis Button END -->
</div> </div>
<div id="left"> </div>
<div id="ImageViewer"><a class="colorbox" title="<?php echo $md->title; ?>" href="/service/bigthumb/uuid/<?php echo $md->uuid; ?>"><img src="/service/thumb/uuid/<?php echo $md->uuid;?>" /></a> </div>
<div id="abstract">
<p>
<?php echo str_replace(array("\r\n", "\n", "\r"),'</p><p>',$md->description);?>
</p>
</div> </div>
<div id="cite">
<hr />
<?php if ($md->citation) : ?>
<h2>本数据引用方式</h2>
<p><?php echo $this->escape($md->citation);?></p>
<?php endif; ?>
<?php if ($this->ref) : ?>
<h2>建议参考文献</h2>
<ol>
<?php foreach($this->ref as $ref) :
if (empty($ref->link))
echo '<li>'.$ref->reference.'</li>';
else
echo '<li>'.$ref->reference.' <a href="'.$ref->link.'">下载</a></li>';
endforeach;
?>
</ol>
<?php endif; ?>
<h2>数据使用声明</h2>
<?php
if ($this->uselimits) :
foreach($this->uselimits as $uselimit) :
echo '<p>'.str_replace(array("\r\n", "\n", "\r"),'</p><p>',$this->escape($uselimit->uselimit)).'</p>';
endforeach;
?>
<?php else : ?>
<p>为尊重知识产权、保障数据作者的权益、扩展数据中心的服务、评估数据的应用潜力,请数据使用者在使用数据所产生的研究成果中(包括公开发表的论文、论著、数据产品和未公开发表的研究报告、数据产品等成果),明确注明数据来源和数据作者。对于转载(二次或多次发布)的数据,作者还须注明原始数据来源。</p>
<p>中文发表的成果参考以下规范注明: 数据来源于国家自然科学基金委员会"中国西部环境与生态科学数据中心"(http://westdc.westgis.ac.cn)</p>
<p>英文发表的成果依据以下规范注明: The data set is provided by Environmental and Ecological Science Data Center for West China,National Natural Science Foundation of China (http://westdc.westgis.ac.cn)</p>
</p>
<?php endif; ?>
<?php if ($md->suppinfo) : ?>
<h2>项目支持信息</h2>
<?php echo '<p>'.str_replace(array("\r\n", "\n", "\r"),'</p><p>',$this->escape($md->suppinfo)).'</p>';?>
<?php endif; ?>
<?php if($this->data_archives){ ?>
<h2>相关数据新闻</h2>
<?php
foreach($this->data_archives as $v){?>
<p><a href="<?= $v['url']['archive_url']?>"><?= $v['title']?></a></p>
<?php } ?>
<?php }?>
<?php if ($this->resources) : ?>
<h2>其他在线资源</h2>
<ul><?php foreach($this->resources as $link) : ?>
<li><a href="<?php echo $link->linkage; ?>" title="<?php echo $this->escape($link->description); ?>">
<?php
if (!empty($link->name))
echo $this->escape($link->name);
elseif (!empty($link->description))
echo $this->escape($link->description);
else
echo $link->linkage;
?></a></li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
</div>
<?php
$keywords = array();
foreach($this->keys as $cg){
if($cg->keytype=="theme")
$keywords[]=$cg->keyword;
}
$ev = join(" ",$keywords);
?>
<ul class="idTabs">
<li><a href="#related" id="related_t">相关数据</a></li>
<li><a href="#literature" id="literature_t">相关文献</a></li>
<li><a href="#gsearch" class="googlesearch">相关搜索</a></li>
<li><a href="#service">服务记录</a></li>
<li><a href="#recommend" id="recommend_t">给我推荐</a></li>
</ul>
<div id="related">
</div>
<div id="literature">
</div>
<div id="gsearch">
<ul id="searchctrl">
<li><a href="javascript:;" class="googlesearch">Google搜索</a></li>
<li><a href="javascript:;" class="bingsearch">BING搜索</a></li>
<li><a href="javascript:;" class="scholar">Google学术搜索</a></li>
<li><a href="javascript:;" class="cnkiSearch">CNKI学术搜索</a></li>
</ul>
<ul id="searchlist">
</ul>
</div>
<div id="service">
<?php if ($this->downhistory) : ?>
<p>最近10条服务记录如下</p>
<ol start="1">
<?php
foreach($this->downhistory as $v){
echo '<li>'.date("Y-m-d",strtotime($v->ts_created))." ".$v->unit." ".$v->realname;
if (!empty($v->offlineproject))
echo ' 用途:'.$v->offlineproject;
elseif (!empty($v->onlineproject))
echo ' 用途:'.$v->onlineproject;
echo '</li>';
}
?>
</ol>
<?php else : ?>
暂时没有服务记录,欢迎您下载使用!
<?php endif; ?>
</div>
<div id="recommend">
</div>
<div id="comments">
<hr />
<?php if ($md->status>0 and $md->status<5) : ?>
<p class="strong">此数据还在评审过程中,我们真切地邀请您参加此数据的评审,以便我们能尽快发布此数据!<a href="/review/review/uuid/<?php echo $md->uuid; ?>"><img src="/images/review.png" title="此数据正在评审中,我们邀请您对此数据进行评审,以便其能尽快发布!" /></a></p>
<?php else : ?>
<h2>数据评论</h2>
<div id="allcomments">
</div>
<?php
$auth = Zend_Auth::getInstance();
if($auth->hasIdentity())
{
$user = $auth->getIdentity();
$name = $user->realname;
$email = $user->email;
}else
{
$name = "";
$email = "";
}
?>
<form id="postcommentform">
<p>
<label class="required" style="background:none;">姓名</label>
<input type="text" name="author" value="<?php echo $name;?>" />
</p>
<p>
<label class="required" style="background:none;">EMAIL</label>
<input type="text" name="email" value="<?php echo $email;?>" />
</p>
<p>
<label>WEBSITE</label>
<input type="text" name="url" value="" /> <small>e.g. http://westdc.westgis.ac.cn/</small>
</p>
<p>
<label class="required" style="background:none;">内容</label>
<textarea name="content" class="medium half"></textarea>
</p>
<p>
<label class="required">验证码</label>
<img id="imgcode" style="margin-bottom:-10px;cursor:pointer;border:0px;" src="/service/imgcode/" onClick="this.src=this.src+'?'"><input type="text" name="vdcode" id="vdcode" maxlength="4" value="" />
</p>
<p>
<label> </label>
<input type="hidden" name="mdtitle" value="<?php echo $md->title;?>" />
<input type="hidden" name="uuid" value="<?php echo $md->uuid;?>" />
<a class="btn btn-green" id="postcomment" href="javascript:;" onclick="postcomment();">提交</a><button type="reset" id="reset" class="btn">重置</button><span id="returninfo"></span>
</p>
</form>
<?php endif; ?>
</div>
<div id="window-outter" style="display:none;"> <div id="window-outter" style="display:none;">
<div id="window-inner"> <div id="window-inner">
<div id="window-content-container"> <div id="window-content-container">
<div id="window-loading"><img src="/images/loading.gif" />加载中...</div> <div id="window-loading">加载中...</div>
<ol id="file-list"> <ol id="file-list">
</ol> </ol>
</div> </div>

View File

@ -3,48 +3,272 @@
$this->headTitle($this->config->title->data); $this->headTitle($this->config->title->data);
$this->headTitle($this->metadata->title); $this->headTitle($this->metadata->title);
$this->headTitle()->setSeparator(' - '); $this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/js/theme/default/style.css');
$this->headLink()->appendStylesheet('/css/watermdview.css');
$this->breadcrumb('<a href="/">首页</a>'); $this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>'); $this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
$this->breadcrumb('<a href="/water/">黑河综合遥感联合试验</a>'); $this->breadcrumb('<a href="/water/">黑河综合遥感联合试验</a>');
$this->breadcrumb('查看试验元数据'); $this->breadcrumb('查看试验元数据');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
$this->theme->AppendPlus($this,'google_map_v3'); $this->theme->AppendPlus($this,'google_map_v3');
$this->theme->AppendPlus($this,'jquery');
$this->theme->AppendPlus($this,'colorbox'); $this->theme->AppendPlus($this,'colorbox');
$this->headScript()->appendFile('/js/jquery.idTabs.min.js');
?> ?>
<?php $md=$this->metadata;if ($md):?> <?php $md=$this->metadata;if ($md):?>
<h1><?php echo $this->escape($md->title); <h1><?php echo $this->escape($md->title);
if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?> if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
</h1> </h1>
<div id="right"> <hr />
<div class="row">
<div id="ItemSummary"> <div class="span8">
<div id="category"> <div>
<ul><?php foreach($this->category as $cat): ?> <a class="colorbox pull-right" title="<?php echo $md->title; ?>" href="/service/bigthumb/uuid/<?php echo $md->uuid; ?>"><img src="/service/thumb/uuid/<?php echo $md->uuid;?>"/></a>
<li><a href="/heihe/category/code/<?php echo $cat->code;?>"><?php echo $this->escape($cat->name_zh);?></a></li> <p>
<?php echo str_replace(array("\r\n", "\n", "\r"),'</p><p>',$md->description);?>
</p>
</div>
<hr />
<div>
<?php if ($md->citation) : ?>
<hr />
<h5>本数据引用方式</h5>
<p><?php echo $this->escape($md->citation);?></p>
<?php endif; ?>
<?php if ($this->ref) : ?>
<hr />
<h5>建议参考文献</h5>
<ol>
<?php foreach($this->ref as $ref) :
if (empty($ref->link))
echo '<li style="white-space:normal; word-break:break-all;overflow:hidden;">'.$ref->reference.'</li>';
else
echo '<li style="white-space:normal; word-break:break-all;overflow:hidden;">'.$ref->reference.' <a href="'.$ref->link.'">下载</a></li>';
endforeach;
?>
</ol>
<?php endif; ?>
<?php if ($this->userref) : ?>
<hr />
<h5>数据用户发表文献</h5>
<ol>
<?php foreach($this->userref as $ref) :
if (empty($ref->link))
echo '<li>'.$ref->reference.'</li>';
else
echo '<li>'.$ref->reference.' <a href="'.$ref->link.'">下载</a></li>';
endforeach;
?>
</ol>
<?php endif; ?>
<hr />
<h5>数据使用声明</h5>
<?php
if ($this->uselimits) :
foreach($this->uselimits as $uselimit) :
echo '<p>'.str_replace(array("\r\n", "\n", "\r"),'</p><p>',$this->escape($uselimit->uselimit)).'</p>';
endforeach;
?>
<?php else : ?>
<p>为尊重知识产权、保障数据作者的权益、扩展数据中心的服务、评估数据的应用潜力,请数据使用者在使用数据所产生的研究成果中(包括公开发表的论文、论著、数据产品和未公开发表的研究报告、数据产品等成果),明确注明数据来源和数据作者。对于转载(二次或多次发布)的数据,作者还须注明原始数据来源。</p>
<p>中文发表的成果参考以下规范注明: 数据来源于国家自然科学基金委员会"中国西部环境与生态科学数据中心"(http://westdc.westgis.ac.cn)</p>
<p>英文发表的成果依据以下规范注明: The data set is provided by Environmental and Ecological Science Data Center for West China,National Natural Science Foundation of China (http://westdc.westgis.ac.cn)</p>
</p>
<?php endif; ?>
<?php if($this->data_archives){ ?>
<h5>相关数据新闻</h5>
<ul>
<?php
foreach($this->data_archives as $v){?>
<li><a href="<?= $v['url']['archive_url']?>"><?= $v['title']?></a></li>
<?php } ?>
</ul>
<hr />
<?php }?>
<?php if ($md->suppinfo) : ?>
<h5>项目支持信息</h5>
<?php echo '<p>'.str_replace(array("\r\n", "\n", "\r"),'</p><p>',$this->escape($md->suppinfo)).'</p>';?>
<hr />
<?php endif; ?>
<?php if ($this->resources) : ?>
<h5>其他在线资源</h5>
<ul><?php foreach($this->resources as $link) : ?>
<li><a href="<?php echo $link->linkage; ?>" title="<?php echo $link->description; ?>">
<?php
if (!empty($link->name))
echo $link->name;
elseif (!empty($link->description))
echo $link->description;
else
echo $link->linkage;
?></a></li>
<?php endforeach; ?> <?php endforeach; ?>
</ul> </ul>
<hr />
<?php endif; ?>
</div>
<div>
<?php
$keywords = array();
foreach($this->keys as $cg){
if($cg['keytype']=="theme")
$keywords[]=$cg['keyword'];
}
$ev = join(" ",$keywords);
?>
<div class="tabbable"> <!-- Only required for left/right tabs -->
<ul class="nav nav-tabs">
<li class="active"><a href="#related" data-toggle="tab" id="related_t">相关数据</a></li>
<li><a href="#literature" data-toggle="tab" id="literature_t">相关文献</a></li>
<li><a href="#gsearch" data-toggle="tab">相关搜索</a></li>
<li><a href="#service" data-toggle="tab">服务记录</a></li>
<li><a href="#recommend" data-toggle="tab" id="recommend_t">给我推荐</a></li>
</ul>
<div class="tab-content">
<div id="related" class="tab-pane active">
</div>
<div id="literature" class="tab-pane">
</div>
<div id="gsearch" class="tab-pane">
<ul id="searchctrl" class="unstyled span2">
<li><a href="javascript:;" class="googlesearch">Google搜索</a></li>
<li><a href="javascript:;" class="bingsearch">BING搜索</a></li>
<li><a href="javascript:;" class="scholar">Google学术搜索</a></li>
<li><a href="javascript:;" class="cnkiSearch">CNKI学术搜索</a></li>
</ul>
<ul id="searchlist" class="unstyled span6 well well-small">
</ul>
</div>
<div id="service" class="tab-pane">
<?php if ($this->downhistory) : ?>
<p>最近10条服务记录如下</p>
<ol start="1">
<?php
foreach($this->downhistory as $v){
echo '<li>'.date("Y-m-d",strtotime($v->ts_created))." ".$v->unit." ".$v->realname;
if (!empty($v->offlineproject))
echo ' 用途:'.$v->offlineproject;
elseif (!empty($v->onlineproject))
echo ' 用途:'.$v->onlineproject;
echo '</li>';
}
?>
</ol>
<?php else : ?>
暂时没有服务记录,欢迎您下载使用!
<?php endif; ?>
</div>
<div id="recommend" class="tab-pane">
</div>
</div>
</div>
<hr />
<div id="comments">
<?php if ($md->status>0 and $md->status<5) : ?>
<p class="strong">此数据还在评审过程中,我们真切地邀请您参加此数据的评审,以便我们能尽快发布此数据!<a href="/review/review/uuid/<?php echo $md->uuid; ?>"><img src="/images/review.png" title="此数据正在评审中,我们邀请您对此数据进行评审,以便其能尽快发布!" /></a></p>
<?php else : ?>
<h4>数据评论</h4>
<div id="allcomments">
<div id="loading"><img src="/images/loading.gif" />评论加载中</div>
</div> </div>
<?php <?php
$kt=''; $auth = Zend_Auth::getInstance();
$i=0; if($auth->hasIdentity())
foreach($this->keys as $cg) : {
if ($kt==$cg->keytype) : $user = $auth->getIdentity();
$i+=1; $name = $user->realname;
else : $email = $user->email;
if (!empty($kt)) echo '</ul></div>'; }else
$kt=$cg->keytype; {
$i=0; $name = "";
endif; $email = "";
if ($i==0) echo '<div id="'.$cg->keytype.'"><ul>'; }
echo '<li><a href="/heihe/tag/key/'.urlencode($cg->keyword).'">'.$cg->keyword.'</a></li>';
endforeach;
echo '</ul></div>';
?> ?>
<form class="form-horizontal" id="postcommentform">
<div class="control-group">
<label class="control-label">姓名</label>
<div class="controls">
<input type="text" name="author" value="<?php echo $name;?>" />
</div>
</div>
<div class="control-group">
<label class="control-label">Email</label>
<div class="controls">
<input type="text" name="email" value="<?php echo $email;?>" />
</div>
</div>
<div class="control-group">
<label class="control-label">Website</label>
<div class="controls">
<input type="text" name="url" value="" /> <span class="help-block">e.g. http://westdc.westgis.ac.cn/</span>
</div>
</div>
<div class="control-group">
<label class="control-label">内容</label>
<div class="controls">
<textarea name="content" class="span5"></textarea>
</div>
</div>
<div class="control-group">
<label class="control-label">验证码</label>
<div class="controls">
<img id="imgcode" style="margin-bottom:-10px;cursor:pointer;border:0px;" src="/service/imgcode/" onClick="this.src=this.src+'?'"><input type="text" name="vdcode" id="vdcode" maxlength="4" value="" />
</div>
</div>
<div class="control-group">
<div class="controls">
<input type="hidden" name="mdtitle" value="<?php echo $md->title;?>" />
<input type="hidden" name="uuid" value="<?php echo $md->uuid;?>" />
<a class="btn btn-primary" id="postcomment" href="javascript:;" onclick="postcomment();">提交</a><button type="reset" id="reset" class="btn">重置</button><span id="returninfo"></span>
</div>
</div>
</form>
<div id="infobox"></div>
<?php endif; ?>
</div>
</div>
</div>
<div class="span4">
<div>
<table class="table table-striped">
<thead>
</thead>
<tbody>
<tr>
<td>类别</td>
<td>
<ul class="nav nav-pills inline unstyled">
<?php foreach($this->category as $cat): ?>
<li><a href="/data/category/code/<?php echo $cat->code;?>"><?php echo $this->escape($cat->name_zh);?></a></li>
<?php endforeach; ?>
</ul>
</td>
</tr>
<?php
foreach($this->keys as $k=>$v)
{
if($v['keytype'] == "category"){ $title = "类别";
}else if($v['keytype'] == "discipline"){$title = "学科";
}else if($v['keytype'] == "place"){$title = "地点";
}else if($v['keytype'] == "theme"){ $title = "主题";
}
$keys[$title][] = $v['keyword'];
}
?>
<?php foreach($keys as $k=>$v) { ?>
<tr>
<td><?= $k ?></td>
<td>
<ul class="nav nav-pills inline unstyled">
<?php foreach($v as $keys) { ?>
<li><a href="/data/tag/key/"><?= $keys ?></a></li>
<?php } ?>
</ul>
</td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
<!-- <!--
<?php if ($this->series): ?> <?php if ($this->series): ?>
<div id="series"> <div id="series">
@ -55,7 +279,10 @@ echo '</ul></div>';
</div> </div>
<?php endif; ?> <?php endif; ?>
--> -->
<ul id=OtherInfo> <div>
<hr />
<h4>数据信息</h4>
<ul class="unstyled">
<?php if ($md->fileformat) : ?> <?php if ($md->fileformat) : ?>
<li id="fileformat">格式:<?php echo $md->fileformat; ?></li> <li id="fileformat">格式:<?php echo $md->fileformat; ?></li>
<?php endif; ?> <?php endif; ?>
@ -63,7 +290,7 @@ echo '</ul></div>';
<?php if ($this->downloaded>9) :?> <?php if ($this->downloaded>9) :?>
<li id="downtimes">下载:<?php echo $this->downloaded; ?></li> <li id="downtimes">下载:<?php echo $this->downloaded; ?></li>
<?php endif; ?> <?php endif; ?>
<li id="viewtimes">浏览<?php echo $this->viewed; ?></li> <li id="viewtimes">浏览:<?php echo $this->viewed; ?></li>
<!-- <!--
<?php if ($md->projection) : ?> <?php if ($md->projection) : ?>
<li id="projection" title="<?= $this->projection; ?>">数据投影: <li id="projection" title="<?= $this->projection; ?>">数据投影:
@ -87,31 +314,39 @@ else
<li id="datadoc"><a href="<?php $wikiTitle = $this->doc; <li id="datadoc"><a href="<?php $wikiTitle = $this->doc;
if(strpos($wikiTitle,'http://wiki.westgis.ac.cn/index.php/')!==false){ if(strpos($wikiTitle,'http://wiki.westgis.ac.cn/index.php/')!==false){
$title=str_replace('http://wiki.westgis.ac.cn/index.php/','',$wikiTitle); $title=str_replace('http://wiki.westgis.ac.cn/index.php/','',$wikiTitle);
echo "/metainfo/$title"; echo "/data/wiki/$title";
}else{ }else{
echo $this->doc; echo $this->doc;
}?>">数据说明文档</a></li> }?>">数据说明文档</a></li>
<?php endif; ?> <?php endif; ?>
<?php if ($this->attachments) : ?>
<li id="attach"><span>相关文档:</span>
<?php foreach ($this->attachments as $k=>$a) : ?>
<a href="/service/attach/id/<?php echo $a->id; ?>" title="<?php echo $a->realname; ?>"><img src="/images/document.png"></a>
<?php endforeach; ?>
<a href="/service/attach/zip/<?php echo $md->uuid; ?>"><img src="/images/zip_icon.gif" title="打包下载"/></a>
</li>
<?php endif; ?>
<li id="datatype">数据共享方式:<?php if ($md->datatype) print "离线"; else print "在线(可直接下载)";?> <a href="javascript:void(0);" id="show-list" onclick="getFileList()" title="">文件列表</a></li> <li id="datatype">数据共享方式:<?php if ($md->datatype) print "离线"; else print "在线(可直接下载)";?> <a href="javascript:void(0);" id="show-list" onclick="getFileList()" title="">文件列表</a></li>
</ul> </ul>
<div id="linkurl"> <div id="linkurl">
<?php if ($md->status>0 and $md->status<5) : ?> <?php if ($md->status>0 and $md->status<5) : ?>
<a href="/review/review/uuid/<?php echo $md->uuid; ?>"><img src="/images/review.png" title="此数据正在评审中,我们邀请您对此数据进行评审,以便其能尽快发布!" /></a> <a href="/review/review/uuid/<?php echo $md->uuid; ?>"><img src="/images/review.png" title="此数据正在评审中,我们邀请您对此数据进行评审,以便其能尽快发布!" /></a>
<?php else : if (!$md->datatype) : ?> <?php else : if (!$md->datatype) : ?>
<a href="/data/download/uuid/<?php echo $md->uuid; ?>"><img src="/images/download.png" title="直接下载" /></a> <a href="/data/todownload/?uuid=<?= $md->uuid?>"><img src="/images/download.png" title="直接下载" /></a>
<?php else: ?> <?php else: ?>
<a href="/water/order/uuid/<?php echo $md->uuid; ?>"><img src="/images/order.png" title="免费!离线申请此数据(在线数据和离线数据都可申请)"/></a> <a href="/data/order/uuid/<?php echo $md->uuid; ?>"><img src="/images/order.png" title="免费!离线申请此数据(在线数据和离线数据都可申请)"/></a>
<?php endif;endif; ?> <?php endif;endif; ?>
</div> </div>
</div> </div>
<hr /> <hr />
<h2>空间位置</h2> <h4>空间位置</h4>
<div id='watermap'></div> <div id='watermap' style="width:100%;height:300px;"></div>
<hr /> <hr />
<h2>联系信息</h2> <h4>联系信息</h4>
<div id="authors"> <div id="authors">
<ul> <ul class="unstyled">
<?php <?php
$party_zh=array('resourceProvider'=>'资源提供者','custodian'=>'维护者','owner'=>'拥有者','user'=>'用户','distributor'=>'数据服务联系人','originator'=>'创建者','pointOfContact'=>'联系人','principalInvestigator'=>'数据调查与处理者','processor'=>'处理者','publisher'=>'元数据发布者','author'=>'元数据作者'); $party_zh=array('resourceProvider'=>'资源提供者','custodian'=>'维护者','owner'=>'拥有者','user'=>'用户','distributor'=>'数据服务联系人','originator'=>'创建者','pointOfContact'=>'联系人','principalInvestigator'=>'数据调查与处理者','processor'=>'处理者','publisher'=>'元数据发布者','author'=>'元数据作者');
$r=''; $r='';
@ -140,15 +375,18 @@ endforeach;
?> ?>
</ul> </ul>
<hr /> <hr />
<ul> <ul class="unstyled">
<li>元数据更新时间:<?php print date('Y-m-d',strtotime($md->ts_created)); ?> <li>元数据更新时间:<?php print date('Y-m-d',strtotime($md->ts_created)); ?> <a href="/service/xml/uuid/<?php echo $md->uuid;?>"><img src="/images/xml.gif" alt="查看XML源文件"></a><a href="/service/doc/uuid/<?php echo $md->uuid; ?>"><img src="/images/doc-icon.png" alt="Word doc格式"></a></li>
<a href="/heihe/xml/uuid/<?php echo $md->uuid;?>"><img src="/images/xml.gif" alt="查看XML源文件"></a> <!--<li><a href="/data/detail/id/<?php echo $md->id;?>">详细元数据</a></li>-->
<a href="/data/doc/uuid/<?php echo $md->uuid; ?>"><img src="/images/doc-icon.png" alt="Word doc格式"></a> <?php if($this->version->c>0):?>
</li> <li id="dataversion">版本历史:<a href="javascript:void(0);" onclick="dataVersion()" title=""><?= $this->version->c ?><img src="/images/list_extensions.gif" style="vertical-align:middle" /></a></li>
<?php endif;?>
</ul> </ul>
</div> </div>
<hr />
<div class="pull-left">分享到</div>
<!-- JiaThis Button BEGIN --> <!-- JiaThis Button BEGIN -->
<div class="jiathis_style" style="padding-left:12px;"> <div class="jiathis_style" style="margin-left:10px;">
<a class="jiathis_button_tsina"></a> <a class="jiathis_button_tsina"></a>
<a class="jiathis_button_linkedin"></a> <a class="jiathis_button_linkedin"></a>
<a class="jiathis_button_googleplus"></a> <a class="jiathis_button_googleplus"></a>
@ -163,195 +401,11 @@ endforeach;
</div> </div>
<!-- JiaThis Button END --> <!-- JiaThis Button END -->
</div> </div>
<div id="left"> </div>
<div id="ImageViewer"><a class="colorbox" title="<?php echo $md->title; ?>" href="/service/bigthumb/uuid/<?php echo $md->uuid; ?>"><img src="/service/thumb/uuid/<?php echo $md->uuid;?>" /></a> </div>
<div id="abstract">
<p>
<?php echo str_replace(array("\r\n", "\n", "\r"),'</p><p>',$md->description);?>
</p>
</div> </div>
<div id="cite">
<hr />
<?php if ($md->citation) : ?>
<h2>本数据引用方式</h2>
<p><?php echo $this->escape($md->citation);?></p>
<?php endif; ?>
<?php if ($this->ref) : ?>
<h2>建议参考文献</h2>
<ol>
<?php foreach($this->ref as $ref) :
if (empty($ref->link))
echo '<li>'.$ref->reference.'</li>';
else
echo '<li>'.$ref->reference.' <a href="'.$ref->link.'">下载</a></li>';
endforeach;
?>
</ol>
<?php endif; ?>
<?php if ($this->userref) : ?>
<h2>数据用户发表文献</h2>
<ol>
<?php foreach($this->userref as $ref) :
if (empty($ref->link))
echo '<li>'.$ref->reference.'</li>';
else
echo '<li>'.$ref->reference.' <a href="'.$ref->link.'">下载</a></li>';
endforeach;
?>
</ol>
<?php endif; ?>
<h2>数据使用声明</h2>
<?php
if ($this->uselimits) :
foreach($this->uselimits as $uselimit) :
echo '<p>'.str_replace(array("\r\n", "\n", "\r"),'</p><p>',$this->escape($uselimit->uselimit)).'</p>';
endforeach;
?>
<?php else : ?>
<p>为尊重知识产权、保障数据作者的权益、扩展数据中心的服务、评估数据的应用潜力,请数据使用者在使用数据所产生的研究成果中(包括公开发表的论文、论著、数据产品和未公开发表的研究报告、数据产品等成果),明确注明数据来源和数据作者。对于转载(二次或多次发布)的数据,作者还须注明原始数据来源。</p>
<p>中文发表的成果参考以下规范注明: 数据来源于国家自然科学基金委员会"中国西部环境与生态科学数据中心"(http://westdc.westgis.ac.cn)</p>
<p>英文发表的成果依据以下规范注明: The data set is provided by Environmental and Ecological Science Data Center for West China,National Natural Science Foundation of China (http://westdc.westgis.ac.cn)</p>
</p>
<?php endif; ?>
<?php if ($md->suppinfo) : ?>
<h2>项目支持信息</h2>
<?php echo '<p>'.str_replace(array("\r\n", "\n", "\r"),'</p><p>',$this->escape($md->suppinfo)).'</p>';?>
<?php endif; ?>
<?php if($this->data_archives){ ?>
<h2>相关数据新闻</h2>
<?php
foreach($this->data_archives as $v){?>
<p><a href="<?= $v['url']['archive_url']?>"><?= $v['title']?></a></p>
<?php } ?>
<?php }?>
<?php if ($this->resources) : ?>
<h2>其他在线资源</h2>
<ul><?php foreach($this->resources as $link) : ?>
<li><a href="<?php echo $link->linkage; ?>" title="<?php echo $this->escape($link->description); ?>">
<?php
if (!empty($link->name))
echo $this->escape($link->name);
elseif (!empty($link->description))
echo $this->escape($link->description);
else
echo $link->linkage;
?></a></li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
</div>
<?php
$keywords = array();
foreach($this->keys as $cg){
if($cg->keytype=="theme")
$keywords[]=$cg->keyword;
}
$ev = join(" ",$keywords);
?>
<ul class="idTabs">
<li><a href="#related" id="related_t">相关数据</a></li>
<li><a href="#literature" id="literature_t">相关文献</a></li>
<li><a href="#gsearch" class="googlesearch">相关搜索</a></li>
<li><a href="#service">服务记录</a></li>
<li><a href="#recommend" id="recommend_t">给我推荐</a></li>
</ul>
<div id="related">
</div>
<div id="literature">
</div>
<div id="gsearch">
<ul id="searchctrl">
<li><a href="javascript:;" class="googlesearch">Google搜索</a></li>
<li><a href="javascript:;" class="bingsearch">BING搜索</a></li>
<li><a href="javascript:;" class="scholar">Google学术搜索</a></li>
<li><a href="javascript:;" class="cnkiSearch">CNKI学术搜索</a></li>
</ul>
<ul id="searchlist">
</ul>
</div>
<div id="service">
<?php if ($this->downhistory) : ?>
<p>最近10条服务记录如下</p>
<ol start="1">
<?php
foreach($this->downhistory as $v){
echo '<li>'.date("Y-m-d",strtotime($v->ts_created))." ".$v->unit." ".$v->realname;
if (!empty($v->offlineproject))
echo ' 用途:'.$v->offlineproject;
elseif (!empty($v->onlineproject))
echo ' 用途:'.$v->onlineproject;
echo '</li>';
}
?>
</ol>
<?php else : ?>
暂时没有服务记录,欢迎您下载使用!
<?php endif; ?>
</div>
<div id="recommend">
</div>
<hr />
<div id="comments">
<?php if ($md->status>0 and $md->status<5) : ?>
<p class="strong">此数据还在评审过程中,我们真切地邀请您参加此数据的评审,以便我们能尽快发布此数据!<a href="/review/review/uuid/<?php echo $md->uuid; ?>"><img src="/images/review.png" title="此数据正在评审中,我们邀请您对此数据进行评审,以便其能尽快发布!" /></a></p>
<?php else : ?>
<h2>数据评论</h2>
<div id="allcomments">
<div id="loading"><img src="/images/loading.gif" />评论加载中</div>
</div>
<?php
$auth = Zend_Auth::getInstance();
if($auth->hasIdentity())
{
$user = $auth->getIdentity();
$name = $user->realname;
$email = $user->email;
}else
{
$name = "";
$email = "";
}
?>
<form id="postcommentform">
<p>
<label class="required" style="background:none;">姓名</label>
<input type="text" name="author" value="<?php echo $name;?>" />
</p>
<p>
<label class="required" style="background:none;">EMAIL</label>
<input type="text" name="email" value="<?php echo $email;?>" />
</p>
<p>
<label>WEBSITE</label>
<input type="text" name="url" value="" /> <small>e.g. http://westdc.westgis.ac.cn/</small>
</p>
<p>
<label class="required" style="background:none;">内容</label>
<textarea name="content" class="medium half"></textarea>
</p>
<p>
<label class="required">验证码</label>
<img id="imgcode" style="margin-bottom:-10px;cursor:pointer;border:0px;" src="/service/imgcode/" onClick="this.src=this.src+'?'"><input type="text" name="vdcode" id="vdcode" maxlength="4" value="" />
</p>
<p>
<label> </label>
<input type="hidden" name="mdtitle" value="<?php echo $md->title;?>" />
<input type="hidden" name="uuid" value="<?php echo $md->uuid;?>" />
<a class="btn btn-green" id="postcomment" href="javascript:;" onclick="postcomment();">提交</a><button type="reset" id="reset" class="btn">重置</button><span id="returninfo"></span>
</p>
</form>
<div id="infobox"></div>
<?php endif; ?>
</div>
</div>
<div>
</div>
<div id="window-outter" style="display:none;"> <div id="window-outter" style="display:none;">
<div id="window-inner"> <div id="window-inner">
<div id="window-closer-container">[<a href="#" id="window-closer" onclick="$('#window-outter').hide()">关闭</a>]</div>
<div id="window-content-container"> <div id="window-content-container">
<div id="window-loading">加载中...</div> <div id="window-loading">加载中...</div>
<ol id="file-list"> <ol id="file-list">
@ -361,13 +415,11 @@ if($auth->hasIdentity())
</div> </div>
<div id="todownload" style="display:none;"> <div id="todownload" style="display:none;">
<div class="closeox"><a href="javascript:void(0);" onclick="$('#todownload').hide()">[关闭]</a></div> <div id="formcontent"></div>
<div id="formcontent" style="">
</div>
</div> </div>
<script type="text/javascript" charset="utf-8"> <script type="text/javascript" charset="utf-8">
$(document).ready(function(){$(".colorbox").colorbox({photo:"true"});}); $(document).ready(function(){$(".colorbox").colorbox({photo:"true"});});
//ajax comment //ajax comment
function ajaxpage(page){$.ajax({type:"GET",url:"/data/comment/uuid/<?= $md->uuid; ?>",data:'page='+page,success:function(html){$('#allcomments').html(html);}, function ajaxpage(page){$.ajax({type:"GET",url:"/data/comment/uuid/<?= $md->uuid; ?>",data:'page='+page,success:function(html){$('#allcomments').html(html);},
beforeSend:function(){$('#allcomments').html('<img src="/images/loading.gif" />加载中');}});};ajaxpage(0); beforeSend:function(){$('#allcomments').html('<img src="/images/loading.gif" />加载中');}});};ajaxpage(0);
@ -390,20 +442,10 @@ $('#recommend_t').click(function(){recommend(0);});
function recommend(page){$.ajax({type:"GET",url:"/service/recommend/uuid/<?= $md->uuid; ?>",data:'page='+page,success:function(html){$('#recommend').html('<ul>'+html+'</ul>');}, function recommend(page){$.ajax({type:"GET",url:"/service/recommend/uuid/<?= $md->uuid; ?>",data:'page='+page,success:function(html){$('#recommend').html('<ul>'+html+'</ul>');},
beforeSend:function(){$('#recommend').html('<img src="/images/loading.gif" />加载中');}});} beforeSend:function(){$('#recommend').html('<img src="/images/loading.gif" />加载中');}});}
//ajax download
function todownload(ft)
{
var url = "/data/todownload/uuid/<?php echo $md->uuid;?>/ft/"+ft;
if($('#todownloadform')) var date = $('#todownloadform').serialize();
$.ajax({
type:"GET",
url:url,
data:date,
success:function(html){$('#returninfo').html(html);},
beforeSend:function(){$('#returninfo').html('<img src="/images/11887177066.gif" />');}
});
}
//ajax comment //ajax comment
ajaxpage(0);
function ajaxpage(page){ function ajaxpage(page){
var url = "/data/comment/uuid/<?= $md->uuid; ?>"; var url = "/data/comment/uuid/<?= $md->uuid; ?>";
data='page='+page; data='page='+page;
@ -414,12 +456,30 @@ function ajaxpage(page){
success:function(html){$('#allcomments').html(html);}, success:function(html){$('#allcomments').html(html);},
beforeSend:function(){$('#allcomments').html('<img src="/images/loading.gif" />评论加载中');} beforeSend:function(){$('#allcomments').html('<img src="/images/loading.gif" />评论加载中');}
}); });
};ajaxpage(0); };
function postcomment(){
var url="/data/postcomment";
var date = $('#postcommentform').serialize();
$.ajax({
'type':"POST",
'url':url,
'data':date,
'success':function(html){
$('#postcomment').html('提交');
setTimeout("$('#postcomment').removeAttr('disabled');",3000);
$('#returninfo').html(html);
ajaxpage(0);
},
'beforeSend':function(){
$('#postcomment').attr('disabled','disabled');
$('#postcomment').html('<img src="/images/11887177066.gif" />正在提交...');
}
});
}
function getFileList(){ function getFileList(){
var tw = ($(window).width() - $('#window-outter').width())/2; $.colorbox({width:"80%",height:"80%",html:$('#window-outter').html()});
$('#window-outter').css({'right':tw});
$('#window-outter').show();
$.getJSON("/service/filelist/uuid/<?php echo $md->uuid;?>", function(data) { $.getJSON("/service/filelist/uuid/<?php echo $md->uuid;?>", function(data) {
var items = []; var items = [];
if(data.length>0) if(data.length>0)
@ -447,7 +507,7 @@ function getSubFileList(uuid,id,depth){
return false; return false;
} }
$('<div/>', { $('<div/>', {
'style':'max-height:400px; overflow:auto; overflow-x:hidden;', 'style':'overflow:auto;',
'id': 'div_'+id, 'id': 'div_'+id,
"html": '<li><img src="/images/loading.gif" />加载中</li>' "html": '<li><img src="/images/loading.gif" />加载中</li>'
}).appendTo('#li_'+id); }).appendTo('#li_'+id);
@ -569,6 +629,42 @@ function cnkiSearch(keyword){
}); });
} }
function dataVersion()
{
$.ajax({
'type':"POST",
'url':'/data/getversion',
'data':'ac=list&uuid=<?php echo $md->uuid; ?>',
'success':onDataVersionLoad,
'timeout': 30000,
'error': function(){Alert('处理中出现错误,请刷新页面后重试');return false;}
});
}
function onDataVersionLoad(data){
if (typeof(data)=='object')
{
if(typeof(data.error)!='undefined')
{Alert(data.error);return false;}
if(typeof(data.list)!='undefined')
{
var html = "";
for(v in data.list)
{
html+='<li><p>'+data.list[v].changelog+'</p><p>'+data.list[v].ts_created+' by '+data.list[v].username+'</p></li>';
}
$.colorbox({'innerWidth':'50%','innerHeight':'80%','html':'<div class="datalist"><ul>'+html+'</ul></div>'});
}
}
else{
Alert('出现错误,请稍后再试');return false;
}
}
function Alert(html){
$.colorbox({'innerWidth':'50%','html':'<h4 style="font-size:16px;font-weight:bold;">'+html+'</h4>'});
}
var map = null; var map = null;
var mapElementID = null; var mapElementID = null;
var bounds = null; var bounds = null;
@ -624,5 +720,4 @@ $(function() {
<p>Cannot find the metadata.</p> <p>Cannot find the metadata.</p>
<p>没有找到对应的元数据。</p> <p>没有找到对应的元数据。</p>
<?php endif;?> <?php endif;?>
<script type="text/javascript" src="http://v3.jiathis.com/code_mini/jia.js?uid=1336100079460458" charset="utf-8"></script> <script type="text/javascript" src="http://v3.jiathis.com/code_mini/jia.js?uid=1336100079460458" charset="utf-8"></script>

View File

@ -1,10 +1,43 @@
#sidebar{float:left;margin:0;padding:0;width:160px;_margin-right:-3px;float:left;border-right:2px solid #ddd;background:#ddd;border-radius:5px;overflow:hidden;} .bs-review-nav{
#sidebar li{margin:5px 0 5px 30px;} padding:14px;
#sidebar li.title{margin:0;padding:5px 40px;background-color:#ECA965;} }
#leftnavi li{margin:5px 0 5px 20px;font-size:9pt;border:1px #93bee2 solid;background-color:#e8f4ff;width:100px;height:22px;padding:0 10px 0 10px;} .bs-review-sidenav{
#content{margin-left:160px;} padding:0px;
margin:0px;
}
.bs-review-sidenav > li:first-child > a {
border-radius: 6px 6px 0 0;
}
.bs-review-sidenav > li:last-child > a {
border-radius: 0 0 6px 6px;
}
.bs-review-sidenav li{
margin:0px;
padding:0px;
line-height:30px;
}
.bs-review-sidenav li a {
border:1px solid #E5E5E5;
margin: 0 0 -1px;
}
.bs-review-sidenav li.active a {
border:none;
margin: 0 0 0 0;
}
.bs-review-sidenav li i{
float:right;
margin-top:8px;
}
.bs-review-nav .form-search{
margin:10px auto;
}
.bs-review-nav .form-search .keyword{
width:95%;
}
#content{}
#content p{text-indent: 20px;} #content p{text-indent: 20px;}
#content ul li{list-style:disc;margin-left:50px;}
.logo{float:right;margin-left:10px;margin-bottom:15px;text-align:center;} .logo{float:right;margin-left:10px;margin-bottom:15px;text-align:center;}
.preface .preface
{ {