This commit is contained in:
avene 2018-05-11 18:54:55 +08:00
parent 47f704f271
commit 1265fc71e2
2 changed files with 105 additions and 22 deletions

View File

@ -0,0 +1,67 @@
<?php
$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->nav[] = array('link'=>"/data/browse",'title'=>'全部浏览');
$this->theme->AppendPlus($this,'colorbox');
?>
<hr class="c-f">
<div class="container">
<div class="row">
<div class="col-lg-12">
<?= $this->partial('data/tools.phtml'); ?>
</div>
</div>
</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">
<div class="row">
<div class="col-xs-12">
<div class="page">
<div class="pagenavi"><?= $this->paginator; ?></div>
</div>
</div>
</div>
</div>
<script src="/static-sanji/js/data-list.js"></script>
<script type="text/javascript" charset="utf-8">
//$(document).ready(function(){
// $(".colorbox").colorbox({rel:"colorbox",photo:"true",transition:"fade"});
// $(".colorbox").colorbox({photo:"true"});
//});
</script>

View File

@ -1,11 +1,15 @@
<?php <?php
$this->headTitle($this->config->title->site); $this->headTitle($this->config->title->site);
$this->headTitle($this->config->title->data); $this->headTitle($this->config->title->data);
$this->headTitle('全部浏览'); $this->headTitle('数据列表浏览');
$this->headTitle()->setSeparator(' - '); $this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/static-sanji/css/data-list.css'); $this->headLink()->appendStylesheet('/static-sanji/css/data-list.css');
$this->nav[] = array('link'=>"/data/browse",'title'=>'全部浏览'); $this->headLink()->appendStylesheet('/static-sanji-v2/css/bootstrap.min.css');
$this->theme->AppendPlus($this,'colorbox'); $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');
?> ?>
<hr class="c-f"> <hr class="c-f">
<div class="container"> <div class="container">
@ -15,31 +19,43 @@
</div> </div>
</div> </div>
</div> </div>
<hr class="c-f"> <!--最近更新数据-->
<div class="intro1">
<div class="container">
<h2 class="title">最近更新数据</h2>
<a href="">查看更多</a>
</div>
</div>
<div class="container"> <div class="container">
<div class="col-lg-12"> <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">
<div class="c-cover"></div> <div class="c-cover"></div>
<a class="c-cover" href="/data/<?php echo $md['uuid'];?>"></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> <div class="c-img"
<!-- <a href="/service/bigthumb/uuid/--><?//= $md['uuid'] ?><!--" class="pull-left colorbox">--> style="background:url('/service/thumb/id/<?php echo $md['id']; ?>') no-repeat center; background-size:cover"></div>
<!-- <img class="media-object" src="/service/thumb/id/--><?php //echo $md['id'];?><!--">--> <!-- <a href="/service/bigthumb/uuid/-->
<? //= $md['uuid'] ?><!--" class="pull-left colorbox">-->
<!-- <img class="media-object" src="/service/thumb/id/-->
<?php //echo $md['id'];?><!--">-->
<!-- </a>--> <!-- </a>-->
</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-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-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"> <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>
<div class="dam clear"> <div class="dam clear">
<div class="c-left"> <div class="c-left">
<i>文件大小</i> <i>文件大小</i>
<em><?php echo round($md['filesize'] / 2014, 2) > 0.99 ? round($md['filesize'] / 2014, 2) : '小于1'?>MB</em> <em><?php echo round($md['filesize'] / 2014, 2) > 0.99 ? round($md['filesize'] / 2014, 2) : '小于1' ?>
MB</em>
</div> </div>
<a class="c-right" href="/data/<?php echo $md['uuid'];?>">更多</a> <a class="c-right" href="/data/<?php echo $md['uuid']; ?>">更多</a>
</div> </div>
</div> </div>
</div> </div>
@ -60,8 +76,8 @@
<script src="/static-sanji/js/data-list.js"></script> <script src="/static-sanji/js/data-list.js"></script>
<script type="text/javascript" charset="utf-8"> <script type="text/javascript" charset="utf-8">
//$(document).ready(function(){ //$(document).ready(function(){
// $(".colorbox").colorbox({rel:"colorbox",photo:"true",transition:"fade"}); // $(".colorbox").colorbox({rel:"colorbox",photo:"true",transition:"fade"});
// $(".colorbox").colorbox({photo:"true"}); // $(".colorbox").colorbox({photo:"true"});
//}); //});
</script> </script>