This commit is contained in:
avene 2018-05-12 16:49:26 +08:00
parent c01c37e4ad
commit e2ec7cbc4a
1 changed files with 20 additions and 28 deletions

View File

@ -57,38 +57,30 @@ $this->headLink()->appendStylesheet('/static-sanji-v2/css/header-position.css');
</div>
<?php if($this->paginator) { ?>
<div class="row">
<div class="col-lg-12">
<h4>当前浏览数据集序列:<?php echo $this->codename; ?></h4>
<?php foreach($this->paginator as $md) : ?>
<div class="row c-list" style="margin-left: 0;">
<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>
<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>
</div>
<?php endforeach; ?>
<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>
<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; ?>
</ul>
</div>
</div>
<div class="row">
<div class="col-xs-12">
<div class="page">