2009-03-06 03:20:46 +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/metadata.css');
|
|
|
|
$this->breadcrumb('<a href="/">首页</a>');
|
|
|
|
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
|
|
|
$this->breadcrumb('快速搜索');
|
|
|
|
$this->breadcrumb()->setSeparator(' > ');
|
|
|
|
?>
|
|
|
|
<div id='tools'>
|
2011-10-26 06:19:08 +00:00
|
|
|
<?= $this->partial('data/tools.phtml',array('key'=>$this->key)); ?>
|
2009-03-06 03:20:46 +00:00
|
|
|
</div>
|
2011-10-26 06:19:08 +00:00
|
|
|
|
2009-03-06 03:20:46 +00:00
|
|
|
<?php if (!empty($this->metadata)) : ?>
|
|
|
|
<?php echo $this->page->getNavigation();
|
|
|
|
foreach($this->metadata as $md) : ?>
|
|
|
|
<hr />
|
|
|
|
<div class="mditem">
|
2011-10-26 09:34:33 +00:00
|
|
|
<div class="thumb"><img src="/service/thumb/id/<?php echo $md['id'];?>" /></div>
|
2009-03-06 03:20:46 +00:00
|
|
|
<h2><a href="/data/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']);?></a>
|
|
|
|
</h2>
|
|
|
|
<span><?php echo mb_strlen($md['description'])>400?$this->escape(mb_substr($md['description'],0,400,'UTF-8').'...'):$this->escape($md['description']);?></span>
|
|
|
|
</div>
|
2009-11-27 14:20:19 +00:00
|
|
|
<?php endforeach; ?>
|
|
|
|
<hr />
|
|
|
|
<?php echo $this->page->getNavigation();?>
|
|
|
|
<?php endif; ?>
|