2009-03-06 03:20:46 +00:00
|
|
|
<?php
|
|
|
|
$this->headTitle($this->config->title->site);
|
|
|
|
$this->headTitle($this->config->title->data);
|
|
|
|
$this->headTitle('数据集序列');
|
|
|
|
$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('<a href="/data/series">数据集浏览</a>');
|
|
|
|
if (!empty($this->codename)) $this->breadcrumb($this->codename);
|
|
|
|
$this->breadcrumb()->setSeparator(' > ');
|
|
|
|
?>
|
|
|
|
<div id='tools'>
|
|
|
|
<?= $this->partial('data/tools.phtml'); ?>
|
|
|
|
</div>
|
|
|
|
<div id='leftnav'>
|
|
|
|
<fieldset><legend>数据集序列</legend>
|
|
|
|
<ul>
|
|
|
|
<?php foreach($this->serie as $cg) : ?>
|
2010-01-07 14:06:47 +00:00
|
|
|
<li><a href='/data/series/<?php echo $cg['name']; ?>'><?php echo $cg['name']; ?></a>(<?php echo $cg['count']; ?>)</li>
|
2009-03-06 03:20:46 +00:00
|
|
|
<?php endforeach; ?>
|
2010-01-07 14:06:47 +00:00
|
|
|
</ul></fieldset>
|
|
|
|
</div>
|
2009-03-06 03:20:46 +00:00
|
|
|
<div id='metacontent'>
|
|
|
|
<?php if (!empty($this->metadata)) : ?>
|
2010-01-07 14:06:47 +00:00
|
|
|
<h1>当前浏览数据集序列:<?php echo $this->codename; ?></h1><?php echo $this->page->getNavigation(); ?>
|
2009-03-06 03:20:46 +00:00
|
|
|
<?php foreach($this->metadata as $md) : ?>
|
|
|
|
<hr />
|
|
|
|
<div class="mditem">
|
|
|
|
<div class="thumb"><img src="/data/thumb/id/<?php echo $md['id'];?>" /></div>
|
2009-12-17 14:16:59 +00:00
|
|
|
<h2><a href="/data/<?php echo $md['uuid']; ?>"><?php echo $this->escape($md['title']);?></a>
|
2009-03-06 03:20:46 +00:00
|
|
|
</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>
|
|
|
|
<?php endforeach; endif; ?>
|
2010-01-07 14:06:47 +00:00
|
|
|
</div>
|
|
|
|
<?php echo $this->page->getNavigation(); ?>
|