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

42 lines
1.5 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="/glacier/">'.$this->config->title->glacier.'</a>');
$this->breadcrumb('快速搜索');
$this->breadcrumb()->setSeparator(' > ');
$this->nav[] = array('link'=>"/glacier/",'title'=>$this->config->title->glacier);
$this->nav[] = array('link'=>"",'title'=>'快速搜索');
?>
<?= $this->render('breadcrumbs.phtml'); ?>
<div class='row'>
<div class='span2'>
<?= $this->partial('glacier/navi.phtml',array('key'=>$this->key)); ?>
</div>
<div class='span10'>
<?php if (!empty($this->metadata)) : ?>
<?php echo $this->page->getNavigation(); ?>
<hr />
<div class="mdlist">
<ol start="<?php echo $this->offset; ?>">
<?php foreach($this->metadata as $md) : ?>
<li><a href="/glacier/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>
<?php endif; ?>
</div>
</div>