修改了序列浏览列表的样式
This commit is contained in:
parent
146953d4da
commit
197cba1594
|
@ -1,48 +1,55 @@
|
|||
<?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) : ?>
|
||||
<li><a href='/data/series/<?php echo $cg['name']; ?>'><?php echo $cg['name']; ?></a>(<?php echo $cg['count']; ?>)</li>
|
||||
<?php endforeach; ?>
|
||||
</ul></fieldset>
|
||||
<?php if ($this->showtools) : ?>
|
||||
<fieldset><legend>本序列中常用地点关键词</legend>
|
||||
<ul>
|
||||
<?php foreach($this->places as $place) : ?>
|
||||
<li><a href='/data/series/<?php echo $this->seriesid; ?>/<?php echo urlencode($place['keyword']); ?>'><?php echo $place['keyword']; ?></a><span class="note">(<?php echo $place['count']; ?>)</span></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</fieldset>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php if (!empty($this->metadata)) : ?>
|
||||
<div id='metacontent'>
|
||||
<h1>当前浏览数据集序列:<?php echo $this->codename; ?></h1>
|
||||
<?php echo $this->page->getNavigation(); ?>
|
||||
<hr />
|
||||
<?php foreach($this->metadata as $md) : ?>
|
||||
<div class="mditem">
|
||||
<div class="thumb"><img src="/service/thumb/id/<?php echo $md['id'];?>" /></div>
|
||||
<h2><a href="/data/<?php echo $md['uuid']; ?>"><?php echo $this->escape($md['title']);?></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; echo $this->page->getNavigation(); ?>
|
||||
</div>
|
||||
<?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) : ?>
|
||||
<li><a href='/data/series/<?php echo $cg['name']; ?>'><?php echo $cg['name']; ?></a>(<?php echo $cg['count']; ?>)</li>
|
||||
<?php endforeach; ?>
|
||||
</ul></fieldset>
|
||||
<?php if ($this->showtools) : ?>
|
||||
<fieldset><legend>本序列中常用地点关键词</legend>
|
||||
<ul>
|
||||
<?php foreach($this->places as $place) : ?>
|
||||
<li><a href='/data/series/<?php echo $this->seriesid; ?>/<?php echo urlencode($place['keyword']); ?>'><?php echo $place['keyword']; ?></a><span class="note">(<?php echo $place['count']; ?>)</span></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</fieldset>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php if (!empty($this->metadata)) : ?>
|
||||
<div id='metacontent'>
|
||||
<h1>当前浏览数据集序列:<?php echo $this->codename; ?></h1>
|
||||
<?php echo $this->page->getNavigation(); ?>
|
||||
<hr />
|
||||
<div class="datalist clear mt12">
|
||||
<ul id="datalist">
|
||||
<?php if($this->metadata) : foreach($this->metadata as $md) : ?>
|
||||
<li id="data_<?php echo $md['uuid']; ?>" class="databox box-shadow">
|
||||
<div class="subject text-shadow"><a href="/data/<?php echo $md['uuid']; ?>"><?php echo $this->escape($md['title']);?></a><div class="more"><a href="/data/<?php echo $md['uuid']; ?>">查看详细</a></div></div>
|
||||
<div class="data_content clear">
|
||||
<div class="thumb box-shadow"><img src="/service/thumb/id/<?php echo $md['id'];?>" /></div>
|
||||
<div class="description"><?php echo mb_strlen($md['description'])>400?$this->escape(mb_substr($md['description'],0,400,'UTF-8').'...'):$this->escape($md['description']);?></div>
|
||||
</div>
|
||||
</li>
|
||||
<?php endforeach;endif; ?>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<?php echo $this->page->getNavigation(); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
Loading…
Reference in New Issue