数据列表页样式修改
This commit is contained in:
parent
c1c126ffb5
commit
ce6adec132
|
@ -128,7 +128,7 @@ class IndexController extends AbstractActionController
|
|||
|
||||
if(!empty($source))
|
||||
{
|
||||
$source = iconv("GB2312","UTF-8",$source);
|
||||
# $source = iconv("GB2312","UTF-8",$source);
|
||||
if($source == "青海湖")
|
||||
$metadata->opt->where = array(" ol.host='http://deep.qherc.org' ");
|
||||
if($source == "三江源")
|
||||
|
|
|
@ -3,40 +3,43 @@ if (!empty($this->codename)) $this->headTitle($this->codename);
|
|||
$theme = new \Sookon\Helpers\Theme;
|
||||
$theme->AppendPlus($this,'colorbox');
|
||||
?>
|
||||
<div class="row">
|
||||
<div class="span12">
|
||||
|
||||
<div class="row">
|
||||
<div class="span12">
|
||||
<?= $this->partial('layout/metadata/subnav'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<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'>
|
||||
<h1>当前浏览:<?php echo $this->codename; ?></h1>
|
||||
<?php echo $this->paginator; ?>
|
||||
<hr />
|
||||
<?php foreach($this->paginator as $md) : ?>
|
||||
<div class="mditem" style="border-bottom:1px dashed #DFDFDF; overflow:hidden">
|
||||
<div class="thumb" >
|
||||
<a href="/service/thumb/id/<?php echo $md['id'];?>" class="colorbox pull-left">
|
||||
<img src="/service/thumb/id/<?php echo $md['id'];?>" style="padding-right:20px" />
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div >
|
||||
<h2><a href="/data/<?php echo $md['uuid']; ?>"><?php echo $md['title'];?></a></h2>
|
||||
<p><?php echo mb_strlen($md['description'])>400? mb_substr($md['description'],0,400,'UTF-8').'...':$md['description'];?></p>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
<?php echo $this->paginator; ?>
|
||||
</div><!--row-->
|
||||
</div> <!--/span12-->
|
||||
</div> <!--/row-->
|
||||
<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>
|
||||
|
||||
<?php endif ?>
|
||||
</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"});
|
||||
|
|
Loading…
Reference in New Issue