update pages
This commit is contained in:
parent
89a78691bc
commit
f9ff4350e5
|
@ -89,6 +89,8 @@ class DataController extends Zend_Controller_Action
|
||||||
}
|
}
|
||||||
function onlinelistAction()
|
function onlinelistAction()
|
||||||
{
|
{
|
||||||
|
$this->_helper->layout->setLayout('layout-sanji');
|
||||||
|
|
||||||
$page=(int)$this->_request->getParam('page');
|
$page=(int)$this->_request->getParam('page');
|
||||||
if (empty($page)) $page=1;
|
if (empty($page)) $page=1;
|
||||||
$limit=30;
|
$limit=30;
|
||||||
|
@ -97,12 +99,15 @@ class DataController extends Zend_Controller_Action
|
||||||
$row=$state->fetchAll();
|
$row=$state->fetchAll();
|
||||||
$sum=$row[0]['count'];
|
$sum=$row[0]['count'];
|
||||||
$select=$this->db->select();
|
$select=$this->db->select();
|
||||||
$select->from('normalmetadata','*')->where('datatype=0')->order('title')->limitPage($page,$limit);
|
$select->from('normalmetadata','*')->joinLeft('mdstat','normalmetadata.uuid=mdstat.uuid', ['viewed','downloaded'])->where('datatype=0')->order('title')->limitPage($page,$limit);
|
||||||
$this->view->metadata = $this->db->fetchAll($select);
|
$this->view->metadata = $this->db->fetchAll($select);
|
||||||
$this->view->page=new Pagination($sum,$page,$limit);
|
|
||||||
|
view::addTextPaginator($select, $this);
|
||||||
}
|
}
|
||||||
function offlinelistAction()
|
function offlinelistAction()
|
||||||
{
|
{
|
||||||
|
$this->_helper->layout->setLayout('layout-sanji');
|
||||||
|
|
||||||
$page=(int)$this->_request->getParam('page');
|
$page=(int)$this->_request->getParam('page');
|
||||||
if (empty($page)) $page=1;
|
if (empty($page)) $page=1;
|
||||||
$limit=30;
|
$limit=30;
|
||||||
|
@ -111,9 +116,9 @@ class DataController extends Zend_Controller_Action
|
||||||
$row=$state->fetchAll();
|
$row=$state->fetchAll();
|
||||||
$sum=$row[0]['count'];
|
$sum=$row[0]['count'];
|
||||||
$select=$this->db->select();
|
$select=$this->db->select();
|
||||||
$select->from('normalmetadata','*')->where('datatype=1')->order('title')->limitPage($page,$limit);
|
$select->from('normalmetadata','*')->joinLeft('mdstat','normalmetadata.uuid=mdstat.uuid', ['viewed','downloaded'])->where('datatype=1')->order('title')->limitPage($page,$limit);
|
||||||
$this->view->metadata = $this->db->fetchAll($select);
|
|
||||||
$this->view->page=new Pagination($sum,$page,$limit);
|
view::addTextPaginator($select, $this);
|
||||||
}
|
}
|
||||||
//展示最近20条离线神情记录情况
|
//展示最近20条离线神情记录情况
|
||||||
function offlineappAction()
|
function offlineappAction()
|
||||||
|
@ -200,21 +205,15 @@ class DataController extends Zend_Controller_Action
|
||||||
$row=$state->fetchAll();
|
$row=$state->fetchAll();
|
||||||
$sum=$row[0]['count'];
|
$sum=$row[0]['count'];
|
||||||
$select=$this->db->select();
|
$select=$this->db->select();
|
||||||
$select->from('metadata','*')->order('id desc')->limitPage($page,$limit);
|
$select->from('metadata','*')->joinLeft('mdstat','metadata.uuid=mdstat.uuid', ['viewed','downloaded'])->order('id desc')->limitPage($page,$limit);
|
||||||
// $this->view->metadata = $this->db->fetchAll($select);
|
|
||||||
// Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination_text.phtml');
|
|
||||||
// $this->view->page=new Pagination($sum,$page,$limit);
|
|
||||||
|
|
||||||
$paginator = Zend_Paginator::factory($select);
|
view::addTextPaginator($select, $this);
|
||||||
$paginator->setCurrentPageNumber($page);
|
|
||||||
$paginator->setItemCountPerPage($this->view->config->page->max);
|
|
||||||
$paginator->setView($this->view);
|
|
||||||
Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination_text.phtml');
|
|
||||||
$this->view->paginator=$paginator;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
function tagAction()
|
function tagAction()
|
||||||
{
|
{
|
||||||
|
$this->_helper->layout->setLayout('layout-sanji');
|
||||||
|
|
||||||
$id = (int)$this->_request->getParam('id');
|
$id = (int)$this->_request->getParam('id');
|
||||||
$key = $this->_request->getParam('key');
|
$key = $this->_request->getParam('key');
|
||||||
$keytype = $this->_request->getParam('keytype');
|
$keytype = $this->_request->getParam('keytype');
|
||||||
|
@ -241,7 +240,10 @@ class DataController extends Zend_Controller_Action
|
||||||
$row=$state->fetchAll();
|
$row=$state->fetchAll();
|
||||||
$sum=$row[0]['count'];
|
$sum=$row[0]['count'];
|
||||||
$select=$this->db->select();
|
$select=$this->db->select();
|
||||||
$select->from('normalmetadata','*')->join('keyword','normalmetadata.id=keyword.id')->where('keyword.keyword=?',$key)->order('normalmetadata.title')->limitPage($page,$limit);
|
$select->from('normalmetadata','*')
|
||||||
|
->join('keyword','normalmetadata.id=keyword.id')
|
||||||
|
->where('keyword.keyword=?',$key)
|
||||||
|
->order('normalmetadata.title')->limitPage($page,$limit);
|
||||||
//$sql=$db->quoteInto('select m.* from metadata m,keyword k where m.id=k.id and k.keyword=?',$key);
|
//$sql=$db->quoteInto('select m.* from metadata m,keyword k where m.id=k.id and k.keyword=?',$key);
|
||||||
//$state=$db->query($sql);
|
//$state=$db->query($sql);
|
||||||
$this->view->metadata=$this->db->fetchAll($select);
|
$this->view->metadata=$this->db->fetchAll($select);
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<?php if(!empty($this->nav)){ ?>
|
<?php if(!empty($this->nav)){ ?>
|
||||||
<div class="container top-position">
|
<div class="top-position">
|
||||||
<?php foreach ($this->nav as $k=>$v){?>
|
<?php foreach ($this->nav as $k=>$v){?>
|
||||||
<a href="<?= $v['link'] ?>"><?= $v['title']?></a>
|
<a href="<?= $v['link'] ?>"><?= $v['title']?></a>
|
||||||
<?php if(isset($this->nav[$k+1])) {?> <span class="divider">/</span> <?php } ?>
|
<?php if(isset($this->nav[$k+1])) {?> <span class="divider">/</span> <?php } ?>
|
||||||
|
|
|
@ -8,9 +8,16 @@
|
||||||
$this->theme->AppendPlus($this,'colorbox');
|
$this->theme->AppendPlus($this,'colorbox');
|
||||||
?>
|
?>
|
||||||
<hr class="c-f">
|
<hr class="c-f">
|
||||||
|
<div class="container">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-12">
|
||||||
<?= $this->partial('data/tools.phtml'); ?>
|
<?= $this->partial('data/tools.phtml'); ?>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<hr class="c-f">
|
<hr class="c-f">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
<div class="col-lg-12">
|
||||||
<?php foreach($this->paginator as $md) : ?>
|
<?php foreach($this->paginator as $md) : ?>
|
||||||
<div class="row c-list">
|
<div class="row c-list">
|
||||||
<div class="col-md-3 c-img-box">
|
<div class="col-md-3 c-img-box">
|
||||||
|
@ -23,7 +30,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-9 c-list-box">
|
<div class="col-md-9 c-list-box">
|
||||||
<h4><a href="/data/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']);?></a></h4>
|
<h4><a href="/data/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']);?></a></h4>
|
||||||
<p class="c-info"><span class="c-author"></span><i>Admin</i> | <span class="c-click"></span><i>100</i> | <span class="c-time"></span><i><?php echo date("d,M,Y",strtotime( $md['ts_published'] )); ?></i></p>
|
<p class="c-info"><span class="c-click"></span><i><?php echo $md['viewed']?></i> | <span class="c-time"></span><i><?php echo date("d,M,Y",strtotime( $md['ts_published'] )); ?></i></p>
|
||||||
<p class="c-con">
|
<p class="c-con">
|
||||||
<?php echo str_replace(array("\r\n", "\n", "\r"),'<br />',mb_strlen($md['description'])>200 ? $this->escape(mb_substr($md['description'],0,200,'UTF-8').'...'):$this->escape($md['description']));?>
|
<?php echo str_replace(array("\r\n", "\n", "\r"),'<br />',mb_strlen($md['description'])>200 ? $this->escape(mb_substr($md['description'],0,200,'UTF-8').'...'):$this->escape($md['description']));?>
|
||||||
</p>
|
</p>
|
||||||
|
@ -38,6 +45,7 @@
|
||||||
</div>
|
</div>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
|
@ -4,25 +4,61 @@ $this->headTitle($this->config->title->data);
|
||||||
$this->headTitle('离线数据浏览');
|
$this->headTitle('离线数据浏览');
|
||||||
$this->headTitle($this->codename);
|
$this->headTitle($this->codename);
|
||||||
$this->headTitle()->setSeparator(' - ');
|
$this->headTitle()->setSeparator(' - ');
|
||||||
$this->headLink()->appendStylesheet('/css/metadata.css');
|
|
||||||
$this->nav[] = array('link'=>"/data/offline",'title'=>'离线数据浏览');
|
$this->nav[] = array('link'=>"/data/offline",'title'=>'离线数据浏览');
|
||||||
|
$this->headLink()->appendStylesheet('/static-sanji/css/data-list.css');
|
||||||
?>
|
?>
|
||||||
<div class="row-fluid">
|
<div class="container">
|
||||||
<?= $this->render('breadcrumbs.phtml'); ?>
|
<div class="row">
|
||||||
|
<div class="col-lg-12">
|
||||||
|
<?= $this->render('breadcrumbs.phtml') ?>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-12">
|
||||||
<?= $this->partial('data/tools.phtml'); ?>
|
<?= $this->partial('data/tools.phtml'); ?>
|
||||||
</div>
|
</div>
|
||||||
<?php echo $this->page->getNavigation(); ?>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="container">
|
||||||
|
<div class="col-lg-12">
|
||||||
<hr />
|
<hr />
|
||||||
<?php foreach($this->metadata as $md) : ?>
|
<?php foreach($this->paginator as $md) : ?>
|
||||||
<div class="media well well-small">
|
<div class="row c-list">
|
||||||
<a href="/service/bigthumb/uuid/<?= $md['uuid'] ?>" class="pull-left colorbox">
|
<div class="col-md-3 c-img-box">
|
||||||
<img class="media-object" src="/service/thumb/id/<?php echo $md['id'];?>">
|
<div class="c-cover"></div>
|
||||||
</a>
|
<a class="c-cover" href="/data/<?php echo $md['uuid'];?>"></a>
|
||||||
<div class="media-body">
|
<div class="c-img" style="background:url('/service/thumb/id/<?php echo $md['id'];?>') no-repeat center; background-size:cover"></div>
|
||||||
<h4 class="media-heading"><a href="/data/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']);?></a></h4>
|
<!-- <a href="/service/bigthumb/uuid/--><?//= $md['uuid'] ?><!--" class="pull-left colorbox">-->
|
||||||
<div class="summary"><?php echo str_replace(array("\r\n", "\n", "\r"),'<br />',mb_strlen($md['description'])>400?$this->escape(mb_substr($md['description'],0,400,'UTF-8').'...'):$this->escape($md['description']));?></div>
|
<!-- <img class="media-object" src="/service/thumb/id/--><?php //echo $md['id'];?><!--">-->
|
||||||
|
<!-- </a>-->
|
||||||
|
</div>
|
||||||
|
<div class="col-md-9 c-list-box">
|
||||||
|
<h4><a href="/data/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']);?></a></h4>
|
||||||
|
<p class="c-info"><span class="c-click"></span><i><?php echo $md['viewed']?></i> | <span class="c-time"></span><i><?php echo date("d,M,Y",strtotime( $md['ts_published'] )); ?></i></p>
|
||||||
|
<p class="c-con">
|
||||||
|
<?php echo str_replace(array("\r\n", "\n", "\r"),'<br />',mb_strlen($md['description'])>200 ? $this->escape(mb_substr($md['description'],0,200,'UTF-8').'...'):$this->escape($md['description']));?>
|
||||||
|
</p>
|
||||||
|
<div class="dam clear">
|
||||||
|
<div class="c-left">
|
||||||
|
<i>文件大小</i>
|
||||||
|
<em><?php echo round($md['filesize'] / 2014, 2) > 0.99 ? round($md['filesize'] / 2014, 2) : '小于1'?>MB</em>
|
||||||
|
</div>
|
||||||
|
<a class="c-right" href="/data/<?php echo $md['uuid'];?>">更多</a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
<hr />
|
</div>
|
||||||
<?php echo $this->page->getNavigation(); ?>
|
</div>
|
||||||
|
|
||||||
|
<div class="container">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-xs-12">
|
||||||
|
<div class="page">
|
||||||
|
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
|
@ -4,25 +4,60 @@ $this->headTitle($this->config->title->data);
|
||||||
$this->headTitle('在线数据浏览');
|
$this->headTitle('在线数据浏览');
|
||||||
$this->headTitle($this->codename);
|
$this->headTitle($this->codename);
|
||||||
$this->headTitle()->setSeparator(' - ');
|
$this->headTitle()->setSeparator(' - ');
|
||||||
$this->headLink()->appendStylesheet('/css/metadata.css');
|
|
||||||
$this->nav[] = array('link'=>"/data/offline",'title'=>'在线数据浏览');
|
$this->nav[] = array('link'=>"/data/offline",'title'=>'在线数据浏览');
|
||||||
|
$this->headLink()->appendStylesheet('/static-sanji/css/data-list.css');
|
||||||
?>
|
?>
|
||||||
<div>
|
<div class="container">
|
||||||
<?= $this->render('breadcrumbs.phtml'); ?>
|
<div class="row">
|
||||||
|
<div class="col-lg-12">
|
||||||
|
<?= $this->render('breadcrumbs.phtml') ?>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-12">
|
||||||
<?= $this->partial('data/tools.phtml'); ?>
|
<?= $this->partial('data/tools.phtml'); ?>
|
||||||
</div>
|
</div>
|
||||||
<?php echo $this->page->getNavigation(); ?>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="container">
|
||||||
|
<div class="col-lg-12">
|
||||||
<hr />
|
<hr />
|
||||||
<?php foreach($this->metadata as $md) : ?>
|
<?php foreach($this->paginator as $md) : ?>
|
||||||
<div class="media well well-small">
|
<div class="row c-list">
|
||||||
<a href="/service/bigthumb/uuid/<?= $md['uuid'] ?>" class="pull-left colorbox">
|
<div class="col-md-3 c-img-box">
|
||||||
<img class="media-object" src="/service/thumb/id/<?php echo $md['id'];?>">
|
<div class="c-cover"></div>
|
||||||
</a>
|
<a class="c-cover" href="/data/<?php echo $md['uuid'];?>"></a>
|
||||||
<div class="media-body">
|
<div class="c-img" style="background:url('/service/thumb/id/<?php echo $md['id'];?>') no-repeat center; background-size:cover"></div>
|
||||||
<h4 class="media-heading"><a href="/data/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']);?></a></h4>
|
<!-- <a href="/service/bigthumb/uuid/--><?//= $md['uuid'] ?><!--" class="pull-left colorbox">-->
|
||||||
<div class="summary"><?php echo str_replace(array("\r\n", "\n", "\r"),'<br />',mb_strlen($md['description'])>400?$this->escape(mb_substr($md['description'],0,400,'UTF-8').'...'):$this->escape($md['description']));?></div>
|
<!-- <img class="media-object" src="/service/thumb/id/--><?php //echo $md['id'];?><!--">-->
|
||||||
|
<!-- </a>-->
|
||||||
|
</div>
|
||||||
|
<div class="col-md-9 c-list-box">
|
||||||
|
<h4><a href="/data/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']);?></a></h4>
|
||||||
|
<p class="c-info"><span class="c-click"></span><i><?php echo $md['viewed']?></i> | <span class="c-time"></span><i><?php echo date("d,M,Y",strtotime( $md['ts_published'] )); ?></i></p>
|
||||||
|
<p class="c-con">
|
||||||
|
<?php echo str_replace(array("\r\n", "\n", "\r"),'<br />',mb_strlen($md['description'])>200 ? $this->escape(mb_substr($md['description'],0,200,'UTF-8').'...'):$this->escape($md['description']));?>
|
||||||
|
</p>
|
||||||
|
<div class="dam clear">
|
||||||
|
<div class="c-left">
|
||||||
|
<i>文件大小</i>
|
||||||
|
<em><?php echo round($md['filesize'] / 2014, 2) > 0.99 ? round($md['filesize'] / 2014, 2) : '小于1'?>MB</em>
|
||||||
|
</div>
|
||||||
|
<a class="c-right" href="/data/<?php echo $md['uuid'];?>">更多</a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
<hr />
|
</div>
|
||||||
<?php echo $this->page->getNavigation(); ?>
|
</div>
|
||||||
|
|
||||||
|
<div class="container">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-xs-12">
|
||||||
|
<div class="page">
|
||||||
|
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
|
@ -7,28 +7,70 @@ $this->headLink()->appendStylesheet('/css/metadata.css');
|
||||||
$this->nav[] = array('link'=>"/data/tag",'title'=>'关键词浏览');
|
$this->nav[] = array('link'=>"/data/tag",'title'=>'关键词浏览');
|
||||||
$this->theme->AppendPlus($this,'colorbox');
|
$this->theme->AppendPlus($this,'colorbox');
|
||||||
?>
|
?>
|
||||||
<div id='row-fluid'>
|
<div class="container">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-12">
|
||||||
<?= $this->render('breadcrumbs.phtml') ?>
|
<?= $this->render('breadcrumbs.phtml') ?>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-12">
|
||||||
<?= $this->partial('data/tools.phtml'); ?>
|
<?= $this->partial('data/tools.phtml'); ?>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="container">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-12">
|
||||||
<?php if (!empty($this->metadata)) : ?>
|
<?php if (!empty($this->metadata)) : ?>
|
||||||
<div id='metacontent'>
|
<div id='metacontent'>
|
||||||
<h1>当前浏览:<?php echo $this->codename; ?></h1>
|
<h1>当前浏览:<?php echo $this->codename; ?></h1>
|
||||||
<?php echo $this->page->getNavigation(); ?>
|
|
||||||
<hr />
|
<hr />
|
||||||
<?php foreach($this->metadata as $md) : ?>
|
<?php var_dump($this->paginator) ?>
|
||||||
<div class="mditem">
|
<?php foreach($this->paginator as $md) : ?>
|
||||||
<div class="thumb">
|
<div class="row c-list">
|
||||||
<a href="/service/bigthumb/uuid/<?= $md['uuid'] ?>" class="colorbox">
|
<div class="col-md-3 c-img-box">
|
||||||
<img src="/service/thumb/id/<?php echo $md['id'];?>" />
|
<div class="c-cover"></div>
|
||||||
</a>
|
<a class="c-cover" href="/data/<?php echo $md['uuid'];?>"></a>
|
||||||
|
<div class="c-img" style="background:url('/service/thumb/id/<?php echo $md['id'];?>') no-repeat center; background-size:cover"></div>
|
||||||
|
<!-- <a href="/service/bigthumb/uuid/--><?//= $md['uuid'] ?><!--" class="pull-left colorbox">-->
|
||||||
|
<!-- <img class="media-object" src="/service/thumb/id/--><?php //echo $md['id'];?><!--">-->
|
||||||
|
<!-- </a>-->
|
||||||
|
</div>
|
||||||
|
<div class="col-md-9 c-list-box">
|
||||||
|
<h4><a href="/data/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']);?></a></h4>
|
||||||
|
<p class="c-info"><span class="c-click"></span><i><?php echo $md['viewed']?></i> | <span class="c-time"></span><i><?php echo date("d,M,Y",strtotime( $md['ts_published'] )); ?></i></p>
|
||||||
|
<p class="c-con">
|
||||||
|
<?php echo str_replace(array("\r\n", "\n", "\r"),'<br />',mb_strlen($md['description'])>200 ? $this->escape(mb_substr($md['description'],0,200,'UTF-8').'...'):$this->escape($md['description']));?>
|
||||||
|
</p>
|
||||||
|
<div class="dam clear">
|
||||||
|
<div class="c-left">
|
||||||
|
<i>文件大小</i>
|
||||||
|
<em><?php echo round($md['filesize'] / 2014, 2) > 0.99 ? round($md['filesize'] / 2014, 2) : '小于1'?>MB</em>
|
||||||
|
</div>
|
||||||
|
<a class="c-right" href="/data/<?php echo $md['uuid'];?>">更多</a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<h2><a href="/data/<?php echo $md['uuid']; ?>"><?php echo $this->escape($md['title']);?></a></h2>
|
|
||||||
<span><?php echo mb_strlen($md['description'])>400?$this->escape(mb_substr($md['description'],0,400,'UTF-8').'...'):$this->escape($md['description']);?></span>
|
|
||||||
</div>
|
</div>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
<?php echo $this->page->getNavigation(); ?>
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="container">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-xs-12">
|
||||||
|
<div class="page">
|
||||||
|
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<script>
|
||||||
|
$(document).ready(function(){
|
||||||
|
$(".colorbox").colorbox({rel:"colorbox",photo:"true",transition:"fade"});
|
||||||
|
$(".colorbox").colorbox({photo:"true"});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
<?php else : ?>
|
<?php else : ?>
|
||||||
<div id='leftnav'>
|
<div id='leftnav'>
|
||||||
<?php
|
<?php
|
||||||
|
@ -49,11 +91,9 @@ foreach($this->keywords as $cg) :
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</ul>
|
</ul>
|
||||||
</fieldset></div>
|
</fieldset>
|
||||||
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<script>
|
</div>
|
||||||
$(document).ready(function(){
|
</div>
|
||||||
$(".colorbox").colorbox({rel:"colorbox",photo:"true",transition:"fade"});
|
</div>
|
||||||
$(".colorbox").colorbox({photo:"true"});
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
<div class="container product-nav">
|
<div class="product-nav">
|
||||||
<div class="row">
|
|
||||||
<div class="col-xs-12">
|
|
||||||
<ul class="clear fication">
|
<ul class="clear fication">
|
||||||
<li>分类:</li>
|
<li>浏览方式:</li>
|
||||||
<li><a href="/data/tag"><i class="icon-tags"></i>关键词浏览</a></li>
|
<li><a href="/data/tag"><i class="icon-tags"></i>关键词浏览</a></li>
|
||||||
<li><a href="/data/series"><i class="icon-th-list"></i>序列浏览</a></li>
|
<li><a href="/data/series"><i class="icon-th-list"></i>序列浏览</a></li>
|
||||||
<li><a href="/data/category"><i class="icon-th"></i>分类浏览</a></li>
|
<li><a href="/data/category"><i class="icon-th"></i>分类浏览</a></li>
|
||||||
|
@ -11,5 +9,3 @@
|
||||||
<li><a href="/data/browse"><i class="icon-align-justify"></i>全部浏览</a></li>
|
<li><a href="/data/browse"><i class="icon-align-justify"></i>全部浏览</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
|
|
@ -12,11 +12,19 @@
|
||||||
$this->headLink()->appendStylesheet('/static-sanji/css/data-detail.css');
|
$this->headLink()->appendStylesheet('/static-sanji/css/data-detail.css');
|
||||||
$this->nav[] = array('link'=>"/data/". $this->metadata->uuid,'title'=>$this->metadata->title);
|
$this->nav[] = array('link'=>"/data/". $this->metadata->uuid,'title'=>$this->metadata->title);
|
||||||
?>
|
?>
|
||||||
|
<div class="container">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-12">
|
||||||
|
<?= $this->render('breadcrumbs.phtml'); ?>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="data-detail-warp">
|
<div class="data-detail-warp">
|
||||||
<?= $this->render('breadcrumbs.phtml'); ?>
|
|
||||||
<?php $md=$this->metadata; if ($md):?>
|
<?php $md=$this->metadata; if ($md):?>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
<div class="col-lg-12">
|
||||||
<div class="content-left col-sm-8">
|
<div class="content-left col-sm-8">
|
||||||
<div class="data-content">
|
<div class="data-content">
|
||||||
<h2><?php echo $this->escape($md->title); ?></h2>
|
<h2><?php echo $this->escape($md->title); ?></h2>
|
||||||
|
@ -241,37 +249,14 @@
|
||||||
<div>
|
<div>
|
||||||
<!-- Nav tabs -->
|
<!-- Nav tabs -->
|
||||||
<ul class="nav nav-tabs" role="tablist">
|
<ul class="nav nav-tabs" role="tablist">
|
||||||
<li role="presentation" class="active"><a href="#home" aria-controls="home" role="tab" data-toggle="tab">相关数据</a></li>
|
<li role="presentation" class="active"><a href="#home" aria-controls="home" role="tab" data-toggle="tab" id="related_t">相关数据</a></li>
|
||||||
<li role="presentation"><a href="#profile" aria-controls="profile" role="tab" data-toggle="tab">服务记录</a></li>
|
<li role="presentation"><a href="#profile" aria-controls="profile" role="tab" data-toggle="tab">服务记录</a></li>
|
||||||
<li role="presentation"><a href="#messages" aria-controls="messages" role="tab" data-toggle="tab">给我推荐</a></li>
|
<li role="presentation"><a href="#messages" aria-controls="messages" role="tab" data-toggle="tab" id="recommend_t">给我推荐</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
<!-- Tab panes -->
|
<!-- Tab panes -->
|
||||||
<div class="tab-content">
|
<div class="tab-content">
|
||||||
<div role="tabpanel" class="tab-pane active tab-div" id="home">
|
<div role="tabpanel" class="tab-pane active tab-div" id="related">
|
||||||
<div>
|
|
||||||
<dl class="col-sm-12">
|
|
||||||
<dt class="col-sm-3">
|
|
||||||
<a href="#"><img src="./images/chakan_03.png" alt=""></a>
|
|
||||||
</dt>
|
|
||||||
<dd class="col-sm-9">
|
|
||||||
<h1><a href="#">中国地区土地覆盖综合数据集中国地区土地覆盖综合数据集</a></h1>
|
|
||||||
<p>推荐指数:<span>13</span></p>
|
|
||||||
</dd>
|
|
||||||
</dl>
|
|
||||||
<p style="clear: both;margin: 0;"></p>
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<dl class="col-sm-12">
|
|
||||||
<dt class="col-sm-3">
|
|
||||||
<a href="#"><img src="./images/chakan_03.png" alt=""></a>
|
|
||||||
</dt>
|
|
||||||
<dd class="col-sm-9">
|
|
||||||
<h1><a href="#">中国地区土地覆盖综合数据集中国地区土地覆盖综合数据集</a></h1>
|
|
||||||
<p>推荐指数:<span>13</span></p>
|
|
||||||
</dd>
|
|
||||||
</dl>
|
|
||||||
<p style="clear: both;margin: 0;"></p>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div role="tabpanel" class="tab-pane tab-div" id="profile">
|
<div role="tabpanel" class="tab-pane tab-div" id="profile">
|
||||||
<?php if ($this->downhistory) : ?>
|
<?php if ($this->downhistory) : ?>
|
||||||
|
@ -292,31 +277,8 @@
|
||||||
暂时没有服务记录,欢迎您下载使用!
|
暂时没有服务记录,欢迎您下载使用!
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
<div role="tabpanel" class="tab-pane tab-div" id="messages">
|
<div role="tabpanel" class="tab-pane tab-div" id="recommend">
|
||||||
<div>
|
|
||||||
<dl class="col-sm-12">
|
|
||||||
<dt class="col-sm-3">
|
|
||||||
<a href="#"><img src="./images/map_03.jpg" alt=""></a>
|
|
||||||
</dt>
|
|
||||||
<dd class="col-sm-9">
|
|
||||||
<h1><a href="#">中国地区土地覆盖综合数据集中国地区土地覆盖综合数据集</a></h1>
|
|
||||||
<p>推荐指数:<span>13</span></p>
|
|
||||||
</dd>
|
|
||||||
</dl>
|
|
||||||
<p style="clear: both;margin: 0;"></p>
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<dl class="col-sm-12">
|
|
||||||
<dt class="col-sm-3">
|
|
||||||
<a href="#"><img src="./images/chakan_03.png" alt=""></a>
|
|
||||||
</dt>
|
|
||||||
<dd class="col-sm-9">
|
|
||||||
<h1><a href="#">中国地区土地覆盖综合数据集中国地区土地覆盖综合数据集</a></h1>
|
|
||||||
<p>推荐指数:<span>13</span></p>
|
|
||||||
</dd>
|
|
||||||
</dl>
|
|
||||||
<p style="clear: both;margin: 0;"></p>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -412,7 +374,7 @@
|
||||||
?>
|
?>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div><!-- container -->
|
</div><!-- container -->
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
|
@ -422,487 +384,10 @@
|
||||||
<p style="clear: both;"></p>
|
<p style="clear: both;"></p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<?php $md=$this->metadata; if ($md):?>
|
|
||||||
<h3><?php echo $this->escape($md->title);
|
|
||||||
if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
|
||||||
</h3>
|
|
||||||
<hr />
|
|
||||||
<div class="row">
|
|
||||||
<div class="span8">
|
|
||||||
<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 style="word-break:break-all;word-wrap:break-word;overflow:hidden;">
|
|
||||||
<?php echo str_replace(array("\r\n", "\n", "\r"),'</p><p>',$md->description);?>
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<?php if ($this->mcitation && (count($this->mcitation)>1) ) : ?>
|
|
||||||
<hr />
|
|
||||||
<h4><i class="icon-eye-open text-success"></i>本数据要求的多篇文献引用</h4>
|
|
||||||
<ol>
|
|
||||||
<?php foreach($this->mcitation as $ref) :
|
|
||||||
echo '<li>'.$ref->reference;
|
|
||||||
echo '<a href="/knowledge/paper/id/'.$ref->id.'"><i class="icon-info-sign text-success"></i>查看</a>';
|
|
||||||
if (empty($ref->link))
|
|
||||||
{
|
|
||||||
if(!empty($ref->attid))
|
|
||||||
echo '<a href="/service/attach/id/'.$ref->attid.'"><i class="icon-download text-success"></i>下载</a>';
|
|
||||||
}else{
|
|
||||||
echo '<a href="'.$ref->link.'"><i class="icon-download text-success"></i>下载</a>';
|
|
||||||
}
|
|
||||||
echo "</li>";
|
|
||||||
endforeach;
|
|
||||||
?>
|
|
||||||
</ol>
|
|
||||||
<?php endif; ?>
|
|
||||||
<?php if (($md->citation) || (count($this->mcitation)==1)) :
|
|
||||||
if (!$md->citation) $md->citation=$this->mcitation[0]->reference;
|
|
||||||
?>
|
|
||||||
<hr />
|
|
||||||
<h4><i class="icon-quote-left muted"></i>本数据引用方式<a class="btn btn-danger pull-right" href="/archives/help/platform/archive-23.html" ><i class="icon-comment"></i>数据引用帮助</a></h4>
|
|
||||||
<p><?php if (empty($md->datadoi) || !strpos($md->citation,$md->datadoi)) : ?><span class="label label-info">文章的引用</span>
|
|
||||||
<?php endif; echo $this->escape($md->citation);if (strpos($md->citation,$md->datadoi)) : ?>
|
|
||||||
(下载引用:<a href="/service/ris/lang/cn/uuid/<?php echo $md->uuid; ?>">RIS格式</a> | <a href="/service/ris/lang/en/uuid/<?php echo $md->uuid; ?>">RIS英文格式</a> | <a href="/service/bibtex/lang/cn/uuid/<?php echo $md->uuid; ?>">Bibtex格式</a> | <a href="/service/bibtex/lang/en/uuid/<?php echo $md->uuid; ?>">Bibtex英文格式</a>)
|
|
||||||
<?php endif; ?>
|
|
||||||
</p>
|
|
||||||
<?php if (!empty($md->datadoi) && !strpos($md->citation,$md->datadoi)) : ?>
|
|
||||||
<p><span class="label label-info">数据的引用</span><?php
|
|
||||||
echo substr($md->authors,1,-1).'. '.$md->title.'. '.$md->publisher.', '.(empty($md->ts_published)?$md->publish_year:date('Y',strtotime($md->ts_published))).'. doi:'.$md->doi;
|
|
||||||
echo ' ['.str_replace('"','',substr($md->author_en,1,-1)).'. '.$md->title_en.'. '.$md->publisher_en.', '.(empty($md->ts_published)?$md->publish_year:date('Y',strtotime($md->ts_published))).'. doi:'.$md->doi.']';
|
|
||||||
?> (下载引用:<a href="/service/ris/lang/cn/uuid/<?php echo $md->uuid; ?>">RIS格式</a> | <a href="/service/ris/lang/en/uuid/<?php echo $md->uuid; ?>">RIS英文格式</a> | <a href="/service/bibtex/lang/cn/uuid/<?php echo $md->uuid; ?>">Bibtex格式</a> | <a href="/service/bibtex/lang/en/uuid/<?php echo $md->uuid; ?>">Bibtex英文格式</a>)</p>
|
|
||||||
<?php endif; endif; if ($this->ref) : ?>
|
|
||||||
<hr />
|
|
||||||
<h4><i class="icon-eye-open text-success"></i>相关文献(作者推荐)</h4>
|
|
||||||
<ol>
|
|
||||||
<?php foreach($this->ref as $ref) :
|
|
||||||
echo '<li>'.$ref->reference;
|
|
||||||
echo '<a href="/knowledge/paper/id/'.$ref->id.'"><i class="icon-info-sign text-success"></i>查看</a>';
|
|
||||||
if (empty($ref->link))
|
|
||||||
{
|
|
||||||
if(!empty($ref->attid))
|
|
||||||
echo '<a href="/service/attach/id/'.$ref->attid.'"><i class="icon-download text-success"></i>下载</a>';
|
|
||||||
}else{
|
|
||||||
echo '<a href="'.$ref->link.'"><i class="icon-download text-success"></i>下载</a>';
|
|
||||||
}
|
|
||||||
echo "</li>";
|
|
||||||
endforeach;
|
|
||||||
?>
|
|
||||||
</ol>
|
|
||||||
<?php endif; if ($this->themeref) :?>
|
|
||||||
|
|
||||||
<hr />
|
|
||||||
<h4><i class="icon-eye-open text-success"></i>专题文献</h4>
|
|
||||||
<ol>
|
|
||||||
<?php foreach($this->themeref as $ref) :
|
|
||||||
echo '<li>'.$ref->reference;
|
|
||||||
echo '<a href="/knowledge/paper/id/'.$ref->id.'"><i class="icon-info-sign text-success"></i>查看</a>';
|
|
||||||
if (empty($ref->link))
|
|
||||||
{
|
|
||||||
if(!empty($ref->attid))
|
|
||||||
echo ' | <a href="/service/attach/id/'.$ref->attid.'"><i class="icon-download text-success"></i>下载</a>';
|
|
||||||
}else{
|
|
||||||
echo ' | <a href="'.$ref->link.'"><i class="icon-download text-success"></i>下载</a>';
|
|
||||||
}
|
|
||||||
echo "</li>";
|
|
||||||
endforeach;
|
|
||||||
?>
|
|
||||||
</ol>
|
|
||||||
<?php endif; if ($this->userref) : ?>
|
|
||||||
<hr />
|
|
||||||
<h4><i class="icon-eye-open text-success"></i>数据施引文献</h4>
|
|
||||||
<ol>
|
|
||||||
<?php foreach($this->userref as $ref) :
|
|
||||||
echo '<li>'.$ref->reference;
|
|
||||||
echo '<a href="/knowledge/paper/id/'.$ref->id.'"><i class="icon-info-sign text-success"></i>查看</a>';
|
|
||||||
if (empty($ref->link))
|
|
||||||
{
|
|
||||||
if(!empty($ref->attid))
|
|
||||||
echo '<a href="/service/attach/id/'.$ref->attid.'"><i class="icon-download text-success"></i>下载</a>';
|
|
||||||
}else{
|
|
||||||
echo '<a href="'.$ref->link.'"><i class="icon-download text-success"></i>下载</a>';
|
|
||||||
}
|
|
||||||
echo "</li>";
|
|
||||||
endforeach;
|
|
||||||
if (count($this->userref)==15)
|
|
||||||
{
|
|
||||||
echo '<a class="btn btn-success pull-right" href="/knowledge/user/uuid/'.$md->uuid.'" ><i class="icon-info-sign"></i>更多施引文献</a>';
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</ol>
|
|
||||||
<?php endif; ?>
|
|
||||||
<hr />
|
|
||||||
<h4><i class="icon-legal text-warning"></i>数据使用声明</h4>
|
|
||||||
<?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 Cold and Arid Regions Sciences Data Center at Lanzhou (http://westdc.westgis.ac.cn)</p>
|
|
||||||
</p>
|
|
||||||
<?php endif; ?>
|
|
||||||
<?php if($this->data_archives){ ?>
|
|
||||||
<h4>数据相关新闻</h4>
|
|
||||||
<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 || $this->fund) : ?>
|
|
||||||
<h4><i class="icon-money text-info"></i>资助项目</h4>
|
|
||||||
<?php if(!empty($this->fund)) : ?>
|
|
||||||
<ul>
|
|
||||||
<?php foreach($this->fund as $k=>$v) : ?>
|
|
||||||
<li><?= $v['fund_type'] ?>:<a href="/data/fund/id/<?= $v['id'] ?>"><?= $v['title'] ?></a>(项目编号:<?= $v['fund_id']?>) [<?= $v['fund_type_en'] ?>(No. <?= $v['fund_id']?>)]</li>
|
|
||||||
<?php endforeach; ?>
|
|
||||||
</ul>
|
|
||||||
<?php elseif(!empty($md->suppinfo)) : ?>
|
|
||||||
<?php echo '<p>'.str_replace(array("\r\n", "\n", "\r"),'</p><p>',$this->escape($md->suppinfo)).'</p>';?>
|
|
||||||
<?php endif; ?>
|
|
||||||
<hr />
|
|
||||||
<?php endif; ?>
|
|
||||||
<?php if ($this->resources) : ?>
|
|
||||||
<h4><i class="icon-bolt text-warning"></i>相关资源</h4>
|
|
||||||
<ul class="unstyled inline"><?php foreach($this->resources as $link) : ?>
|
|
||||||
<li><a class="label" 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; ?>
|
|
||||||
</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><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" id="gsearch_t">相关搜索</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">
|
|
||||||
</div>
|
|
||||||
<div id="literature" class="tab-pane">
|
|
||||||
<div class="">
|
|
||||||
<ul class="nav nav-pills lit-nav">
|
|
||||||
<li><a href="javascript:void(0);" class="literatures lit-nav-btn">西部计划知识库</a></li>
|
|
||||||
<li><a href="javascript:void(0);" class="scholar lit-nav-btn">Google学术搜索</a></li>
|
|
||||||
<li><a href="javascript:void(0);" class="cnkiSearch lit-nav-btn">CNKI学术搜索</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<div id="literature-list">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div id="gsearch" class="tab-pane">
|
|
||||||
<ul id="searchlist" class="unstyled 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 class="btn btn-primary" href="/review/review/uuid/<?php echo $md->uuid; ?>">评审</a></p>
|
|
||||||
<?php else : ?>
|
|
||||||
<h4>数据评论</h4>
|
|
||||||
<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 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">
|
|
||||||
<ul class="well well-small inline unstyled">
|
|
||||||
<li><a href="/data/category"><i class="icon-th text-warning"></i>类别:</a></li>
|
|
||||||
<?php foreach($this->category as $cat): ?>
|
|
||||||
<li><a href="/data/category/code/<?php echo $cat->code;?>"><i class="icon-th-large"></i><?php echo $this->escape($cat->name_zh);?></a></li>
|
|
||||||
<?php endforeach; ?>
|
|
||||||
</ul>
|
|
||||||
<?php
|
|
||||||
$kw=array('discipline'=>'学科','place'=>'地点','theme'=>'主题','temporal'=>'时间词','stratum'=>'地层');
|
|
||||||
$kt='';
|
|
||||||
$i=0;
|
|
||||||
foreach($this->keys as $cg) :
|
|
||||||
if ($kt==$cg['keytype']) :
|
|
||||||
$i+=1;
|
|
||||||
else :
|
|
||||||
if (!empty($kt)) echo '</ul>';
|
|
||||||
$kt=$cg['keytype'];
|
|
||||||
$i=0;
|
|
||||||
endif;
|
|
||||||
if ($i==0) {
|
|
||||||
?>
|
|
||||||
<ul class="well well-small inline unstyled">
|
|
||||||
<li><a href="/data/tag/keytype/<?php echo $kt; ?>"><i class="icon-tags text-warning"></i><?php echo $kw[$kt]; ?></a></li>
|
|
||||||
<?
|
|
||||||
}
|
|
||||||
echo '<li><a href="/data/tag/key/'.urlencode($cg['keyword']).'"><i class="icon-tag"></i>'.$cg['keyword'].'</a></li>';
|
|
||||||
endforeach;
|
|
||||||
?></ul>
|
|
||||||
<?php if ($md->doi) : ?>
|
|
||||||
<ul class="well well-small inline unstyled"><li><span class="label label-success">数据DOI:</span><a href="http://dx.doi.org/<?php echo $md->doi; ?>"><?php echo $md->doi; ?></a></li></ul>
|
|
||||||
<?php endif; ?>
|
|
||||||
<div>
|
|
||||||
<hr />
|
|
||||||
<h4>数据细节<a class="btn pull-right" href="javascript:void(0);" id="show-list" rel="<?= $md->uuid ?>"><i class="icon-file"></i>文件列表</a></h4>
|
|
||||||
<ul class="inline unstyled well">
|
|
||||||
<?php if ($md->fileformat) : ?>
|
|
||||||
<li><strong>格式:</strong><?php echo $md->fileformat; ?></li>
|
|
||||||
<?php endif; ?>
|
|
||||||
<li><strong>大小:</strong><?php echo $md->filesize; ?>MB</li>
|
|
||||||
<?php if ($this->downloaded>9) :?>
|
|
||||||
<li><strong>下载:</strong><?php echo $this->downloaded; ?>次</li>
|
|
||||||
<?php endif; ?>
|
|
||||||
<li><strong>浏览:</strong><?php echo $this->viewed; ?>次</li>
|
|
||||||
<!--
|
|
||||||
<?php if ($md->projection) : ?>
|
|
||||||
<li id="projection" title="<?= $this->projection; ?>">数据投影:
|
|
||||||
<?php
|
|
||||||
$p=explode(" ",$this->projection);
|
|
||||||
$p=explode("=",$p[0]);
|
|
||||||
if (!empty($p[1]))
|
|
||||||
echo $p[1];
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if (is_numeric($md->projection)) echo 'EPSG_CODE_';
|
|
||||||
echo $md->projection;
|
|
||||||
}
|
|
||||||
?></li>
|
|
||||||
<?php endif; ?>
|
|
||||||
-->
|
|
||||||
<?php if (!empty($md->timebegin)) : ?>
|
|
||||||
<li id="datatimes"><strong>数据时间范围:</strong><?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 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) : ?>
|
|
||||||
<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"><strong>数据共享方式:</strong><?php if ($md->datatype) print "离线"; else print "在线(可直接下载)";?> </li>
|
|
||||||
</ul>
|
|
||||||
<div id="linkurl">
|
|
||||||
<?php if ($md->status>0 and $md->status<5) : ?>
|
|
||||||
<a href="/review/review/uuid/<?php echo $md->uuid; ?>" class="btn btn-primary btn-large btn-block" title="此数据正在评审中,我们邀请您对此数据进行评审,以便其能尽快发布!">数据评审</a>
|
|
||||||
<?php else : if (!$md->datatype) : ?>
|
|
||||||
<a href="/data/todownload/?uuid=<?= $md->uuid?>" class="btn btn-primary btn-large btn-block" title="直接下载">
|
|
||||||
在线下载
|
|
||||||
</a>
|
|
||||||
<?php else: ?>
|
|
||||||
<?php
|
|
||||||
if(!empty($this->dataService)) { ?>
|
|
||||||
<?php $this->theme->AppendPlus($this,'datepicker'); ?>
|
|
||||||
<a href="javascript:void(0);" class="btn btn-primary btn-large btn-block" title="此数据需要选择要下载的子集" onclick="westdc.dataservice.choiceData('<?= $md->uuid ?>',this);">
|
|
||||||
<?php }else{ ?>
|
|
||||||
<a href="/data/order/uuid/<?php echo $md->uuid; ?>" class="btn btn-primary btn-large btn-block" title="免费!离线申请此数据(在线数据和离线数据都可申请)">
|
|
||||||
<?php } ?>
|
|
||||||
放入数据篮
|
|
||||||
</a>
|
|
||||||
<?php endif;endif; ?>
|
|
||||||
<a href="javascript:void(0);" class="btn btn-block" title="喜欢此数据可以将它放到收藏夹中下次浏览">
|
|
||||||
收藏此数据
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<hr />
|
|
||||||
<h4>空间位置</h4>
|
|
||||||
<div id='watermap' style="width:100%;height:300px;"></div>
|
|
||||||
<hr />
|
|
||||||
<h4>联系信息</h4>
|
|
||||||
<div id="authors">
|
|
||||||
<ul class="unstyled">
|
|
||||||
<?php
|
|
||||||
$party_zh=array('resourceProvider'=>'资源提供者','custodian'=>'维护者','owner'=>'拥有者','user'=>'用户','distributor'=>'数据服务联系人','originator'=>'创建者','pointOfContact'=>'联系人','principalInvestigator'=>'数据调查与处理者','processor'=>'处理者','publisher'=>'元数据发布者','author'=>'元数据作者');
|
|
||||||
$r='';
|
|
||||||
$i=0;
|
|
||||||
foreach($this->authors as $k=>$author) :
|
|
||||||
if ($author->role!=$r)
|
|
||||||
{
|
|
||||||
$r=$author->role;
|
|
||||||
$i=0;
|
|
||||||
if ($k>0) echo '</li>';
|
|
||||||
echo '<li>'.$party_zh[$author->role].':';
|
|
||||||
}
|
|
||||||
if ($i>0) echo ',';
|
|
||||||
$i+=1;
|
|
||||||
if (!empty($author->email) && $r!='principalInvestigator')
|
|
||||||
echo '<a href="mailto:'.$author->email.'">';
|
|
||||||
echo '<strong title="'.$author->organisation.'">';
|
|
||||||
if (!empty($author->individual))
|
|
||||||
echo $author->individual;
|
|
||||||
else
|
|
||||||
echo $author->organisation;
|
|
||||||
echo '</strong>';
|
|
||||||
if (!empty($author->email)) echo '</a>';
|
|
||||||
if ($k+1==count($this->authors)) echo '</li>';
|
|
||||||
endforeach;
|
|
||||||
?>
|
|
||||||
</ul>
|
|
||||||
<hr />
|
|
||||||
<ul class="unstyled">
|
|
||||||
<li>元数据更新时间:<?php print date('Y-m-d',strtotime($md->ts_created)); ?></li>
|
|
||||||
<li><strong>下载元数据:</strong>
|
|
||||||
<a href="/service/pdf/uuid/<?php echo $md->uuid; ?>"><img src="/images/pdf_icon.gif" alt="Adobe PDF格式" title="Adobe PDF格式"></a>
|
|
||||||
<a href="/service/odt/uuid/<?php echo $md->uuid; ?>"><img src="/images/odt_icon.gif" alt="OpenOffice odt格式" title="OpenOffice odt格式"></a>
|
|
||||||
<a href="/service/doc/uuid/<?php echo $md->uuid; ?>"><img src="/images/doc_icon.gif" alt="Word doc格式" title="Word doc格式"></a>
|
|
||||||
<a href="/service/xml/uuid/<?php echo $md->uuid;?>"><img src="/images/xml_icon.gif" alt="查看XML源文件" title="查看XML源文件"></a>
|
|
||||||
</li>
|
|
||||||
<!--<li><a href="/data/detail/id/<?php echo $md->id;?>">详细元数据</a></li>-->
|
|
||||||
<?php if($this->version->c>0):?>
|
|
||||||
<li id="dataversion">版本历史:<a href="javascript:void(0);" onclick="dataVersion('<?php echo $md->uuid;?>')" title=""><?= $this->version->c ?> 个 <img src="/images/list_extensions.gif" style="vertical-align:middle" /></a></li>
|
|
||||||
<?php endif;?>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<!--
|
|
||||||
<hr />
|
|
||||||
<div class="row-fluit">
|
|
||||||
<a href="javascript:void(0);" id="fav" class="btn" title="收藏到网站收藏夹">
|
|
||||||
<i class="icon-heart"></i> 喜欢
|
|
||||||
</a>
|
|
||||||
<a href="javascript:void(0);" class="btn" title="收藏到浏览器收藏夹">
|
|
||||||
<i class="icon-bookmark"></i> 收藏
|
|
||||||
</a>
|
|
||||||
<a href="/data/todownload/?uuid=<?= $md->uuid?>" class="btn" title="扫描地址二维码">
|
|
||||||
<i class="icon-qrcode"></i> 扫码转发
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
-->
|
|
||||||
<hr />
|
|
||||||
<div class="row-fluit">
|
|
||||||
<div class="pull-left">分享到</div>
|
|
||||||
<!-- JiaThis Button BEGIN -->
|
|
||||||
<div class="jiathis_style" style="margin-left:10px;">
|
|
||||||
<a class="jiathis_button_tsina"></a>
|
|
||||||
<a class="jiathis_button_qzone"></a>
|
|
||||||
<a class="jiathis_button_tqq"></a>
|
|
||||||
<a class="jiathis_button_renren"></a>
|
|
||||||
<a class="jiathis_button_douban"></a>
|
|
||||||
<a class="jiathis_button_tsohu"></a>
|
|
||||||
<a class="jiathis_button_t163"></a>
|
|
||||||
<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
|
|
||||||
<a class="jiathis_counter_style"></a>
|
|
||||||
</div>
|
|
||||||
<!-- JiaThis Button END -->
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<script src="/js/metadata-view.js"></script>
|
<script src="/js/metadata-view.js"></script>
|
||||||
<script type="text/javascript" charset="utf-8">
|
<script type="text/javascript" charset="utf-8">
|
||||||
$(function() {
|
$(function() {
|
||||||
$(".colorbox").colorbox({photo:"true"});
|
$(".colorbox").colorbox({photo:"true"});
|
||||||
$('.googlesearch').click(function(){googleSearch('<?php echo $ev;?>');});
|
|
||||||
$('.bingsearch').click(function(){bingSearch('<?php echo $ev;?>');});
|
|
||||||
$('.cnkiSearch').click(function(){cnkiSearch('<?php echo $ev;?>');});
|
|
||||||
$('.scholar').click(function(){scholarSearch('<?php echo $ev;?>');});
|
|
||||||
$('#related_t').click(function(){related(1);});
|
$('#related_t').click(function(){related(1);});
|
||||||
$('#recommend_t').click(function(){recommend(0);});
|
$('#recommend_t').click(function(){recommend(0);});
|
||||||
$('#literature_t').click(function(){literature(1);$('.literatures').parent('li').addClass('active')});
|
$('#literature_t').click(function(){literature(1);$('.literatures').parent('li').addClass('active')});
|
||||||
|
@ -916,12 +401,6 @@ $(function() {
|
||||||
});
|
});
|
||||||
$(this).parent('li').addClass('active');
|
$(this).parent('li').addClass('active');
|
||||||
});
|
});
|
||||||
});
|
|
||||||
$('#gsearch_t').click(function(){
|
|
||||||
if($('#searchlist').children('li').length<1)
|
|
||||||
{
|
|
||||||
googleSearch('<?php echo $ev;?>');
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
$('#show-list').click(function(e) {
|
$('#show-list').click(function(e) {
|
||||||
method.filelist.get($(this).attr('rel'));
|
method.filelist.get($(this).attr('rel'));
|
||||||
|
@ -955,7 +434,7 @@ function ajaxpage(page){
|
||||||
$('#related').addClass('active');
|
$('#related').addClass('active');
|
||||||
<? endif; ?>
|
<? endif; ?>
|
||||||
|
|
||||||
var config = { projection: "EPSG:4326"}
|
var config = { projection: "EPSG:4326"};
|
||||||
var map=new TMap("watermap",config);
|
var map=new TMap("watermap",config);
|
||||||
var lat=<?= ($md->south+$md->north)/2; ?>;
|
var lat=<?= ($md->south+$md->north)/2; ?>;
|
||||||
var lng=<?= ($md->east+$md->west)/2; ?>;
|
var lng=<?= ($md->east+$md->west)/2; ?>;
|
||||||
|
@ -1004,9 +483,5 @@ function addfavorite(url,title){
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<?php else: ?>
|
|
||||||
<p>Cannot find the metadata.</p>
|
|
||||||
<p>没有找到对应的元数据。</p>
|
|
||||||
<?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>
|
||||||
<script src="/static-sanji/js/bootstrap.min.js"></script>
|
<script src="/static-sanji/js/bootstrap.min.js"></script>
|
|
@ -233,94 +233,94 @@
|
||||||
<div class="swiper-wrapper">
|
<div class="swiper-wrapper">
|
||||||
<div class="swiper-slide">
|
<div class="swiper-slide">
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
<img src="/static-sanji/images/cooperator/cooperator1.jpg"><p>北京林业大学</p>
|
<img src="/static-sanji/images/cooperator/cooperator34.png"><p>中国科学院西北生态环境资源研究院</p>
|
||||||
<img src="/static-sanji/images/cooperator/cooperator2.jpg"><p>北京师范大学</p>
|
<img src="/static-sanji/images/cooperator/cooperator35.jpg"><p>中国科学院遥感与数字地球研究所</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
<img src="/static-sanji/images/cooperator/cooperator3.jpg"><p>成都高原气象研究所</p>
|
<img src="/static-sanji/images/cooperator/cooperator32.jpg"><p>中国科学院青藏高原研究所</p>
|
||||||
<img src="/static-sanji/images/cooperator/cooperator4.jpg"><p>成都信息工程大学</p>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-3">
|
|
||||||
<img src="/static-sanji/images/cooperator/cooperator5.jpg"><p>俄罗斯莫斯科州立大学</p>
|
|
||||||
<img src="/static-sanji/images/cooperator/cooperator6.png"><p>芬兰气象研究所</p>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-3">
|
|
||||||
<img src="/static-sanji/images/cooperator/cooperator7.jpg"><p>西南科技大学</p>
|
|
||||||
<img src="/static-sanji/images/cooperator/cooperator8.png"><p>华东师范大学</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="swiper-slide">
|
|
||||||
<div class="col-md-3">
|
|
||||||
<img src="/static-sanji/images/cooperator/cooperator9.jpg"><p>兰州大学</p>
|
|
||||||
<img src="/static-sanji/images/cooperator/cooperator10.jpg"><p>美国德克萨斯大学</p>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-3">
|
|
||||||
<img src="/static-sanji/images/cooperator/cooperator11.jpg"><p>美国华盛顿大学</p>
|
|
||||||
<img src="/static-sanji/images/cooperator/cooperator12.jpg"><p>美国加州大学洛杉矶分校</p>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-3">
|
|
||||||
<img src="/static-sanji/images/cooperator/cooperator13.png"><p>美国犹他大学</p>
|
|
||||||
<img src="/static-sanji/images/cooperator/cooperator14.jpg"><p>南方科技大学</p>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-3">
|
|
||||||
<img src="/static-sanji/images/cooperator/cooperator15.png"><p>挪威南森环境遥感中心</p>
|
|
||||||
<img src="/static-sanji/images/cooperator/cooperator16.png"><p>清华大学</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="swiper-slide">
|
|
||||||
<div class="col-md-3">
|
|
||||||
<img src="/static-sanji/images/cooperator/cooperator17.png"><p>瑞士苏黎世大学</p>
|
|
||||||
<img src="/static-sanji/images/cooperator/cooperator18.png"><p>上海师范大学</p>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-3">
|
|
||||||
<img src="/static-sanji/images/cooperator/cooperator19.jpg"><p>西北大学</p>
|
|
||||||
<img src="/static-sanji/images/cooperator/cooperator20.png"><p>西南大学</p>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-3">
|
|
||||||
<img src="/static-sanji/images/cooperator/cooperator21.jpg"><p>香港大学</p>
|
|
||||||
<img src="/static-sanji/images/cooperator/cooperator22.jpg"><p>香港中文大学</p>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-3">
|
|
||||||
<img src="/static-sanji/images/cooperator/cooperator23.jpg"><p>中国地质大学(武汉)</p>
|
|
||||||
<img src="/static-sanji/images/cooperator/cooperator24.jpg"><p>中国极地研究中心</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="swiper-slide">
|
|
||||||
<div class="col-md-3">
|
|
||||||
<img src="/static-sanji/images/cooperator/cooperator25.png"><p>中国科学院测量与地球物理研究所</p>
|
|
||||||
<img src="/static-sanji/images/cooperator/cooperator26.jpg"><p>中国科学院大气物理研究所</p>
|
<img src="/static-sanji/images/cooperator/cooperator26.jpg"><p>中国科学院大气物理研究所</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
<img src="/static-sanji/images/cooperator/cooperator27.jpg"><p>中国科学院大学</p>
|
|
||||||
<img src="/static-sanji/images/cooperator/cooperator28.jpg"><p>中国科学院地理科学与资源研究所</p>
|
<img src="/static-sanji/images/cooperator/cooperator28.jpg"><p>中国科学院地理科学与资源研究所</p>
|
||||||
|
<img src="/static-sanji/images/cooperator/cooperator25.png"><p>中国科学院测量与地球物理研究所</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
<img src="/static-sanji/images/cooperator/cooperator29.jpg"><p>中国科学院地质与地球物理研究所</p>
|
|
||||||
<img src="/static-sanji/images/cooperator/cooperator30.jpg"><p>中国科学院东北地理与农业生态研究所</p>
|
<img src="/static-sanji/images/cooperator/cooperator30.jpg"><p>中国科学院东北地理与农业生态研究所</p>
|
||||||
</div>
|
<img src="/static-sanji/images/cooperator/cooperator29.jpg"><p>中国科学院地质与地球物理研究所</p>
|
||||||
<div class="col-md-3">
|
|
||||||
<img src="/static-sanji/images/cooperator/cooperator31.jpg"><p>中国科学院南京地理与湖泊研究所</p>
|
|
||||||
<img src="/static-sanji/images/cooperator/cooperator32.jpg"><p>中国科学院青藏高原研究所</p>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="swiper-slide">
|
<div class="swiper-slide">
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
<img src="/static-sanji/images/cooperator/cooperator33.jpg"><p>中国科学院上海天文台</p>
|
<img src="/static-sanji/images/cooperator/cooperator27.jpg"><p>中国科学院大学</p>
|
||||||
<img src="/static-sanji/images/cooperator/cooperator34.png"><p>中国科学院西北生态环境资源研究院</p>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-3">
|
|
||||||
<img src="/static-sanji/images/cooperator/cooperator35.jpg"><p>中国科学院遥感与数字地球研究所</p>
|
|
||||||
<img src="/static-sanji/images/cooperator/cooperator36.jpg"><p>中国科学院植物研究所</p>
|
<img src="/static-sanji/images/cooperator/cooperator36.jpg"><p>中国科学院植物研究所</p>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="col-md-3">
|
||||||
|
<img src="/static-sanji/images/cooperator/cooperator33.jpg"><p>中国科学院上海天文台</p>
|
||||||
|
<img src="/static-sanji/images/cooperator/cooperator31.jpg"><p>中国科学院南京地理与湖泊研究所</p>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-3">
|
||||||
|
<img src="/static-sanji/images/cooperator/cooperator2.jpg"><p>北京师范大学</p>
|
||||||
|
<img src="/static-sanji/images/cooperator/cooperator19.jpg"><p>西北大学</p>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-3">
|
||||||
|
<img src="/static-sanji/images/cooperator/cooperator23.jpg"><p>中国地质大学(武汉)</p>
|
||||||
|
<img src="/static-sanji/images/cooperator/cooperator20.png"><p>西南大学</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="swiper-slide">
|
||||||
|
<div class="col-md-3">
|
||||||
|
<img src="/static-sanji/images/cooperator/cooperator18.png"><p>上海师范大学</p>
|
||||||
|
<img src="/static-sanji/images/cooperator/cooperator24.jpg"><p>中国极地研究中心</p>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-3">
|
||||||
|
<img src="/static-sanji/images/cooperator/cooperator3.jpg"><p>成都高原气象研究所</p>
|
||||||
|
<img src="/static-sanji/images/cooperator/cooperator16.png"><p>清华大学</p>
|
||||||
|
</div>
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
<img src="/static-sanji/images/cooperator/cooperator37.jpg"><p>中国气象科学研究院</p>
|
<img src="/static-sanji/images/cooperator/cooperator37.jpg"><p>中国气象科学研究院</p>
|
||||||
|
<img src="/static-sanji/images/cooperator/cooperator4.jpg"><p>成都信息工程大学</p>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-3">
|
||||||
|
<img src="/static-sanji/images/cooperator/cooperator22.jpg"><p>香港中文大学</p>
|
||||||
|
<img src="/static-sanji/images/cooperator/cooperator21.jpg"><p>香港大学</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="swiper-slide">
|
||||||
|
<div class="col-md-3">
|
||||||
|
<img src="/static-sanji/images/cooperator/cooperator14.jpg"><p>南方科技大学</p>
|
||||||
|
<img src="/static-sanji/images/cooperator/cooperator1.jpg"><p>北京林业大学</p>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-3">
|
||||||
|
<img src="/static-sanji/images/cooperator/cooperator9.jpg"><p>兰州大学</p>
|
||||||
|
<img src="/static-sanji/images/cooperator/cooperator8.png"><p>华东师范大学</p>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-3">
|
||||||
|
<img src="/static-sanji/images/cooperator/cooperator7.jpg"><p>西南科技大学</p>
|
||||||
|
<img src="/static-sanji/images/cooperator/cooperator12.jpg"><p>美国加州大学洛杉矶分校</p>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-3">
|
||||||
|
<img src="/static-sanji/images/cooperator/cooperator10.jpg"><p>美国德克萨斯大学</p>
|
||||||
|
<img src="/static-sanji/images/cooperator/cooperator11.jpg"><p>美国华盛顿大学</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="swiper-slide">
|
||||||
|
<div class="col-md-3">
|
||||||
|
<img src="/static-sanji/images/cooperator/cooperator13.png"><p>美国犹他大学</p>
|
||||||
|
<img src="/static-sanji/images/cooperator/cooperator5.jpg"><p>俄罗斯莫斯科州立大学</p>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-3">
|
||||||
|
<img src="/static-sanji/images/cooperator/cooperator15.png"><p>挪威南森环境遥感中心</p>
|
||||||
|
<img src="/static-sanji/images/cooperator/cooperator6.png"><p>芬兰气象研究所</p>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-3">
|
||||||
|
<img src="/static-sanji/images/cooperator/cooperator17.png"><p>瑞士苏黎世大学</p>
|
||||||
<img src="/static-sanji/images/cooperator/cooperator1.jpg"><p>华东师范大学</p>
|
<img src="/static-sanji/images/cooperator/cooperator1.jpg"><p>华东师范大学</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
<img src="/static-sanji/images/cooperator/cooperator1.jpg"><p>华东师范大学</p>
|
<img src="/static-sanji/images/cooperator/cooperator1.jpg"><p>华东师范大学</p>
|
||||||
<img src="/static-sanji/images/cooperator/cooperator1.jpg"><p>华东师范大学</p>
|
<img src="/static-sanji/images/cooperator/cooperator1.jpg"><p>华东师范大学</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div
|
||||||
</div>
|
</div>
|
||||||
<div class="swiper-button-prev"><span class="glyphicon glyphicon-chevron-left"></span></div>
|
<div class="swiper-button-prev"><span class="glyphicon glyphicon-chevron-left"></span></div>
|
||||||
<div class="swiper-button-next"><span class="glyphicon glyphicon-chevron-right"></span></div>
|
<div class="swiper-button-next"><span class="glyphicon glyphicon-chevron-right"></span></div>
|
||||||
|
|
|
@ -29,6 +29,19 @@ class View extends \Zend_Controller_Plugin_Abstract
|
||||||
$ctl->view->paginator = $paginator;
|
$ctl->view->paginator = $paginator;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static function addTextPaginator($data,$ctl,$limit = 10)
|
||||||
|
{
|
||||||
|
$request = $ctl->getRequest();
|
||||||
|
$page = $request->getParam('page');
|
||||||
|
|
||||||
|
$paginator = \Zend_Paginator::factory($data);
|
||||||
|
$paginator->setCurrentPageNumber($page);
|
||||||
|
$paginator->setItemCountPerPage($limit);
|
||||||
|
$paginator->setView($ctl->view);
|
||||||
|
\Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination_text.phtml');
|
||||||
|
$ctl->view->paginator = $paginator;
|
||||||
|
}
|
||||||
|
|
||||||
static function Msg($type,$content,$url=''){
|
static function Msg($type,$content,$url=''){
|
||||||
$html = '<div class="alert '.$type.'">'."\r\n";
|
$html = '<div class="alert '.$type.'">'."\r\n";
|
||||||
$html.= '<a data-dismiss="alert" class="close">×</a>'."\r\n";
|
$html.= '<a data-dismiss="alert" class="close">×</a>'."\r\n";
|
||||||
|
|
|
@ -105,3 +105,58 @@ footer p .footer-link{
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
text-decoration: none !important;
|
text-decoration: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.top-position{
|
||||||
|
height: 55px;
|
||||||
|
line-height: 55px;
|
||||||
|
padding-left: 20px;
|
||||||
|
background: #f4f4f4;
|
||||||
|
font-size: 16px;
|
||||||
|
margin-bottom: 1px;
|
||||||
|
}
|
||||||
|
.top-position a{
|
||||||
|
color: #959595;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
.top-position a:last-child{
|
||||||
|
color: #000
|
||||||
|
}
|
||||||
|
|
||||||
|
.product-nav .fication{
|
||||||
|
background: #f4f4f4;
|
||||||
|
height: 56px;
|
||||||
|
}
|
||||||
|
.product-nav .fication:nth-child(2){
|
||||||
|
margin-top: 1px;
|
||||||
|
padding-right:28px;
|
||||||
|
position: relative;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
.product-nav ul.fication:nth-child(2) span{
|
||||||
|
width:20px;
|
||||||
|
height: 20px;
|
||||||
|
cursor: pointer;
|
||||||
|
position: absolute;
|
||||||
|
right:10px;
|
||||||
|
top:18px;
|
||||||
|
background: url('../images/c-down.png') no-repeat center;
|
||||||
|
background-size: contain;
|
||||||
|
}
|
||||||
|
.product-nav ul.fication li{
|
||||||
|
line-height: 56px;
|
||||||
|
margin-left: 20px;
|
||||||
|
word-break: break-all;
|
||||||
|
display: -webkit-box;
|
||||||
|
-webkit-line-clamp: 2;
|
||||||
|
-webkit-box-orient: vertical;
|
||||||
|
overflow: hidden;
|
||||||
|
float: left;
|
||||||
|
color:#a8a8a8;
|
||||||
|
}
|
||||||
|
.product-nav ul.fication li a{
|
||||||
|
color: #a8a8a8;
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
.product-nav ul.fication li a:hover{
|
||||||
|
color:#000;
|
||||||
|
}
|
|
@ -166,6 +166,10 @@
|
||||||
.right-list ul li:first-child{
|
.right-list ul li:first-child{
|
||||||
margin-top: 16px;
|
margin-top: 16px;
|
||||||
}
|
}
|
||||||
|
.right-list a{
|
||||||
|
color: #959595;
|
||||||
|
}
|
||||||
|
|
||||||
.space-position img{
|
.space-position img{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin: 30px 0 50px 0;
|
margin: 30px 0 50px 0;
|
||||||
|
@ -198,6 +202,9 @@
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a.download-btn{
|
||||||
|
color:white;
|
||||||
|
}
|
||||||
a.download-btn:hover{
|
a.download-btn:hover{
|
||||||
color:white;
|
color:white;
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue