westdc-zf1/application/default/views/scripts/heihe/search.phtml

41 lines
1.4 KiB
PHTML
Raw Permalink Normal View History

2011-10-21 08:52:32 +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>');
2011-10-21 08:52:32 +00:00
$this->breadcrumb('快速搜索');
$this->breadcrumb()->setSeparator(' > ');
2013-06-09 15:20:15 +00:00
$this->nav[] = array('link'=>"/heihe/search",'title'=>'快速搜索');
2011-10-21 08:52:32 +00:00
?>
2013-06-09 15:20:15 +00:00
<?= $this->render('breadcrumbs.phtml') ?>
2013-04-16 08:20:54 +00:00
<div class='row'>
<div class='span2'>
2011-10-21 08:52:32 +00:00
<?= $this->partial('heihe/navi.phtml',array('key'=>$this->key)); ?>
</div>
2013-04-16 08:20:54 +00:00
<div class='span10'>
2011-10-21 08:52:32 +00:00
<?php if (!empty($this->metadata)) : ?>
<?php echo $this->page->getNavigation(); ?>
<hr />
2013-04-16 08:20:54 +00:00
<div class="mdlist">
2011-10-21 08:52:32 +00:00
<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();
else :
?>
<div>
<p>您的搜索结果为空,请尝试其他关键词进行查询。</p>
</div>
2013-04-16 08:20:54 +00:00
<?php endif; ?>
</div>
</div>