修改了tag浏览页面的样式,修改了关于我们和新闻中心页面的子导航样式
This commit is contained in:
parent
beada1d08b
commit
b3fa55e6f1
|
@ -1,53 +1,57 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->data);
|
||||
if (!empty($this->codename)) $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/tag">关键词浏览</a>');
|
||||
if (!empty($this->codename)) $this->breadcrumb($this->codename);
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div id='tools'>
|
||||
<?= $this->partial('data/tools.phtml'); ?>
|
||||
</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; ?>
|
||||
<?php echo $this->page->getNavigation(); ?>
|
||||
</div>
|
||||
<?php else : ?>
|
||||
<div id='leftnav'>
|
||||
<?php
|
||||
$keytypezh=array('place'=>'地点关键词','theme'=>'主题关键词','discipline'=>'学科关键词','stratum'=>'地层关键词','temporal'=>'时间关键词');
|
||||
$type='';
|
||||
foreach($this->keywords as $cg) :
|
||||
if ($type!=$cg['keytype']) :
|
||||
if ($type!='') : ?>
|
||||
</ul></fieldset>
|
||||
<?php endif;
|
||||
$type=$cg['keytype'];
|
||||
?>
|
||||
<fieldset><legend><?php echo $keytypezh[$type]; ?></legend>
|
||||
<ul>
|
||||
<li><a href='/data/tag/<?php echo urlencode($cg['keyword']); ?>'><?php echo $cg['keyword']; ?></a><span class="note">(<?php echo $cg['count']; ?>)</span></li>
|
||||
<?php else : ?>
|
||||
<li><a href='/data/tag/<?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></div>
|
||||
<?php endif; ?>
|
||||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->data);
|
||||
if (!empty($this->codename)) $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/tag">关键词浏览</a>');
|
||||
if (!empty($this->codename)) $this->breadcrumb($this->codename);
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div id='tools'>
|
||||
<?= $this->partial('data/tools.phtml'); ?>
|
||||
</div>
|
||||
<?php if (!empty($this->metadata)) : ?>
|
||||
<div id='metacontent'>
|
||||
<h2>当前浏览:<?php echo $this->codename; ?></h2>
|
||||
<?php echo $this->page->getNavigation(); ?>
|
||||
<hr />
|
||||
<div class="datalist clear mt12">
|
||||
<ul id="datalist">
|
||||
<?php foreach($this->metadata as $md) : ?>
|
||||
<li>
|
||||
<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; ?>
|
||||
</ul>
|
||||
</div>
|
||||
<?php echo $this->page->getNavigation(); ?>
|
||||
</div>
|
||||
<?php else : ?>
|
||||
<div id='leftnav'>
|
||||
<?php
|
||||
$keytypezh=array('place'=>'地点关键词','theme'=>'主题关键词','discipline'=>'学科关键词','stratum'=>'地层关键词','temporal'=>'时间关键词');
|
||||
$type='';
|
||||
foreach($this->keywords as $cg) :
|
||||
if ($type!=$cg['keytype']) :
|
||||
if ($type!='') : ?>
|
||||
</ul></fieldset>
|
||||
<?php endif;
|
||||
$type=$cg['keytype'];
|
||||
?>
|
||||
<fieldset><legend><?php echo $keytypezh[$type]; ?></legend>
|
||||
<ul>
|
||||
<li><a href='/data/tag/<?php echo urlencode($cg['keyword']); ?>'><?php echo $cg['keyword']; ?></a><span class="note">(<?php echo $cg['count']; ?>)</span></li>
|
||||
<?php else : ?>
|
||||
<li><a href='/data/tag/<?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></div>
|
||||
<?php endif; ?>
|
||||
|
|
|
@ -41,6 +41,6 @@ h2 a, h2 a:visited{padding-right:20px;color:#808080;background-image:url(../imag
|
|||
|
||||
.subnav{
|
||||
width:100%;
|
||||
background:url(/static/images/subnav_bg.png) 0 0 no-repeat;
|
||||
height:20px;
|
||||
background:url(/static/images/subnav_title_li_bg.png) 0 0 repeat-x;
|
||||
height:26px;line-height:26px;
|
||||
}
|
|
@ -1,82 +1,6 @@
|
|||
#metacontent{clear:left;margin-left:10px;}
|
||||
hr{clear:left;border: none 0;border-bottom:1px dashed #ccc;height: 1px;}
|
||||
#leftnav{margin-bottom:10px;clear:left;}
|
||||
/*#metacontent{float:left;}*/
|
||||
#features, #leftContainer{width:48%;float:left;margin-right:2%;clear:left;margin-bottom:10px;margin-left:10px;}
|
||||
#latest, #services{width:48%;float:left;margin-bottom:10px;font-size:13px;}
|
||||
#leftContainer{margin-top:5px;overflow:hidden;}
|
||||
/*latest*/
|
||||
#latest .title{border-bottom:1px dotted #c7ddc7;padding: 5px 15px 5px;font-size: 16px; font-weight:bold;overflow:hidden;}
|
||||
#latest .more a{color:Green; padding-right: 20px; background:url(../images/arrow.gif) no-repeat right center;}
|
||||
#latest ul {width:100%;margin:0px;padding:0px;overflow:hidden;word-wrap: break-word;}
|
||||
#latest ul li{margin:0px;padding:0px;width:auto;white-space: normal;}
|
||||
#latest .date{font-size: 90%;color:#888;}
|
||||
/*features*/
|
||||
#features .title{font-size: 14px; font-weight:bold;margin-bottom:5px; padding-left:16px;}
|
||||
#features #links{float:right; clear:right; width:160px;margin-right:0px;}
|
||||
#features .description p{margin-bottom:5px;margin-top:0px; text-indent:16px;}
|
||||
#features .more a{color:Green; padding-right: 20px; background:url(../images/arrow.gif) no-repeat right center;}
|
||||
|
||||
/*data_links*/
|
||||
#links{overflow:hidden;}
|
||||
#links .title{background:#c7ddc7; padding: 5px 15px 5px;font-size: 16px; font-weight:bold;overflow:hidden;}
|
||||
#links h3{clear:both;color:rgb(153, 0, 51);font-size:14px;background: url(/images/arrow_red_10x10.gif) no-repeat left center;padding-left:13px;margin:7px 0;}
|
||||
#links ul{margin:0px; padding-left:10px;clear:left;}
|
||||
#links ul li{float:left;margin-left:5px;}
|
||||
#links ul li a{color:Navy; text-decoration:none;}
|
||||
#links ul li a:hover{color:Red;text-decoration:underline;}
|
||||
#leftnav li,#tools li,#category li,#keyword li,#series li{padding-left: 10px;background: url(/images/square.gif) no-repeat left center;}
|
||||
.submit-group,.element-group{float:left;margin-top:-5px;}
|
||||
|
||||
#leftnav ul,#leftContainer ul{margin:0px; padding-left:0px;clear:left;}
|
||||
#leftnav ul li,#leftContainer ul li{float:left;}
|
||||
#tools ul li {float:left; padding-left:10px;}
|
||||
ul{list-style-type: none;}
|
||||
img{border:0px;}
|
||||
.thumb {clear:left;float:left;margin:5px;}
|
||||
.thumb img{border:1px solid #ccc;padding:3px; max-width:180px;}
|
||||
.summary{text-indent:2em;}
|
||||
.form{float:left;clear:left;}
|
||||
.more{font-size: 11px;}
|
||||
|
||||
/*services*/
|
||||
#services .title{border-top:solid #c7ddc7 5px; padding: 5px 15px 5px;font-size: 16px; font-weight:bold;}
|
||||
#services h3{font-size: 14px;padding-top:0px;margin-top:10px;margin-bottom:0px;}
|
||||
#services .description{color:#888;}
|
||||
#services ul{padding-left:16px; margin:0px;}
|
||||
#services p{margin:0px;}
|
||||
#services .item{clear:both;border-top: dotted #ccc 1px;}
|
||||
#services .items{color:#888;}
|
||||
|
||||
dd,dt{float:left;margin:0;}
|
||||
form{margin:0px;display:inline;}
|
||||
#links dd {padding-bottom:5px;margin-left:5px;margin-top:-5px;}
|
||||
.note{font-size:10px;color:gray;}
|
||||
|
||||
|
||||
li {white-space:nowrap;}
|
||||
.fieldlist{overflow:hidden;width:100%;}
|
||||
#series fieldset {border-bottom:0;}
|
||||
#category{overflow:hidden;}
|
||||
#category fieldset {border-bottom:0;overflow:hidden;}
|
||||
#category fieldset ul {overflow:hidden;}
|
||||
fieldset ul li{overflow:hidden;line-height:24px;height:24px;}
|
||||
fieldset ul li a{line-height:24px;font-size:12px;font-family:Tahoma, Geneva, sans-serif;}
|
||||
#detailxml {margin:10px;}
|
||||
#detailxml fieldset {clear:left;border:1px dotted; padding:10px;width:95%;}
|
||||
#detailxml ul {clear:left;width:95%;}
|
||||
#detailxml ul li {display:inline;float:left;}
|
||||
#detailxml .name {width:150px;text-align:left;float:left;color:red;}
|
||||
#detailxml .item{clear:left;margin-left:20px;}
|
||||
#detailxml .item p{padding-left:20px;}
|
||||
legend { background:#fff;}
|
||||
/*
|
||||
* mditem
|
||||
*/
|
||||
.mditem {width:100%;overflow:hidden;border-bottom:1px dashed #ccc;padding:5px 0;}
|
||||
.mditem h2{text-indent:24px;}
|
||||
.mditem p{text-indent:24px;font-size:12px;}
|
||||
|
||||
#tools {width:100%;overflow:hidden;}
|
||||
#tools ul li{float:left;padding-left:5px;margin-right:5px;}
|
||||
#tools ul li a:hover{background:#329ECC;color:#FFF;}
|
||||
|
||||
/*
|
||||
* paginationControl
|
||||
|
|
|
@ -2,10 +2,11 @@
|
|||
/* CSS Document */
|
||||
#page{background:url(/static/images/page_bg.png) 0 0 repeat-x;width:100%;}
|
||||
|
||||
.subnav{background:url(/static/images/subnav_bg.png) 0 0 no-repeat;width:100%;}
|
||||
.subnav ul{margin-left:60px;width:870px;overflow:hidden;}
|
||||
.subnav ul li{width:130px;font-size:14px;text-align:center;float:left;}
|
||||
.subnav{width:100%;overflow:hidden;}
|
||||
.subnav ul{width:100%;overflow:hidden;padding:0px;margin:0px;background:url(/static/images/subnav_title_li_bg.png) 0 0 repeat-x;height:26px;line-height:26px;}
|
||||
.subnav ul li{width:98px;font-size:14px;float:left;overflow:hidden;text-indent:10px;}
|
||||
.subnav ul li a{color:#FFF;}
|
||||
.subnav ul li a:hover{ text-decoration:underline;}
|
||||
|
||||
.archives_list{width:80%;margin:0 auto;}
|
||||
.archives_list ul li{border-bottom:1px dashed #ccc;padding:5px 0;}
|
||||
|
|
Loading…
Reference in New Issue