38 lines
1.4 KiB
PHTML
Executable File
38 lines
1.4 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="media">
|
|
<a class="pull-left" href="#">
|
|
<img class="media-object" src="<?php echo $row->img; ?>" data-src="holder.js/64x64">
|
|
</a>
|
|
<div class="media-body">
|
|
<h4 class="media-heading"><?php echo $row->title;?>(<?php echo $row->size;?>MB)</h4>
|
|
<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>
|
|
</div>
|
|
<?php } ?> |