修改数据分类浏览页面的样式
This commit is contained in:
parent
87815fec74
commit
af87e9a011
|
@ -3,7 +3,7 @@
|
||||||
$this->headTitle('我的账户');
|
$this->headTitle('我的账户');
|
||||||
$this->headTitle()->setSeparator(' - ');
|
$this->headTitle()->setSeparator(' - ');
|
||||||
?>
|
?>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="span3">
|
<div class="span3">
|
||||||
<div class="well sidebar-nav">
|
<div class="well sidebar-nav">
|
||||||
<?= $this->partial('account/left.phtml'); ?>
|
<?= $this->partial('account/left.phtml'); ?>
|
||||||
|
|
|
@ -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 <?php if (!empty($this->metadata)) : if($cg['name'] == $this->codename || $cg['name_zh'] == $this->codename ){?> class="active" <?php } endif; ?>>
|
||||||
<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>
|
<a href='/data/category/code/<?php echo $cg['code']; ?>'><?php (empty($cg['name_zh']))?print($cg['name']):print($cg['name_zh']); ?>
|
||||||
<?php endforeach; ?>
|
<span class="note">(<?php echo $cg['count']; ?>)</span></a></li>
|
||||||
</ul></fieldset>
|
<?php endforeach; ?>
|
||||||
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<?php if (!empty($this->metadata)) : ?>
|
<div class="row-fluid">
|
||||||
<div id='metacontent'>
|
<?php if (!empty($this->metadata)) : ?>
|
||||||
<h1>当前浏览:<?php echo $this->codename; ?></h1>
|
<div id='metacontent'>
|
||||||
<?php echo $this->page->getNavigation(); ?>
|
<h4>当前浏览:<?php echo $this->codename; ?></h4>
|
||||||
<hr />
|
<?php echo $this->page->getNavigation(); ?>
|
||||||
<?php foreach($this->metadata as $md) : ?>
|
<hr />
|
||||||
<div class="mditem">
|
<ul class="unstyled">
|
||||||
<div class="thumb"><img src="/service/thumb/id/<?php echo $md['id'];?>" /></div>
|
<?php foreach($this->metadata as $md) : ?>
|
||||||
<h2><a href="/data/<?php echo $md['uuid']; ?>"><?php echo $this->escape($md['title']);?></a>
|
<li class="well well-small" style="overflow:hidden;">
|
||||||
|
<img src="/service/thumb/id/<?php echo $md['id'];?>" class="pull-left img-polaroid img-rounded" style="margin-right:5px" />
|
||||||
</h2>
|
<h3><a href="/data/<?php echo $md['uuid']; ?>"><?php echo $this->escape($md['title']);?></a></h3>
|
||||||
<span><?php echo mb_strlen($md['description'])>400?$this->escape(mb_substr($md['description'],0,400,'UTF-8').'...'):$this->escape($md['description']);?></span>
|
<p><?php echo mb_strlen($md['description'])>400?$this->escape(mb_substr($md['description'],0,400,'UTF-8').'...'):$this->escape($md['description']);?></p>
|
||||||
</div>
|
</li>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
<?php echo $this->page->getNavigation(); ?>
|
</ul>
|
||||||
</div>
|
<?php echo $this->page->getNavigation(); ?>
|
||||||
<?php endif; ?>
|
</div>
|
||||||
|
<?php endif; ?>
|
||||||
|
</div>
|
|
@ -1,28 +1,28 @@
|
||||||
<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>
|
||||||
<li><a href="/data/timeline">时间轴浏览</a></li>
|
<li><a href="/data/timeline">时间轴浏览</a></li>
|
||||||
<li><a href="/data/map">空间浏览</a></li>
|
<li><a href="/data/map">空间浏览</a></li>
|
||||||
<li><a href="/data/timemap">时空浏览</a></li>
|
<li><a href="/data/timemap">时空浏览</a></li>
|
||||||
<li><a href="/data/browse">全部浏览</a></li>
|
<li><a href="/data/browse">全部浏览</a></li>
|
||||||
<li><a href="/data/advancesearch">高级搜索</a></li>
|
<li><a href="/data/advancesearch">高级搜索</a></li>
|
||||||
<form id="search" enctype="application/x-www-form-urlencoded" action="/data/search" method="post">
|
<form id="search" enctype="application/x-www-form-urlencoded" action="/data/search" method="post">
|
||||||
<li>
|
<li>
|
||||||
<input type="text" name="q" id="q" value="<?php echo (empty($this->key))?'回车搜索标题和摘要':$this->key; ?>" onfocus="myfocus(this);" onblur="myblur(this);">
|
<input type="text" name="q" id="q" value="<?php echo (empty($this->key))?'回车搜索标题和摘要':$this->key; ?>" onfocus="myfocus(this);" onblur="myblur(this);">
|
||||||
<input type="hidden" name="submit" value="submit">
|
<input type="hidden" name="submit" value="submit">
|
||||||
</form>
|
</form>
|
||||||
<script>
|
<script>
|
||||||
function myfocus(element) {
|
function myfocus(element) {
|
||||||
if (element.value == '回车搜索标题和摘要') {
|
if (element.value == '回车搜索标题和摘要') {
|
||||||
element.value = '';
|
element.value = '';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function myblur(element) {
|
function myblur(element) {
|
||||||
if (element.value == '') {
|
if (element.value == '') {
|
||||||
element.value = '回车搜索标题和摘要';
|
element.value = '回车搜索标题和摘要';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
Loading…
Reference in New Issue