westdc-zf1/application/default/views/scripts/data/thumb.phtml

89 lines
3.2 KiB
PHTML

<?php
$this->headTitle($this->config->title->site);
$this->headTitle($this->config->title->data);
$this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/static-sanji-v2/css/dataProduct.css');
$this->headLink()->appendStylesheet('/static-sanji-v2/css/header-position.css');
$this->nav[] = array('link'=>"/data/thumb",'title'=>'缩略图浏览');
?>
<?= $this->render('breadcrumbs.phtml') ?>
<!--搜索框-->
<div class="searchBox searchBox2">
<div class="container">
<div class="col-sm-12">
<div class="form-group">
<form action="/search" id="search-form">
<input type="text" name="q" id="q" class="form-control" placeholder="搜素关键词">
</form>
</div>
<i onclick="$('#search-form').submit()"></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">
</div>
</div>
<div class="container">
<?php if ($this->paginator) { ?>
<div class="row">
<div class="col-lg-12">
<div class="row">
<?php foreach ($this->paginator as $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><?= $this->escape($md['title']);?></h6>
<p>
<?php echo mb_strlen($md['description'])>120?$this->escape(mb_substr($md['description'],0,120,'UTF-8').'...'):$this->escape($md['description']);?>
</p>
<span class="pull-right">查看</span>
</div>
</div>
</a>
</div>
<?php endforeach; ?>
</div>
</div>
</div>
<div class="row">
<div class="col-xs-12">
<div class="page">
<div class="pagenavi"><?= $this->paginator; ?></div>
</div>
</div>
</div>
<?php } ?>
</div>
<script type="text/javascript" charset="utf-8">
$(document).ready(function () {
$(".colorbox").colorbox({rel: "colorbox", photo: "true", transition: "fade"});
$(".colorbox").colorbox({photo: "true"});
$('#container').masonry({
itemSelector: '.items'
});
});
</script>