update tag

This commit is contained in:
avene 2018-06-24 15:20:02 +08:00
parent 9e81d2a295
commit 994442b3c1
2 changed files with 55 additions and 42 deletions

View File

@ -5,8 +5,8 @@ if (!empty($this->codename)) $this->headTitle($this->codename);
$this->headTitle()->setSeparator(' - '); $this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/static-sanjy-np/css/index.css'); $this->headLink()->appendStylesheet('/static-sanjy-np/css/index.css');
$this->headLink()->appendStylesheet('/static-sanjy-np/css/about.css'); $this->headLink()->appendStylesheet('/static-sanjy-np/css/about.css');
$this->nav[] = array('link'=>"/data/tag",'title'=>'关键词浏览'); $this->nav[] = array('link' => "/data/tag", 'title' => '关键词浏览');
$this->theme->AppendPlus($this,'colorbox'); $this->theme->AppendPlus($this, 'colorbox');
?> ?>
<!--当前位置--> <!--当前位置-->
<div class="breadcrumb-wrapper"> <div class="breadcrumb-wrapper">
@ -31,26 +31,33 @@ $this->theme->AppendPlus($this,'colorbox');
<a href="/data/onlinelist">在线数浏览</a> <a href="/data/onlinelist">在线数浏览</a>
<a href="/data/offlinelist">离线浏览</a> <a href="/data/offlinelist">离线浏览</a>
</div> </div>
</div>
</div>
<div class="container">
<div class="col-lg-12"> <?php if (!empty($this->metadata)) : ?>
<?php if (!empty($this->metadata)) : ?> <div id='metacontent'>
<div id='metacontent'>
<h1>当前浏览:<?php echo $this->codename; ?></h1> <h1>当前浏览:<?php echo $this->codename; ?></h1>
<hr /> <hr/>
<div class="col-md-3" style="padding-left: 0;">
<ul class="newUlList"> <ul class="newUlList">
<?php foreach ($this->paginator as $md) : ?> <?php foreach ($this->paginator as $md) : ?>
<li> <li>
<div class="newsImgBox"> <div class="newsImgBox">
<a href="/data/<?php echo $md['uuid'];?>"> <a href="/data/<?php echo $md['uuid']; ?>">
<img src="/service/thumb/id/<?php echo $md['id']; ?>"> <img src="/service/thumb/id/<?php echo $md['id']; ?>">
</a> </a>
</div> </div>
<div class="newRight"> </li>
<?php endforeach; ?>
</ul>
</div>
<div class="main inner-left col-md-9" style="padding-right:0 ;">
<ul class="newUlList">
<?php foreach ($this->paginator as $md) : ?>
<li>
<div class="">
<div class="newTopTitle"> <div class="newTopTitle">
<span><a href="/data/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']);?></a></span> <span><a href="/data/<?php echo $md['uuid']; ?>"><?php echo $this->escape($md['title']); ?></a></span>
<i><?php echo date("Y-m-d", strtotime($md['ts_published'])); ?></i> <i><?php echo date("Y-m-d", strtotime($md['ts_published'])); ?></i>
</div> </div>
<p> <p>
@ -61,39 +68,45 @@ $this->theme->AppendPlus($this,'colorbox');
</li> </li>
<?php endforeach; ?> <?php endforeach; ?>
</ul> </ul>
</div> </div>
<div class="container"> </div>
<div class="row"> <div class="container">
<div class="col-xs-12"> <div class="row">
<div class="page"> <div class="col-xs-12">
<div class="pagenavi"><?= $this->paginator; ?></div> <div class="page">
</div> <div class="pagenavi"><?= $this->paginator; ?></div>
</div> </div>
</div> </div>
</div> </div>
<?php else : ?> </div>
<div id='leftnav'> <?php else : ?>
<div id='leftnav'>
<?php <?php
$keytypezh=array('place'=>'地点关键词','theme'=>'主题关键词','discipline'=>'学科关键词','stratum'=>'地层关键词','temporal'=>'时间关键词'); $keytypezh = array('place' => '地点关键词', 'theme' => '主题关键词', 'discipline' => '学科关键词', 'stratum' => '地层关键词', 'temporal' => '时间关键词');
$type=''; $type = '';
foreach($this->keywords as $cg) : foreach ($this->keywords as $cg) :
if ($type!=$cg['keytype']) : if ($type != $cg['keytype']) :
if ($type!='') : ?> if ($type != '') : ?>
</ul></fieldset> </ul></fieldset>
<?php endif; <?php endif;
$type=$cg['keytype']; $type = $cg['keytype'];
?> ?>
<fieldset><legend><?php echo $keytypezh[$type]; ?></legend> <fieldset>
<ul class="list-inline"> <legend><?php echo $keytypezh[$type]; ?></legend>
<li><a href='/data/tag/<?php echo urlencode($cg['keyword']); ?>'><?php echo $cg['keyword']; ?></a><span class="note">(<?php echo $cg['count']; ?>)</span></li> <ul class="list-inline">
<?php else : ?> <li>
<li><a href='/data/tag/<?php echo urlencode($cg['keyword']); ?>'><?php echo $cg['keyword']; ?></a><span class="note">(<?php echo $cg['count']; ?>)</span></li> <a href='/data/tag/key/<?php echo urlencode($cg['keyword']); ?>'><?php echo $cg['keyword']; ?></a><span
<?php endif; ?> class="note">(<?php echo $cg['count']; ?>)</span></li>
<?php endforeach; ?> <?php else : ?>
</ul> <li>
<a href='/data/tag/key/<?php echo urlencode($cg['keyword']); ?>'><?php echo $cg['keyword']; ?></a><span
class="note">(<?php echo $cg['count']; ?>)</span></li>
<?php endif; ?>
<?php endforeach; ?>
</ul>
</fieldset> </fieldset>
</div> </div>
<?php endif; ?> <?php endif; ?>
</div> </div>
</div> </div>

View File

@ -4,7 +4,7 @@
<div class="col-md-10"> <div class="col-md-10">
<ul class="col-md-4"> <ul class="col-md-4">
<li class="first">联系我们</li> <li class="first">联系我们</li>
<li>地址:中国科学院寒区环境与工程研究院 6#1102</li> <li>单位:中国科学院西北生态环境资源研究院</li>
<li>电话0931-4967287</li> <li>电话0931-4967287</li>
<li>Emailwestdc@lzb.ac.cn</li> <li>Emailwestdc@lzb.ac.cn</li>
</ul> </ul>