36 lines
1.5 KiB
PHTML
Executable File
36 lines
1.5 KiB
PHTML
Executable File
<?php
|
|
$this->headTitle('元数据');
|
|
$this->headTitle('数据集序列');
|
|
$this->headTitle($this->codename);
|
|
$this->headTitle()->setSeparator(' - ');
|
|
$this->headLink()->appendStylesheet('/css/metadata.css');
|
|
$this->breadcrumb('<a href="/">首页</a>');
|
|
$this->breadcrumb('<a href="/metadata">数据产品与服务</a>');
|
|
$this->breadcrumb('<a href="/metadata/series">数据集浏览</a>');
|
|
if (!empty($this->codename)) $this->breadcrumb($this->codename);
|
|
$this->breadcrumb()->setSeparator(' > ');
|
|
?>
|
|
<div id='tools'>
|
|
<?= $this->partial('metadata/tools.phtml'); ?>
|
|
</div>
|
|
<div id='leftnav'>
|
|
<fieldset><legend>数据集序列</legend>
|
|
<ul>
|
|
<?php foreach($this->serie as $cg) : ?>
|
|
<li><a href='/metadata/series/id/<?php echo $cg['id']; ?>'><?php echo $cg['name']; ?></a>(<?php echo $cg['count']; ?>)</li>
|
|
<?php endforeach; ?>
|
|
</ul></fieldset></div>
|
|
<div id='metacontent'>
|
|
<?php if (!empty($this->metadata)) : ?>
|
|
<h1>当前浏览数据集序列:<?php echo $this->codename; ?></h1>
|
|
<?php foreach($this->metadata as $md) : ?>
|
|
<hr />
|
|
<div class="mditem">
|
|
<div class="thumb"><img src="/metadata/thumb/id/<?php echo $md['id'];?>" /></div>
|
|
<h2><a href="/metadata/view/id/<?php echo $md['id']; ?>"><?php echo $this->escape($md['title']);?></a>
|
|
<a href="/metadata/delete/id/<?php echo $md['id'];?>"><img src="/images/del.gif"></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>
|
|
<?php endforeach; endif; ?>
|
|
</div>
|