修改了青海湖部分页面
This commit is contained in:
parent
657615aa30
commit
87be0e40b6
|
@ -43,6 +43,8 @@ class IndexController extends Zend_Controller_Action
|
|||
$this->view->mdrandom=$this->db->fetchRow($sql);
|
||||
$sql="select m.uuid,m.title,m.id,m.description from normalmetadata m left join thumbnail t on m.id=t.id where length(t.data)>2 AND m.id NOT IN (".$this->view->mdrandom->id.") order by random() limit 5";
|
||||
$this->view->mdrandoms = $this->db->fetchAll($sql);
|
||||
$sql="select m.uuid,m.title,m.id from normalmetadata m ORDER BY ts_created limit 5";
|
||||
$this->view->lastmd = $this->db->fetchAll($sql);
|
||||
//搜索
|
||||
$this->view->addHelperPath('helper','Zend_View_Helper_');
|
||||
$searchform=new SearchForm();
|
||||
|
|
|
@ -7,12 +7,14 @@ $this->breadcrumb('<a href="/">首页</a>');
|
|||
$this->breadcrumb('<a href="/about">关于本站</a>');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div class="subnav"></div>
|
||||
<div class="LeftMargin">
|
||||
<div class="logo">
|
||||
<img src="/images/westdc_logo_white.gif" /><br />
|
||||
<a href="/images/westdc_logo_white.gif">下载LOGO</a></div>
|
||||
<div class="content">
|
||||
<div class="logo">
|
||||
<img src="/static/images/logo_small.png" /><br />
|
||||
<a href="/static/images/logo_big.png">下载LOGO</a></div>
|
||||
<div class="preface">
|
||||
本平台是“青海湖流域生态环境保护与综合治理工程生态监测体系建设项目”的主要建设内容之一,目标是利用最新的数据库技术和网络技术,建设青海湖流域生态环境数据库及元数据库,管理青海湖流域各类生态环境数据的;建设青海湖流域生态环境数据网络发布平台,通过元数据的支持,实现青海湖流域生态环境数据的网络发布,并实现业务化运行。
|
||||
本平台是"青海湖流域生态环境保护与综合治理工程生态监测体系建设项目"的主要建设内容之一,目标是利用最新的数据库技术和网络技术,建设青海湖流域生态环境数据库及元数据库,管理青海湖流域各类生态环境数据的;建设青海湖流域生态环境数据网络发布平台,通过元数据的支持,实现青海湖流域生态环境数据的网络发布,并实现业务化运行。
|
||||
</div>
|
||||
<h2>
|
||||
<a href="/about/background">项目背景</a></h2>
|
||||
|
@ -29,7 +31,12 @@ $this->breadcrumb()->setSeparator(' > ');
|
|||
<li>项目组长:<strong>韩德辉</strong>(青海省环境监测中心站,站长)、南卓铜(中国科学院寒区旱区环境与工程研究所,研究员)</li>
|
||||
<li>项目秘书:杨永顺(青海省环境监测中心站,工程师)、王亮绪(中国科学院寒区旱区环境与工程研究所,高级工程师)</li>
|
||||
<li>平台技术组长:王亮绪(中国科学院寒区旱区环境与工程研究所,高级工程师)</li>
|
||||
|
||||
</ul>
|
||||
<h2>
|
||||
<a href="/about/contact">联系我们</a></h2>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
|
|
@ -61,7 +61,19 @@
|
|||
</div>
|
||||
</div><!-- left -->
|
||||
<div class="width3 fright">
|
||||
<div class="tbox">
|
||||
<div class="tbox">
|
||||
<div class="title corners-top">最新上线数据</div>
|
||||
<div class="content">
|
||||
<ul>
|
||||
<?php foreach($this->lastmd as $i=>$md) : ?>
|
||||
<li><img src="/images/no<?php echo $i+1; ?>.gif" align="absmiddle" style="border-width:0px;" />
|
||||
<a class="item" href="/data/<?php echo $md->uuid; ?>"><?php echo $md->title; ?></a>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tbox mt12">
|
||||
<ul id='slideshowHolder' style="width:278px;height:220px;overflow:hidden;">
|
||||
<?php
|
||||
foreach ($this->mdrandoms as $v)
|
||||
|
|
|
@ -5,7 +5,8 @@
|
|||
margin-right: 150px;
|
||||
margin-top:10px;
|
||||
padding: 5px;
|
||||
border: 1px solid gray;
|
||||
font-size:14px;
|
||||
text-indent:28px;
|
||||
}
|
||||
.LeftMargin a
|
||||
{
|
||||
|
@ -27,3 +28,19 @@ h2 a, h2 a:visited{padding-right:20px;color:#808080;background-image:url(../imag
|
|||
margin-bottom: 20px;
|
||||
}
|
||||
.LeftMargin li{line-height:20px;text-indent: 20px;}
|
||||
|
||||
.content
|
||||
{
|
||||
width:760px;
|
||||
margin:0 auto;
|
||||
}
|
||||
|
||||
.content p{
|
||||
font-size:14px;
|
||||
}
|
||||
|
||||
.subnav{
|
||||
width:100%;
|
||||
background:url(/static/images/subnav_bg.png) 0 0 no-repeat;
|
||||
height:20px;
|
||||
}
|
|
@ -33,7 +33,7 @@ a:hover,a:focus,a:active{background-color:#E2EFFF;color:#329ECC;border-bottom:1p
|
|||
/*End divHeader style*/
|
||||
#divLogo{width:740px; margin:0 auto;}
|
||||
#divLogo img{border:0;}
|
||||
#divBreadCrumb{padding:5px 2px 5px;background: #ddd;font-size:13px;}
|
||||
#divBreadCrumb{padding:5px 2px 5px;background: #000;font-size:13px;}
|
||||
#divBreadCrumb a{color:Black;text-decoration:underline;}
|
||||
#divContent{font-size:13px;margin:5px 5px 2px 5px;padding:0px 10px 0px 10px;text-align:left;clear:both;position:relative;}
|
||||
/*divFooter styles*/
|
||||
|
|
|
@ -210,7 +210,7 @@ input[type="submit"]:hover,.btn:hover, .btn:focus, .btn:active {outline:medium n
|
|||
#datanav .fieldlist .subject{background:#e0e0e0;height:28px;overflow:hidden;}
|
||||
#datanav .fieldlist .subject a{line-height:28px;display:block;background:#a3a3a3;width:20%;color:#ff3333;text-align:center;}
|
||||
|
||||
#divBreadCrumb{line-height:24px;background:#e0e0e0;padding-left:15px;}
|
||||
#divBreadCrumb{line-height:24px;background:#FFF;padding-left:15px;border-top:2px solid #a2cde9;border-bottom:2px solid #a2cde9;}
|
||||
|
||||
#category_nav{}
|
||||
#category_nav .title{width:150px;background:#a3a3a3;font-size:16px;font-weight:bold;text-align:center;height:70px;line-height:70px;}
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 61 KiB |
Binary file not shown.
After Width: | Height: | Size: 6.2 KiB |
Binary file not shown.
After Width: | Height: | Size: 8.3 KiB |
|
@ -0,0 +1,40 @@
|
|||
(function( $ ){
|
||||
|
||||
$.fn.sidemenu = function(options) {
|
||||
|
||||
var defualts = {
|
||||
//控制按钮
|
||||
'ctrlBtn':'#sidemenu_ctrl',
|
||||
'status':'show'
|
||||
};
|
||||
var opts = $.extend({}, defualts, options);
|
||||
var menu = $(this);
|
||||
//this.each(function() {
|
||||
if(opts.ctrlBtn=='' || opts.status=='')
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
var hidenText = "<<<隐藏菜单";
|
||||
var showText = "展开菜单>>>";
|
||||
|
||||
$(opts.ctrlBtn).bind('click', function() {
|
||||
|
||||
if(opts.status == "show"){
|
||||
menu.show();
|
||||
$(opts.ctrlBtn).html(hidenText);
|
||||
$(opts.ctrlBtn).attr('onclick',"$('#"+menu.attr('id')+"').sidemenu({'ctrlBtn':'"+opts.ctrlBtn+"','status':'hide'})");
|
||||
}
|
||||
|
||||
if(opts.status == "hide")
|
||||
{
|
||||
menu.hide();
|
||||
$(opts.ctrlBtn).html(showText);
|
||||
$(opts.ctrlBtn).attr('onclick',"$('#"+menu.attr('id')+"').sidemenu({'ctrlBtn':'"+opts.ctrlBtn+"','status':'show'})");
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
//});
|
||||
};
|
||||
})( jQuery );
|
Loading…
Reference in New Issue