30 lines
1.6 KiB
PHTML
30 lines
1.6 KiB
PHTML
|
<?php
|
||
|
$this->headTitle($this->config->title->site);
|
||
|
$this->headTitle($this->config->title->metadata);
|
||
|
$this->headTitle('全部浏览');
|
||
|
$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/browse">全部浏览</a>');
|
||
|
$this->breadcrumb()->setSeparator(' > ');
|
||
|
?>
|
||
|
<div id='tools'>
|
||
|
<?= $this->partial('metadata/tools.phtml'); ?>
|
||
|
</div>
|
||
|
<?php echo $this->page->getNavigation(); ?>
|
||
|
<?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>
|
||
|
<a href="/metadata/xml/id/<?php echo $md['id'];?>"><img src="/images/xml.gif" /></a>
|
||
|
<a href="/metadata/convert/format/iso19139/id/<?php echo $md['id'];?>"><img src="/images/iso19139.gif" /></a>
|
||
|
<a href="/metadata/convert/format/fgdc/id/<?php echo $md['id'];?>"><img src="/images/fgdc.gif" /></a>
|
||
|
<a href="/metadata/map/id/<?php echo $md['id']; ?>"><img src="/images/map.gif" /></a>
|
||
|
</h2>
|
||
|
<div class="summary"><?php echo str_replace(array("\r\n", "\n", "\r"),'<br />',mb_strlen($md['description'])>400?$this->escape(mb_substr($md['description'],0,400,'UTF-8').'...'):$this->escape($md['description']));?></div>
|
||
|
</div>
|
||
|
<?php endforeach; ?>
|