48 lines
2.0 KiB
PHTML
48 lines
2.0 KiB
PHTML
<?php
|
|
if (!empty($this->codename)) $this->headTitle($this->codename);
|
|
$theme = new \Sookon\Helpers\Theme;
|
|
$theme->AppendPlus($this,'colorbox');
|
|
?>
|
|
|
|
<div class="container">
|
|
<div id="row">
|
|
<?= $this->partial('layout/metadata/subnav'); ?>
|
|
</div>
|
|
<?php if(!empty($this->unit)) { ?>
|
|
<h3>单位:<?= $this->unit ?> <small><?= !empty($this->count) ? $this->count."条数据":"" ?></small></h3>
|
|
<?php } ?>
|
|
<?php if (!empty($this->paginator)) : ?>
|
|
<div id='metacontent'>
|
|
<?php echo $this->paginator; ?>
|
|
<div class="box">
|
|
|
|
<?php foreach($this->paginator as $md) : ?>
|
|
|
|
<div class="clearfix" style="border-bottom:1px dashed #DFDFDF; overflow:hidden">
|
|
|
|
<div class="pull-left">
|
|
<a href="/service/thumb/id/<?php echo $md['id'];?>" class="colorbox">
|
|
<img class="img-rounded img-polaroid" src="/service/thumb/id/<?php echo $md['id'];?>" style="margin:20px 20px" width="140" height="80" />
|
|
</a>
|
|
</div>
|
|
|
|
<div style="display:block; padding-left:180px;">
|
|
<h3><a href="/data/<?php echo $md['uuid']; ?>"><?php echo $md['title'];?></a></h3>
|
|
<p class=""><?php echo mb_strlen($md['description'])>400? mb_substr($md['description'],0,400,'UTF-8').'...':$md['description'];?></p>
|
|
<p class="text-right"><strong>UUID: </strong><small><?= $md['uuid'] ?></small> , <small><?= $md['filesize']."MB" ?></small></p>
|
|
<p class="pull-right"><strong class="badge badge-info ">查阅数: <?= $md['viewed'] ?></strong> , <small><?= date("Y-m-d H:i",strtotime($md['ts_created'])) ?></small></p>
|
|
|
|
</div>
|
|
</div>
|
|
<?php endforeach; ?>
|
|
</div>
|
|
</div>
|
|
<?php echo $this->paginator; ?>
|
|
<?php endif ?>
|
|
</div>
|
|
<script>
|
|
$(document).ready(function(){
|
|
$(".colorbox").colorbox({rel:"colorbox",photo:"true",transition:"fade"});
|
|
$(".colorbox").colorbox({photo:"true"});
|
|
});
|
|
</script>
|