update pages

This commit is contained in:
jack 2018-02-05 13:24:50 +08:00
parent 89a78691bc
commit f9ff4350e5
13 changed files with 3873 additions and 1055 deletions

View File

@ -89,6 +89,8 @@ class DataController extends Zend_Controller_Action
}
function onlinelistAction()
{
$this->_helper->layout->setLayout('layout-sanji');
$page=(int)$this->_request->getParam('page');
if (empty($page)) $page=1;
$limit=30;
@ -97,12 +99,15 @@ class DataController extends Zend_Controller_Action
$row=$state->fetchAll();
$sum=$row[0]['count'];
$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->page=new Pagination($sum,$page,$limit);
view::addTextPaginator($select, $this);
}
function offlinelistAction()
{
$this->_helper->layout->setLayout('layout-sanji');
$page=(int)$this->_request->getParam('page');
if (empty($page)) $page=1;
$limit=30;
@ -111,9 +116,9 @@ class DataController extends Zend_Controller_Action
$row=$state->fetchAll();
$sum=$row[0]['count'];
$select=$this->db->select();
$select->from('normalmetadata','*')->where('datatype=1')->order('title')->limitPage($page,$limit);
$this->view->metadata = $this->db->fetchAll($select);
$this->view->page=new Pagination($sum,$page,$limit);
$select->from('normalmetadata','*')->joinLeft('mdstat','normalmetadata.uuid=mdstat.uuid', ['viewed','downloaded'])->where('datatype=1')->order('title')->limitPage($page,$limit);
view::addTextPaginator($select, $this);
}
//展示最近20条离线神情记录情况
function offlineappAction()
@ -200,21 +205,15 @@ class DataController extends Zend_Controller_Action
$row=$state->fetchAll();
$sum=$row[0]['count'];
$select=$this->db->select();
$select->from('metadata','*')->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);
$select->from('metadata','*')->joinLeft('mdstat','metadata.uuid=mdstat.uuid', ['viewed','downloaded'])->order('id desc')->limitPage($page,$limit);
$paginator = Zend_Paginator::factory($select);
$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;
view::addTextPaginator($select, $this);
}
function tagAction()
{
$this->_helper->layout->setLayout('layout-sanji');
$id = (int)$this->_request->getParam('id');
$key = $this->_request->getParam('key');
$keytype = $this->_request->getParam('keytype');
@ -241,7 +240,10 @@ class DataController extends Zend_Controller_Action
$row=$state->fetchAll();
$sum=$row[0]['count'];
$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);
//$state=$db->query($sql);
$this->view->metadata=$this->db->fetchAll($select);

View File

@ -1,5 +1,5 @@
<?php if(!empty($this->nav)){ ?>
<div class="container top-position">
<div class="top-position">
<?php foreach ($this->nav as $k=>$v){?>
<a href="<?= $v['link'] ?>"><?= $v['title']?></a>
<?php if(isset($this->nav[$k+1])) {?> <span class="divider">/</span> <?php } ?>

View File

@ -8,35 +8,43 @@
$this->theme->AppendPlus($this,'colorbox');
?>
<hr class="c-f">
<?= $this->partial('data/tools.phtml'); ?>
<hr class="c-f">
<div class="container">
<?php foreach($this->paginator as $md) : ?>
<div class="row c-list">
<div class="col-md-3 c-img-box">
<div class="c-cover"></div>
<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-author"></span><i>Admin</i> | &nbsp;<span class="c-click"></span><i>100</i> | &nbsp;<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 class="row">
<div class="col-lg-12">
<?= $this->partial('data/tools.phtml'); ?>
</div>
</div>
<?php endforeach; ?>
</div>
<hr class="c-f">
<div class="container">
<div class="col-lg-12">
<?php foreach($this->paginator as $md) : ?>
<div class="row c-list">
<div class="col-md-3 c-img-box">
<div class="c-cover"></div>
<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> | &nbsp;<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>
<?php endforeach; ?>
</div>
</div>
<div class="container">

View File

@ -4,25 +4,61 @@ $this->headTitle($this->config->title->data);
$this->headTitle('离线数据浏览');
$this->headTitle($this->codename);
$this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/metadata.css');
$this->nav[] = array('link'=>"/data/offline",'title'=>'离线数据浏览');
?>
<div class="row-fluid">
<?= $this->render('breadcrumbs.phtml'); ?>
<?= $this->partial('data/tools.phtml'); ?>
$this->headLink()->appendStylesheet('/static-sanji/css/data-list.css');
?>
<div class="container">
<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'); ?>
</div>
</div>
</div>
<?php echo $this->page->getNavigation(); ?>
<hr />
<?php foreach($this->metadata as $md) : ?>
<div class="media well well-small">
<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 class="media-body">
<h4 class="media-heading"><a href="/data/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']);?></a></h4>
<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>
<div class="container">
<div class="col-lg-12">
<hr />
<?php foreach($this->paginator as $md) : ?>
<div class="row c-list">
<div class="col-md-3 c-img-box">
<div class="c-cover"></div>
<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> | &nbsp;<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>
<?php endforeach; ?>
</div>
</div>
</div>
<?php endforeach; ?>
<hr />
<?php echo $this->page->getNavigation(); ?>
<div class="container">
<div class="row">
<div class="col-xs-12">
<div class="page">
<div class="pagenavi"><?= $this->paginator; ?></div>
</div>
</div>
</div>
</div>

View File

@ -4,25 +4,60 @@ $this->headTitle($this->config->title->data);
$this->headTitle('在线数据浏览');
$this->headTitle($this->codename);
$this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/metadata.css');
$this->nav[] = array('link'=>"/data/offline",'title'=>'在线数据浏览');
?>
<div>
<?= $this->render('breadcrumbs.phtml'); ?>
<?= $this->partial('data/tools.phtml'); ?>
$this->headLink()->appendStylesheet('/static-sanji/css/data-list.css');
?>
<div class="container">
<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'); ?>
</div>
</div>
</div>
<?php echo $this->page->getNavigation(); ?>
<hr />
<?php foreach($this->metadata as $md) : ?>
<div class="media well well-small">
<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 class="media-body">
<h4 class="media-heading"><a href="/data/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']);?></a></h4>
<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>
<div class="container">
<div class="col-lg-12">
<hr />
<?php foreach($this->paginator as $md) : ?>
<div class="row c-list">
<div class="col-md-3 c-img-box">
<div class="c-cover"></div>
<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> | &nbsp;<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>
<?php endforeach; ?>
</div>
</div>
</div>
<?php endforeach; ?>
<hr />
<?php echo $this->page->getNavigation(); ?>
<div class="container">
<div class="row">
<div class="col-xs-12">
<div class="page">
<div class="pagenavi"><?= $this->paginator; ?></div>
</div>
</div>
</div>
</div>

View File

@ -7,53 +7,93 @@ $this->headLink()->appendStylesheet('/css/metadata.css');
$this->nav[] = array('link'=>"/data/tag",'title'=>'关键词浏览');
$this->theme->AppendPlus($this,'colorbox');
?>
<div id='row-fluid'>
<?= $this->render('breadcrumbs.phtml') ?>
<?= $this->partial('data/tools.phtml'); ?>
<div class="container">
<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'); ?>
</div>
</div>
</div>
<?php if (!empty($this->metadata)) : ?>
<div id='metacontent'>
<h1>当前浏览:<?php echo $this->codename; ?></h1>
<?php echo $this->page->getNavigation(); ?>
<hr />
<?php foreach($this->metadata as $md) : ?>
<div class="mditem">
<div class="thumb">
<a href="/service/bigthumb/uuid/<?= $md['uuid'] ?>" class="colorbox">
<img src="/service/thumb/id/<?php echo $md['id'];?>" />
</a>
</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 class="container">
<div class="row">
<div class="col-lg-12">
<?php if (!empty($this->metadata)) : ?>
<div id='metacontent'>
<h1>当前浏览:<?php echo $this->codename; ?></h1>
<hr />
<?php var_dump($this->paginator) ?>
<?php foreach($this->paginator as $md) : ?>
<div class="row c-list">
<div class="col-md-3 c-img-box">
<div class="c-cover"></div>
<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> | &nbsp;<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>
<?php endforeach; ?>
</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 : ?>
<div id='leftnav'>
<?php
$keytypezh=array('place'=>'地点关键词','theme'=>'主题关键词','discipline'=>'学科关键词','stratum'=>'地层关键词','temporal'=>'时间关键词');
$type='';
foreach($this->keywords as $cg) :
if ($type!=$cg['keytype']) :
if ($type!='') : ?>
</ul></fieldset>
<?php endif;
$type=$cg['keytype'];
?>
<fieldset><legend><?php echo $keytypezh[$type]; ?></legend>
<ul>
<li><a href='/data/tag/<?php echo urlencode($cg['keyword']); ?>'><?php echo $cg['keyword']; ?></a><span class="note">(<?php echo $cg['count']; ?>)</span></li>
<?php else : ?>
<li><a href='/data/tag/<?php echo urlencode($cg['keyword']); ?>'><?php echo $cg['keyword']; ?></a><span class="note">(<?php echo $cg['count']; ?>)</span></li>
<?php endif; ?>
<?php endforeach; ?>
</ul>
</fieldset>
</div>
<?php endif; ?>
</div>
</div>
</div>
<?php endforeach; ?>
<?php echo $this->page->getNavigation(); ?>
</div>
<?php else : ?>
<div id='leftnav'>
<?php
$keytypezh=array('place'=>'地点关键词','theme'=>'主题关键词','discipline'=>'学科关键词','stratum'=>'地层关键词','temporal'=>'时间关键词');
$type='';
foreach($this->keywords as $cg) :
if ($type!=$cg['keytype']) :
if ($type!='') : ?>
</ul></fieldset>
<?php endif;
$type=$cg['keytype'];
?>
<fieldset><legend><?php echo $keytypezh[$type]; ?></legend>
<ul>
<li><a href='/data/tag/<?php echo urlencode($cg['keyword']); ?>'><?php echo $cg['keyword']; ?></a><span class="note">(<?php echo $cg['count']; ?>)</span></li>
<?php else : ?>
<li><a href='/data/tag/<?php echo urlencode($cg['keyword']); ?>'><?php echo $cg['keyword']; ?></a><span class="note">(<?php echo $cg['count']; ?>)</span></li>
<?php endif; ?>
<?php endforeach; ?>
</ul>
</fieldset></div>
<?php endif; ?>
<script>
$(document).ready(function(){
$(".colorbox").colorbox({rel:"colorbox",photo:"true",transition:"fade"});
$(".colorbox").colorbox({photo:"true"});
});
</script>

View File

@ -1,15 +1,11 @@
<div class="container product-nav">
<div class="row">
<div class="col-xs-12">
<ul class="clear fication">
<li>分类:</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/category"><i class="icon-th"></i>分类浏览</a></li>
<li><a href="/data/timeline"><i class="icon-tasks"></i>时间轴浏览</a></li>
<li><a href="/data/timemap"><i class="icon-film"></i>时空浏览</a></li>
<li><a href="/data/browse"><i class="icon-align-justify"></i>全部浏览</a></li>
</ul>
</div>
</div>
</div>
<div class="product-nav">
<ul class="clear fication">
<li>浏览方式:</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/category"><i class="icon-th"></i>分类浏览</a></li>
<li><a href="/data/timeline"><i class="icon-tasks"></i>时间轴浏览</a></li>
<li><a href="/data/timemap"><i class="icon-film"></i>时空浏览</a></li>
<li><a href="/data/browse"><i class="icon-align-justify"></i>全部浏览</a></li>
</ul>
</div>

File diff suppressed because it is too large Load Diff

View File

@ -233,94 +233,94 @@
<div class="swiper-wrapper">
<div class="swiper-slide">
<div class="col-md-3">
<img src="/static-sanji/images/cooperator/cooperator1.jpg"><p>北京林业大学</p>
<img src="/static-sanji/images/cooperator/cooperator2.jpg"><p>北京师范大学</p>
<img src="/static-sanji/images/cooperator/cooperator34.png"><p>中国科学院西北生态环境资源研究院</p>
<img src="/static-sanji/images/cooperator/cooperator35.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/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/cooperator32.jpg"><p>中国科学院青藏高原研究所</p>
<img src="/static-sanji/images/cooperator/cooperator26.jpg"><p>中国科学院大气物理研究所</p>
</div>
<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/cooperator25.png"><p>中国科学院测量与地球物理研究所</p>
</div>
<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>
</div>
<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>
<img src="/static-sanji/images/cooperator/cooperator29.jpg"><p>中国科学院地质与地球物理研究所</p>
</div>
</div>
<div class="swiper-slide">
<div class="col-md-3">
<img src="/static-sanji/images/cooperator/cooperator33.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/cooperator27.jpg"><p>中国科学院大学</p>
<img src="/static-sanji/images/cooperator/cooperator36.jpg"><p>中国科学院植物研究所</p>
</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">
<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>
</div>
<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>
</div>
</div>
</div
</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>

View File

@ -28,6 +28,19 @@ class View extends \Zend_Controller_Plugin_Abstract
\Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination_param.phtml');
$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=''){
$html = '<div class="alert '.$type.'">'."\r\n";

View File

@ -104,4 +104,59 @@ footer p .footer-link{
color: #d31919 !important;
font-weight: normal;
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;
}

View File

@ -166,6 +166,10 @@
.right-list ul li:first-child{
margin-top: 16px;
}
.right-list a{
color: #959595;
}
.space-position img{
width: 100%;
margin: 30px 0 50px 0;
@ -198,6 +202,9 @@
text-decoration: none;
}
a.download-btn{
color:white;
}
a.download-btn:hover{
color:white;
}

3151
htdocs/time1.xml Normal file

File diff suppressed because it is too large Load Diff