westdc-zf1/application/default/views/scripts/hiwater/category.phtml

50 lines
1.9 KiB
PHTML
Raw Normal View History

2013-04-17 07:40:16 +00:00
<?php
$this->headTitle($this->config->title->site);
$this->headTitle($this->config->title->data);
$this->headTitle('分类浏览');
if (!empty($this->codename)) $this->headTitle($this->codename);
$this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/water.css');
$this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
$this->breadcrumb('<a href="/heihe/">'.$this->config->title->heihe.'</a>');
$this->breadcrumb('分类浏览:'.$this->codename);
$this->breadcrumb()->setSeparator(' > ');
?>
<div class="row">
<div class="span3">
<?= $this->partial('hiwater/navi.phtml'); ?>
</div>
<div class="span9">
<div><?= $this->breadcrumb() ?> </div>
<div>
<ul class="nav nav-pills">
<?php foreach($this->category as $cg) : ?>
<li <?php if($cg['code']== $this->code) echo 'class="active"' ?>>
<a href='/heihe/category/code/<?php echo $cg['code']; ?>'>
<?php (empty($cg['name_zh']))?print($cg['name']):print($cg['name_zh']); ?>
<span class="note">(<?php echo $cg['count']; ?>)</span>
</a>
</li>
<?php endforeach; ?>
</ul>
</div>
<?php if (!empty($this->metadata)) : ?>
<div class="md-list">
<?php echo $this->page->getNavigation(); ?>
<hr />
<div class="md-list">
<ol start="<?php echo $this->offset; ?>">
<?php foreach($this->metadata as $md) : ?>
<li><a href="/heihe/view/uuid/<?php echo $md['uuid']; ?>" title="<?php echo mb_strlen($md['description'])>400?$this->escape(mb_substr($md['description'],0,400,'UTF-8').'...'):$this->escape($md['description']);?>"><?php echo $md['title']; ?></a></li>
<?php endforeach; ?>
</ol>
</div>
<hr />
<?php echo $this->page->getNavigation(); ?>
</div>
<?php endif; ?>
</div>
</div>