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