总平台数据列表页样式

This commit is contained in:
Li Heng 2014-07-15 09:57:34 +00:00
parent 64222944d0
commit e34b817fb6
1 changed files with 17 additions and 10 deletions

View File

@ -14,18 +14,25 @@ $this->theme->AppendPlus($this,'colorbox');
<div id='metacontent'>
<h3>当前浏览:<?php echo $this->codename; ?></h3>
<?php echo $this->page->getNavigation(); ?>
<hr />
<div style="border:1PX solid #DFDFDF; padding:0px 10px;">
<?php foreach($this->metadata as $md) : ?>
<div class="mditem">
<div class="thumb">
<a href="/service/bigthumb/uuid/<?= $md['uuid'] ?>" class="colorbox">
<img src="/service/thumb/id/<?php echo $md['id'];?>" />
</a>
</div>
<h2><a href="/data/<?php echo $md['uuid']; ?>"><?php echo $this->escape($md['title']);?></a></h2>
<span><?php echo mb_strlen($md['description'])>400?$this->escape(mb_substr($md['description'],0,400,'UTF-8').'...'):$this->escape($md['description']);?></span>
</div>
<div class="clearfix" style="border-bottom:1px dashed #DFDFDF; overflow:hidden">
<div class="pull-left">
<a href="/service/bigthumb/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="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>
<?php echo $this->page->getNavigation(); ?>
</div>
<?php else : ?>