45 lines
1.6 KiB
PHTML
45 lines
1.6 KiB
PHTML
|
<?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="/yrnmr/">'.$this->config->title->yrnmr.'</a>');
|
||
|
$this->breadcrumb('分类浏览:'.$this->codename);
|
||
|
$this->breadcrumb()->setSeparator(' > ');
|
||
|
?>
|
||
|
<div id='sidebar'>
|
||
|
<div id='leftnavi'>
|
||
|
<?= $this->partial('yrnmr/navi.phtml'); ?>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div id='right'>
|
||
|
<div class="clear"> </div>
|
||
|
<div id='links'>
|
||
|
<ul>
|
||
|
<?php foreach($this->category as $cg) : ?>
|
||
|
<li><a href='/yrnmr/category/code/<?php echo $cg['code']; ?>'><?php (empty($cg['name_zh']))?print($cg['name']):print($cg['name_zh']); ?></a><span class="note">(<?php echo $cg['count']; ?>)</span></li>
|
||
|
<?php endforeach; ?>
|
||
|
</ul>
|
||
|
</div>
|
||
|
|
||
|
<?php if (!empty($this->metadata)) : ?>
|
||
|
<div id='mdlist'>
|
||
|
<?php echo $this->page->getNavigation(); ?>
|
||
|
<hr />
|
||
|
<div id="mdlist">
|
||
|
<ol start="<?php echo $this->offset; ?>">
|
||
|
<?php foreach($this->metadata as $md) : ?>
|
||
|
<li><a href="/yrnmr/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>
|