This commit is contained in:
avene 2018-05-12 10:43:02 +08:00
parent a5ece832f4
commit 53fd821832
2 changed files with 121 additions and 61 deletions

View File

@ -3,87 +3,83 @@ $this->headTitle($this->config->title->site);
$this->headTitle($this->config->title->data);
$this->headTitle('数据列表浏览');
$this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/static-sanji/css/data-list.css');
$this->headLink()->appendStylesheet('/static-sanji-v2/css/bootstrap.min.css');
$this->headLink()->appendStylesheet('/static-sanji-v2/css/top.css');
$this->headLink()->appendStylesheet('/static-sanji-v2/css/dataProduct.css');
$this->headLink()->appendStylesheet('/static-sanji-v2/css/bottom.css');
$this->nav[] = array('link' => "/data/browse", 'title' => '数据列表浏览');
$this->theme->AppendPlus($this, 'colorbox');
$this->headLink()->appendStylesheet('/static-sanji-v2/css/header-position.css');
?>
<hr class="c-f">
<div class="container">
<div class="row">
<div class="col-sm-12">
<div class="fixTab">
<a href="/">首页</a>
<span>/</span>
<a href="/data">数据产品</a>
</div>
</div>
</div>
<!--搜索框-->
<div class="searchBox searchBox2">
<div class="container">
<div class="col-sm-12">
<div class="form-group">
<input type="text" class="form-control" placeholder="搜素关键词">
</div>
<i></i>
</div>
</div>
</div>
<!--固定搜索框-->
<div class="searchBox searchBox1">
<div class="container">
<div class="col-sm-12">
<div class="form-group">
<input type="text" class="form-control" placeholder="搜素关键词">
</div>
<i></i>
</div>
</div>
</div>
<div class="searchOne">
<div class="container">
<div class="col-lg-12">
<?= $this->partial('data/tools.phtml'); ?>
</div>
</div>
</div>
<!--最近更新数据-->
<div class="intro1">
<div class="container">
<h2 class="title">最近更新数据</h2>
<a href="">查看更多</a>
</div>
</div>
<div class="container">
<div class="col-lg-12">
<div class="row">
<?php foreach ($this->paginator as $key => $md) : ?>
<div class="col-sm-6 col-md-6">
<a href="/data/<?php echo $md['uuid']; ?>">
<div class="dataBox">
<img src="/service/thumb/id/<?php echo $md['id']; ?>" alt=""/>
<div class="rightBox">
<h6><?php echo $this->escape($md['title']); ?></h6>
<p><?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>
<span>创健时间:<?php echo date("Y-m-d", strtotime($md['ts_published'])); ?></span>
</div>
<ul class="newUlList">
<?php foreach ($this->paginator as $md) : ?>
<li>
<div class="newsImgBox">
<a href="/data/<?php echo $md['uuid'];?>">
<img src="/service/thumb/id/<?php echo $md['id']; ?>">
</a>
</div>
<div class="newRight">
<div class="newTopTitle">
<span><a href="/data/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']);?></a></span>
<i><?php echo date("Y-m-d", strtotime($md['ts_published'])); ?></i>
</div>
</a>
</div>
<p>
<?php echo str_replace(array("\r\n", "\n", "\r"), '<br />', mb_strlen($md['description']) > 120 ? $this->escape(mb_substr($md['description'], 0, 120, 'UTF-8') . '...') : $this->escape($md['description'])); ?>
</p>
<a class="more" href="/data/<?php echo $md['uuid']; ?>">更多</a>
</div>
</li>
<?php endforeach; ?>
</div>
</ul>
</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>-->
<div class="intro1">
<div class="container">
<h2 class="title">数据资源查找</h2>
</div>
</div>
<div class="container">
<?= $this->partial('data/resource-find.phtml'); ?>
</div>
<!--数据服务-->
<div class="intro1">
<div class="container">
<h2 class="title">数据服务</h2>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-sm-12">
<div class="col-sm-6 col-md-4 addOne">
<a href="" class="a1">离线数据服务记录(最近20个)</a>
</div>
<div class="col-sm-6 col-md-4 addOne">
<a href="" class="a2">如何从西部数据中心申请数据</a>
</div>
<div class="col-sm-6 col-md-4 addOne">
<a href="" class="a3">如何在西部数据中心发布数据</a>
</div>
</div>
<div class="col-md-12">
<ul class="pagination">
<li><?= $this->paginator; ?></li>
</ul>
</div>
</div>
@ -93,4 +89,5 @@ $this->theme->AppendPlus($this, 'colorbox');
// $(".colorbox").colorbox({rel:"colorbox",photo:"true",transition:"fade"});
// $(".colorbox").colorbox({photo:"true"});
//});
</script>

View File

@ -0,0 +1,63 @@
<?php
$this->headTitle($this->config->title->site);
$this->headTitle($this->config->title->data);
$this->headTitle('在线数据浏览');
$this->headTitle($this->codename);
$this->headTitle()->setSeparator(' - ');
$this->nav[] = array('link'=>"/data/offline",'title'=>'在线数据浏览');
$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>
<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'])>120 ? $this->escape(mb_substr($md['description'],0,120,'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">
<div class="row">
<div class="col-xs-12">
<div class="page">
<div class="pagenavi"><?= $this->paginator; ?></div>
</div>
</div>
</div>
</div>