修改了关键词浏览页面和全部浏览页面的样式

This commit is contained in:
Li Jianxuan 2012-06-19 03:17:13 +00:00
parent 883d0a9b9c
commit d77d38d2e5
2 changed files with 38 additions and 26 deletions

View File

@ -1,25 +1,30 @@
<?php
$this->headTitle($this->config->title->site);
$this->headTitle($this->config->title->data);
$this->headTitle('全部浏览');
$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('浏览');
$this->breadcrumb()->setSeparator(' > ');
?>
<div id='tools'>
<?= $this->partial('data/tools.phtml'); ?>
</div>
<?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>
<div class="summary"><?php echo str_replace(array("\r\n", "\n", "\r"),'<br />',mb_strlen($md['description'])>400?$this->escape(mb_substr($md['description'],0,400,'UTF-8').'...'):$this->escape($md['description']));?></div>
</div>
<?php endforeach; ?>
<?php echo $this->page->getNavigation(); ?>
<?php
$this->headTitle($this->config->title->site);
$this->headTitle($this->config->title->data);
$this->headTitle('全部浏览');
$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('浏览');
$this->breadcrumb()->setSeparator(' > ');
?>
<div id='tools'>
<?= $this->partial('data/tools.phtml'); ?>
</div>
<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>
<div class="PageNavigation">
<?php echo $this->page->getNavigation(); ?>
</div>

View File

@ -2,10 +2,17 @@
#tools ul li{float:left;padding-left:5px;margin-right:5px;}
#tools ul li a:hover{background:#329ECC;color:#FFF;}
#leftnav{width:100%;overflow:hidden;}
#leftnav fieldset ul{width:100%;overflow:hidden;}
#leftnav fieldset ul li{float:left;margin:0 3px;}
#leftnav fieldset ul li a{display:block;float:left;padding:3px;}
#leftnav fieldset ul li span.note{display:block;float:left;padding:3px 0;}
#leftnav fieldset ul li a:hover{background:#329ECC;color:#FFF;}
/*
* paginationControl
*/
.PageNavigation{float:left;margin-left:200px;padding-left:30px;}
.PageNavigation{}
.paginationControl{float:right;padding-left:30px;margin:10px auto;}
.paginationControl A {border:#9aafe5 1px solid;padding:2px 5px;color:#2e6ab1;margin-right:2px;TEXT-DECORATION:none}
.paginationControl A:hover {border:#2b66a5 1px solid;COLOR: #000;BACKGROUND-COLOR:lightyellow}