style change

This commit is contained in:
wlx 2013-05-19 02:30:10 +00:00
parent 4611e4c9a2
commit 706071835d
3 changed files with 31 additions and 25 deletions

View File

@ -26,15 +26,17 @@ $this->nav[] = array('link'=>"/data/category",'title'=>'分类浏览');
<h4>当前浏览:<?php echo $this->codename; ?></h4> <h4>当前浏览:<?php echo $this->codename; ?></h4>
<?php echo $this->page->getNavigation(); ?> <?php echo $this->page->getNavigation(); ?>
<hr /> <hr />
<ul class="unstyled">
<?php foreach($this->metadata as $md) : ?> <?php foreach($this->metadata as $md) : ?>
<li class="well well-small" style="overflow:hidden;"> <div class="media well well-small">
<img src="/service/thumb/id/<?php echo $md['id'];?>" class="pull-left img-polaroid img-rounded" style="margin-right:5px" /> <a href="/service/bigthumb/uuid/<?= $md['uuid'] ?>" class="pull-left colorbox">
<h3><a href="/data/<?php echo $md['uuid']; ?>"><?php echo $this->escape($md['title']);?></a></h3> <img class="media-object" src="/service/thumb/id/<?php echo $md['id'];?>">
<p><?php echo mb_strlen($md['description'])>400?$this->escape(mb_substr($md['description'],0,400,'UTF-8').'...'):$this->escape($md['description']);?></p> </a>
</li> <div class="media-body">
<h4 class="media-heading"><a href="/data/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']);?></a></h4>
<div class="summary"><?php echo str_replace(array("\r\n", "\n", "\r"),'<br />',mb_strlen($md['description'])>400?$this->escape(mb_substr($md['description'],0,400,'UTF-8').'...'):$this->escape($md['description']));?></div>
</div>
</div>
<?php endforeach; ?> <?php endforeach; ?>
</ul>
<?php echo $this->page->getNavigation(); ?> <?php echo $this->page->getNavigation(); ?>
</div> </div>
<?php endif; ?> <?php endif; ?>

View File

@ -1,25 +1,27 @@
<?php <?php
$this->headTitle($this->config->title->site); $this->headTitle($this->config->title->site);
$this->headTitle($this->config->title->data); $this->headTitle($this->config->title->data);
$this->headTitle('离线数据清单'); $this->headTitle('离线数据浏览');
$this->headTitle($this->codename); $this->headTitle($this->codename);
$this->headTitle()->setSeparator(' - '); $this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/metadata.css'); $this->headLink()->appendStylesheet('/css/metadata.css');
$this->breadcrumb('<a href="/">首页</a>'); $this->nav[] = array('link'=>"/data/offline",'title'=>'离线数据浏览');
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
$this->breadcrumb('离线数据清单');
$this->breadcrumb()->setSeparator(' > ');
?> ?>
<div class="row-fluid"> <div class="row-fluid">
<?= $this->render('breadcrumbs.phtml'); ?>
<?= $this->partial('data/tools.phtml'); ?> <?= $this->partial('data/tools.phtml'); ?>
</div> </div>
<?php echo $this->page->getNavigation(); ?> <?php echo $this->page->getNavigation(); ?>
<hr /> <hr />
<?php foreach($this->metadata as $md) : ?> <?php foreach($this->metadata as $md) : ?>
<div class="mditem"> <div class="media well well-small">
<a href="/data/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']);?></a> <a href="/service/bigthumb/uuid/<?= $md['uuid'] ?>" class="pull-left colorbox">
<a href="/data/xml/id/<?php echo $md['id'];?>"><img src="/images/xml.gif" /></a> <img class="media-object" src="/service/thumb/id/<?php echo $md['id'];?>">
<a href="/data/doc/uuid/<?php echo $md['uuid'];?>"><img src="/images/doc-icon.png" /></a> </a>
<div class="media-body">
<h4 class="media-heading"><a href="/data/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']);?></a></h4>
<div class="summary"><?php echo str_replace(array("\r\n", "\n", "\r"),'<br />',mb_strlen($md['description'])>400?$this->escape(mb_substr($md['description'],0,400,'UTF-8').'...'):$this->escape($md['description']));?></div>
</div>
</div> </div>
<?php endforeach; ?> <?php endforeach; ?>
<hr /> <hr />

View File

@ -1,25 +1,27 @@
<?php <?php
$this->headTitle($this->config->title->site); $this->headTitle($this->config->title->site);
$this->headTitle($this->config->title->data); $this->headTitle($this->config->title->data);
$this->headTitle('在线数据清单'); $this->headTitle('在线数据浏览');
$this->headTitle($this->codename); $this->headTitle($this->codename);
$this->headTitle()->setSeparator(' - '); $this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/metadata.css'); $this->headLink()->appendStylesheet('/css/metadata.css');
$this->breadcrumb('<a href="/">首页</a>'); $this->nav[] = array('link'=>"/data/offline",'title'=>'在线数据浏览');
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
$this->breadcrumb('在线数据清单');
$this->breadcrumb()->setSeparator(' > ');
?> ?>
<div> <div>
<?= $this->render('breadcrumbs.phtml'); ?>
<?= $this->partial('data/tools.phtml'); ?> <?= $this->partial('data/tools.phtml'); ?>
</div> </div>
<?php echo $this->page->getNavigation(); ?> <?php echo $this->page->getNavigation(); ?>
<hr /> <hr />
<?php foreach($this->metadata as $md) : ?> <?php foreach($this->metadata as $md) : ?>
<div class="mditem"> <div class="media well well-small">
<a href="/data/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']);?></a> <a href="/service/bigthumb/uuid/<?= $md['uuid'] ?>" class="pull-left colorbox">
<a href="/data/xml/id/<?php echo $md['id'];?>"><img src="/images/xml.gif" /></a> <img class="media-object" src="/service/thumb/id/<?php echo $md['id'];?>">
<a href="/data/doc/uuid/<?php echo $md['uuid'];?>"><img src="/images/doc-icon.png" /></a> </a>
<div class="media-body">
<h4 class="media-heading"><a href="/data/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']);?></a></h4>
<div class="summary"><?php echo str_replace(array("\r\n", "\n", "\r"),'<br />',mb_strlen($md['description'])>400?$this->escape(mb_substr($md['description'],0,400,'UTF-8').'...'):$this->escape($md['description']));?></div>
</div>
</div> </div>
<?php endforeach; ?> <?php endforeach; ?>
<hr /> <hr />