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