35 lines
1.3 KiB
PHTML
Executable File
35 lines
1.3 KiB
PHTML
Executable File
<?php
|
|
$this->headTitle($this->config->title->site);
|
|
$this->headTitle($this->config->title->data);
|
|
$this->headTitle('特色数据集');
|
|
$this->headTitle()->setSeparator(' - ');
|
|
$this->headLink()->appendStylesheet('/css/datasetcd.css');
|
|
$this->breadcrumb('<a href="/">首页</a>');
|
|
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
|
$this->breadcrumb('特色数据集');
|
|
$this->breadcrumb()->setSeparator(' > ');
|
|
$auth = Zend_Auth::getInstance();
|
|
?>
|
|
<?php
|
|
foreach ($this->rows as $row) {
|
|
?>
|
|
<div class="itemCd">
|
|
<div class="image"><img src="<?php echo $row->img; ?>" /></div>
|
|
<div class="title"><?php echo $row->title;?></div>
|
|
<div class="filesize">(<?php echo $row->size;?>MB)</div>
|
|
<div class="descript"><span class="intro">简介:</span><?php echo $row->descript; ?></div>
|
|
|
|
<div class="link">
|
|
<?php if ($row->uuid) : ?>
|
|
<a href="/data/download/uuid/<?php echo $row->uuid; ?>">直接下载</a>(需登录)
|
|
| <a href="/data/<?php echo $row->uuid; ?>">详细元数据信息</a>
|
|
<?php else: ?>
|
|
<?php if ($auth->hasIdentity()) : ?>
|
|
<a href="<?php echo $row->url;?>">下载ISO文件</a>
|
|
<?php else: ?>
|
|
<a href="/account/login">请先登录后再下载ISO文件</a>
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
| <a href="<?php echo $row->document;?>">详细数据文档</a></div>
|
|
</div>
|
|
<?php } ?> |