新闻列表页面样式
This commit is contained in:
parent
e0fbdda367
commit
51cbbdd51b
|
@ -7,7 +7,7 @@ $this->breadcrumb('<a href="/">首页</a>');
|
|||
$this->breadcrumb('关于我们');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div class="row">
|
||||
<div class="row-fluid">
|
||||
<div class="span3">
|
||||
<?= $this->partial('about/navi.phtml'); ?>
|
||||
</div>
|
||||
|
|
|
@ -28,27 +28,29 @@ $this->theme->AppendPlus($this,'masonry');
|
|||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="span9">
|
||||
<div class="row" id="container">
|
||||
<div class="Lbox">
|
||||
<h4 class="box-title">新闻列表</h4>
|
||||
<ol >
|
||||
<?php
|
||||
foreach($this->lists as $v)
|
||||
{?>
|
||||
<?php if(count($v['list'])>0) {?>
|
||||
<div class="span4 items">
|
||||
<h3><a href="<?= $v['url'] ?>"><?= $v['title'] ?></a></h3>
|
||||
<div class="list-content">
|
||||
<ul class="unstyled">
|
||||
|
||||
<?php foreach($v['list'] as $arc){?>
|
||||
<li><small>[<?php echo date("Y-m-d",strtotime( $arc['ts_published'] )); ?>]</small>
|
||||
<a href="<?= $arc['url']?>"><?= $arc['title'] ?></a></li>
|
||||
<li><a href="<?= $arc['url']?>"><?= $arc['title'] ?></a><small>[<?php echo date("Y-m-d",strtotime( $arc['ts_published'] )); ?>]</small></li>
|
||||
<?php }?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<?php } }
|
||||
?>
|
||||
</div>
|
||||
|
||||
<?php } }?>
|
||||
</ol>
|
||||
</div>
|
||||
<div class="pagenavi">
|
||||
<?= $this->paginator; ?>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.span9 -->
|
||||
|
||||
</div>
|
||||
<script>
|
||||
$('#container').masonry({
|
||||
|
|
|
@ -44,7 +44,6 @@ $this->breadcrumb()->setSeparator(' > ');
|
|||
<h4 class="box-title">新闻列表</h4>
|
||||
<ol >
|
||||
<?php
|
||||
# print_r($this->paginator);
|
||||
if(count($this->paginator))
|
||||
{
|
||||
foreach ($this->paginator as $v)
|
||||
|
|
|
@ -1,66 +1,66 @@
|
|||
|
||||
<div class="row">
|
||||
<div class="span12" style=" border-bottom:1px dashed #E0E0E0">
|
||||
<form method="get" action="/search" id="search" class="form-search">
|
||||
<a class="btn" href="/data/browse"><i class="icon-align-justify"></i>数据列表浏览</a>
|
||||
<a class="btn" href="/data/onlinelist"><i class="icon-th"></i>在线数据清单</a>
|
||||
<a class="btn" href="/data/offlinelist"><i class="icon-th"></i>离线数据清单</a>
|
||||
<a class="btn" href="/data/visual"><i class="icon-th"></i>可视化数据</a>
|
||||
<li class="input-append">
|
||||
<input type="text" value="" id="q" name="q" class="span2 search-query " placeholder="全文搜索">
|
||||
<button type="submit" class="btn"><i class="icon-search"></i>搜索</button>
|
||||
</li>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php $keytypezh=array('place'=>'地点关键词','theme'=>'主题关键词','discipline'=>'学科关键词','stratum'=>'地层关键词','temporal'=>'时间关键词'); ?>
|
||||
<div class="row">
|
||||
<?php
|
||||
$type='theme';
|
||||
?>
|
||||
<div class="span12" style="border-bottom:1px dashed #E0E0E0">
|
||||
<h4><a href="/data/tag/keytype/theme"><img src="/sjyportal/img/keyword.png" width="16" height="16" /> <?php echo $keytypezh[$type]; ?></a></h4>
|
||||
<ul class="nav nav-pills">
|
||||
<?php foreach($this->keywords[$type] as $cg) : ?>
|
||||
<li><a href='/data/tag/<?php echo $cg['keyword']; ?>'><?php echo $cg['keyword']."( ". $cg['count'].")"; ?></a></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</div>
|
||||
<?php
|
||||
$type='discipline';
|
||||
?>
|
||||
<div class="span12" style="border-bottom:1px dashed #E0E0E0">
|
||||
<h4><a href="/data/tag/keytype/discipline"><img src="/sjyportal/img/keyword.png" width="16" height="16" /> <?php echo $keytypezh[$type]; ?></a></h4>
|
||||
<ul class="nav nav-pills">
|
||||
<?php foreach($this->keywords[$type] as $cg) : ?>
|
||||
<li><a href='/data/tag/<?php echo $cg['keyword']; ?>'><?php echo $cg['keyword']."( ". $cg['count'].")"; ?></a></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<?php
|
||||
$type='place';
|
||||
?>
|
||||
<div class="span12" style="border-bottom:1px dashed #E0E0E0">
|
||||
<h4><a href="/data/tag/keytype/place"><img src="/sjyportal/img/keyword.png" width="16" height="16" /> <?php echo $keytypezh[$type]; ?></a></h4>
|
||||
<ul class="nav nav-pills">
|
||||
<?php foreach($this->keywords[$type] as $cg) : ?>
|
||||
<li><a href='/data/tag/<?php echo $cg['keyword']; ?>'><?php echo $cg['keyword']."( ". $cg['count'].")"; ?></a></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</div>
|
||||
<?php
|
||||
$type='temporal';
|
||||
?>
|
||||
<div class="span12" style="border-bottom:1px dashed #E0E0E0">
|
||||
<h4><a href="/data/tag/keytype/temporal"><img src="/sjyportal/img/keyword.png" width="16" height="16" /> <?php echo $keytypezh[$type]; ?></a></h4>
|
||||
<ul class="nav nav-pills">
|
||||
<?php foreach($this->keywords[$type] as $cg) : ?>
|
||||
<li><a href='/data/tag/<?php echo $cg['keyword']; ?>'><?php echo $cg['keyword']."( ". $cg['count'].")"; ?></a></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="span12" style=" border-bottom:1px dashed #E0E0E0">
|
||||
<form method="get" action="/search" id="search" class="form-search">
|
||||
<a class="btn" href="/data/browse"><i class="icon-align-justify"></i>数据列表浏览</a>
|
||||
<a class="btn" href="/data/onlinelist"><i class="icon-th"></i>在线数据清单</a>
|
||||
<a class="btn" href="/data/offlinelist"><i class="icon-th"></i>离线数据清单</a>
|
||||
<a class="btn" href="/data/visual"><i class="icon-th"></i>可视化数据</a>
|
||||
<li class="input-append">
|
||||
<input type="text" value="" id="q" name="q" class="span2 search-query " placeholder="全文搜索">
|
||||
<button type="submit" class="btn"><i class="icon-search"></i>搜索</button>
|
||||
</li>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php $keytypezh=array('place'=>'地点关键词','theme'=>'主题关键词','discipline'=>'学科关键词','stratum'=>'地层关键词','temporal'=>'时间关键词'); ?>
|
||||
<div class="row">
|
||||
<?php
|
||||
$type='theme';
|
||||
?>
|
||||
<div class="span12" style="border-bottom:1px dashed #E0E0E0">
|
||||
<h4><a href="/data/tag/keytype/theme"><img src="/sjyportal/img/keyword.png" width="16" height="16" /> <?php echo $keytypezh[$type]; ?></a></h4>
|
||||
<ul class="nav nav-pills">
|
||||
<?php foreach($this->keywords[$type] as $cg) : ?>
|
||||
<li><a href='/data/tag/<?php echo $cg['keyword']; ?>'><?php echo $cg['keyword']."( ". $cg['count'].")"; ?></a></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</div>
|
||||
<?php
|
||||
$type='discipline';
|
||||
?>
|
||||
<div class="span12" style="border-bottom:1px dashed #E0E0E0">
|
||||
<h4><a href="/data/tag/keytype/discipline"><img src="/sjyportal/img/keyword.png" width="16" height="16" /> <?php echo $keytypezh[$type]; ?></a></h4>
|
||||
<ul class="nav nav-pills">
|
||||
<?php foreach($this->keywords[$type] as $cg) : ?>
|
||||
<li><a href='/data/tag/<?php echo $cg['keyword']; ?>'><?php echo $cg['keyword']."( ". $cg['count'].")"; ?></a></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<?php
|
||||
$type='place';
|
||||
?>
|
||||
<div class="span12" style="border-bottom:1px dashed #E0E0E0">
|
||||
<h4><a href="/data/tag/keytype/place"><img src="/sjyportal/img/keyword.png" width="16" height="16" /> <?php echo $keytypezh[$type]; ?></a></h4>
|
||||
<ul class="nav nav-pills">
|
||||
<?php foreach($this->keywords[$type] as $cg) : ?>
|
||||
<li><a href='/data/tag/<?php echo $cg['keyword']; ?>'><?php echo $cg['keyword']."( ". $cg['count'].")"; ?></a></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</div>
|
||||
<?php
|
||||
$type='temporal';
|
||||
?>
|
||||
<div class="span12" style="border-bottom:1px dashed #E0E0E0">
|
||||
<h4><a href="/data/tag/keytype/temporal"><img src="/sjyportal/img/keyword.png" width="16" height="16" /> <?php echo $keytypezh[$type]; ?></a></h4>
|
||||
<ul class="nav nav-pills">
|
||||
<?php foreach($this->keywords[$type] as $cg) : ?>
|
||||
<li><a href='/data/tag/<?php echo $cg['keyword']; ?>'><?php echo $cg['keyword']."( ". $cg['count'].")"; ?></a></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -14,4 +14,5 @@
|
|||
$('#myCarousel').carousel()
|
||||
})
|
||||
}(window.jQuery)
|
||||
</script>
|
||||
</script>
|
||||
<script>setPage();</script>
|
|
@ -1,51 +1,50 @@
|
|||
<!-- header -->
|
||||
<link href="/sjyportal/css/style.css" rel="stylesheet" type="text/css" />
|
||||
|
||||
|
||||
<header>
|
||||
<div class="container">
|
||||
<div class="row-fluid">
|
||||
<div class="span12">
|
||||
<div class="span4">
|
||||
<img src="/sjyportal/img/logo.png" />
|
||||
</div>
|
||||
<div class="span8 inline">
|
||||
<p class="pull-right" style="color:#000000; font-size:9px;">
|
||||
<?php
|
||||
$auth = Zend_Auth::getInstance();
|
||||
if($auth->hasIdentity())
|
||||
{
|
||||
$user = $auth->getIdentity();
|
||||
echo '<a href="/account"><i class="icon-user"></i> '.$user->username.'</a> ';
|
||||
if ($user->usertype == $this->config->auth->identifier)
|
||||
{
|
||||
echo '<a href="/admin"><i class="icon-cog"></i> 后台 </a>';
|
||||
}
|
||||
echo '<a href="/data/order"><i class="icon-shopping-cart"></i> 数据篮 </a>';
|
||||
echo '<a href="/account/logout">退出</a>';
|
||||
} else {
|
||||
echo '<a href="/account/login">登 录</a> | <a href="/account/register">注 册</a>';
|
||||
} ?>
|
||||
|
||||
</p>
|
||||
<?php $current_url =$_SERVER["REQUEST_URI"]?>
|
||||
<p>
|
||||
<ul class="nav nav-pills pull-right" id="mainmenu">
|
||||
<li style="padding-right:20px"><a href="/">首 页</a></li>
|
||||
<li style="padding-right:20px"><a href="/archives/">新 闻</a></li>
|
||||
<li style="padding-right:20px"><a href="/data">数 据</a></li>
|
||||
<li style="padding-right:20px"><a href="/about">关于我们</a></li>
|
||||
<li style="padding-right:20px" class="input-append ">
|
||||
<form action="/search" method="get"><input class="input-medium" placeholder="关键字" type="text" name="q"><button class="btn" type="submit">搜索</button></form>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div class="container">
|
||||
<?= $this->render('breadcrumbs.phtml'); ?>
|
||||
<!-- header -->
|
||||
<link href="/sjyportal/css/style.css" rel="stylesheet" type="text/css" />
|
||||
|
||||
|
||||
<header>
|
||||
<div class="container">
|
||||
<div class="row-fluid">
|
||||
<div class="span12">
|
||||
<div class="span4">
|
||||
<img src="/sjyportal/img/logo.png" />
|
||||
</div>
|
||||
<div class="span8 inline">
|
||||
<p class="pull-right" style="color:#000000; font-size:9px;">
|
||||
<?php
|
||||
$auth = Zend_Auth::getInstance();
|
||||
if($auth->hasIdentity())
|
||||
{
|
||||
$user = $auth->getIdentity();
|
||||
echo '<a href="/account"><i class="icon-user"></i> '.$user->username.'</a> ';
|
||||
if ($user->usertype == $this->config->auth->identifier)
|
||||
{
|
||||
echo '<a href="/admin"><i class="icon-cog"></i> 后台 </a>';
|
||||
}
|
||||
echo '<a href="/data/order"><i class="icon-shopping-cart"></i> 数据篮 </a>';
|
||||
echo '<a href="/account/logout">退出</a>';
|
||||
} else {
|
||||
echo '<a href="/account/login">登 录</a> | <a href="/account/register">注 册</a>';
|
||||
} ?>
|
||||
</p>
|
||||
<?php $current_url =$_SERVER["REQUEST_URI"]?>
|
||||
<p >
|
||||
<ul class="nav nav-pills pull-right" id="mainmenu">
|
||||
<li style="padding-right:20px"<?php if($current_url=='/') echo " class='active'";?> ><a href="/">首 页</a></li>
|
||||
<li style="padding-right:20px"><a href="/archives/">新 闻</a></li>
|
||||
<li style="padding-right:20px"><a href="/data">数 据</a></li>
|
||||
<li style="padding-right:20px"><a href="/about">关于我们</a></li>
|
||||
<li style="padding-right:20px" class="input-append ">
|
||||
<form action="/search" method="get"><input class="input-medium" placeholder="关键字" type="text" name="q"><button class="btn" type="submit">搜索</button></form>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div class="container">
|
||||
<?= $this->render('breadcrumbs.phtml'); ?>
|
||||
|
|
Loading…
Reference in New Issue