总平台数据列表页样式

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'> <div id='metacontent'>
<h3>当前浏览:<?php echo $this->codename; ?></h3> <h3>当前浏览:<?php echo $this->codename; ?></h3>
<?php echo $this->page->getNavigation(); ?> <?php echo $this->page->getNavigation(); ?>
<hr /> <div style="border:1PX solid #DFDFDF; padding:0px 10px;">
<?php foreach($this->metadata as $md) : ?> <?php foreach($this->metadata as $md) : ?>
<div class="mditem"> <div class="clearfix" style="border-bottom:1px dashed #DFDFDF; overflow:hidden">
<div class="thumb">
<a href="/service/bigthumb/uuid/<?= $md['uuid'] ?>" class="colorbox"> <div class="pull-left">
<img src="/service/thumb/id/<?php echo $md['id'];?>" /> <a href="/service/bigthumb/id/<?php echo $md['id'];?>" class="colorbox">
</a> <img class="img-rounded img-polaroid" src="/service/thumb/id/<?php echo $md['id'];?>" style="margin:20px 20px" width="140" height="80" />
</div> </a>
<h2><a href="/data/<?php echo $md['uuid']; ?>"><?php echo $this->escape($md['title']);?></a></h2> </div>
<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 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; ?> <?php endforeach; ?>
</div>
<?php echo $this->page->getNavigation(); ?> <?php echo $this->page->getNavigation(); ?>
</div> </div>
<?php else : ?> <?php else : ?>