修改数据分类浏览页面的样式
This commit is contained in:
parent
87815fec74
commit
af87e9a011
|
@ -4,39 +4,41 @@
|
||||||
$this->headTitle('分类浏览');
|
$this->headTitle('分类浏览');
|
||||||
if (!empty($this->codename)) $this->headTitle($this->codename);
|
if (!empty($this->codename)) $this->headTitle($this->codename);
|
||||||
$this->headTitle()->setSeparator(' - ');
|
$this->headTitle()->setSeparator(' - ');
|
||||||
$this->headLink()->appendStylesheet('/css/metadata.css');
|
|
||||||
$this->breadcrumb('<a href="/">首页</a>');
|
$this->breadcrumb('<a href="/">首页</a>');
|
||||||
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
||||||
$this->breadcrumb('<a href="/data/category">分类浏览</a>');
|
$this->breadcrumb('<a href="/data/category">分类浏览</a>');
|
||||||
if (!empty($this->codename)) $this->breadcrumb($this->codename);
|
if (!empty($this->codename)) $this->breadcrumb($this->codename);
|
||||||
$this->breadcrumb()->setSeparator(' > ');
|
$this->breadcrumb()->setSeparator(' > ');
|
||||||
?>
|
?>
|
||||||
<div id='tools'>
|
<div class="row-fluid">
|
||||||
<?= $this->partial('data/tools.phtml'); ?>
|
<?= $this->partial('data/tools.phtml'); ?>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="row-fluid">
|
||||||
<div id='leftnav'>
|
<h4>数据集类别</h4>
|
||||||
<fieldset><legend>数据集类别</legend>
|
<ul class="nav nav-pills">
|
||||||
<ul>
|
|
||||||
<?php foreach($this->category as $cg) : ?>
|
<?php foreach($this->category as $cg) : ?>
|
||||||
<li><a href='/data/category/code/<?php echo $cg['code']; ?>'><?php (empty($cg['name_zh']))?print($cg['name']):print($cg['name_zh']); ?></a><span class="note">(<?php echo $cg['count']; ?>)</span></li>
|
<li <?php if (!empty($this->metadata)) : if($cg['name'] == $this->codename || $cg['name_zh'] == $this->codename ){?> class="active" <?php } endif; ?>>
|
||||||
|
<a href='/data/category/code/<?php echo $cg['code']; ?>'><?php (empty($cg['name_zh']))?print($cg['name']):print($cg['name_zh']); ?>
|
||||||
|
<span class="note">(<?php echo $cg['count']; ?>)</span></a></li>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</ul></fieldset>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="row-fluid">
|
||||||
<?php if (!empty($this->metadata)) : ?>
|
<?php if (!empty($this->metadata)) : ?>
|
||||||
<div id='metacontent'>
|
<div id='metacontent'>
|
||||||
<h1>当前浏览:<?php echo $this->codename; ?></h1>
|
<h4>当前浏览:<?php echo $this->codename; ?></h4>
|
||||||
<?php echo $this->page->getNavigation(); ?>
|
<?php echo $this->page->getNavigation(); ?>
|
||||||
<hr />
|
<hr />
|
||||||
|
<ul class="unstyled">
|
||||||
<?php foreach($this->metadata as $md) : ?>
|
<?php foreach($this->metadata as $md) : ?>
|
||||||
<div class="mditem">
|
<li class="well well-small" style="overflow:hidden;">
|
||||||
<div class="thumb"><img src="/service/thumb/id/<?php echo $md['id'];?>" /></div>
|
<img src="/service/thumb/id/<?php echo $md['id'];?>" class="pull-left img-polaroid img-rounded" style="margin-right:5px" />
|
||||||
<h2><a href="/data/<?php echo $md['uuid']; ?>"><?php echo $this->escape($md['title']);?></a>
|
<h3><a href="/data/<?php echo $md['uuid']; ?>"><?php echo $this->escape($md['title']);?></a></h3>
|
||||||
|
<p><?php echo mb_strlen($md['description'])>400?$this->escape(mb_substr($md['description'],0,400,'UTF-8').'...'):$this->escape($md['description']);?></p>
|
||||||
</h2>
|
</li>
|
||||||
<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; ?>
|
<?php endforeach; ?>
|
||||||
|
</ul>
|
||||||
<?php echo $this->page->getNavigation(); ?>
|
<?php echo $this->page->getNavigation(); ?>
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
</div>
|
|
@ -1,4 +1,4 @@
|
||||||
<ul>
|
<ul class="nav nav-pills">
|
||||||
<li><a href="/data/tag">关键词浏览</a></li>
|
<li><a href="/data/tag">关键词浏览</a></li>
|
||||||
<li><a href="/data/series">序列浏览</a></li>
|
<li><a href="/data/series">序列浏览</a></li>
|
||||||
<li><a href="/data/category">分类浏览</a></li>
|
<li><a href="/data/category">分类浏览</a></li>
|
||||||
|
|
Loading…
Reference in New Issue