完成关于我们部分
This commit is contained in:
parent
cae314fda8
commit
638143eb4f
|
@ -12,7 +12,7 @@ $(document).ready(function(){
|
|||
uploadJson : '/service/upload',
|
||||
allowFileManager : false,
|
||||
items : ['undo', 'redo', 'print', 'plainpaste', 'wordpaste', '|','insertorderedlist','insertunorderedlist', '|',
|
||||
'justifyleft', 'justifycenter', 'justifyright', 'clearhtml', 'image', 'removeformat', 'link', 'unlink'],
|
||||
'justifyleft', 'justifycenter', 'justifyright', 'clearhtml', 'image', 'removeformat', 'link', 'unlink','|','source'],
|
||||
autoHeightMode: true
|
||||
});
|
||||
editor .loadPlugin('autoheight');
|
||||
|
|
|
@ -98,6 +98,29 @@ return array(
|
|||
'type' => 'Wildcard'
|
||||
)
|
||||
)
|
||||
),//service
|
||||
|
||||
//about
|
||||
'about' => array(
|
||||
'type' => 'Segment',
|
||||
'options' => array(
|
||||
'route' => '/about[/:id]',
|
||||
'constraints' => array(
|
||||
'id' => '[a-zA-Z0-9][a-zA-Z0-9_-]*',
|
||||
),
|
||||
'defaults' => array(
|
||||
'module' => 'Application',
|
||||
'__NAMESPACE__' => 'Application\Controller',
|
||||
'controller' => 'Application\Controller\Index',
|
||||
'action' => 'about',
|
||||
),
|
||||
),
|
||||
'may_terminate' => true,
|
||||
'child_routes' => array(
|
||||
'wildcard' => array(
|
||||
'type' => 'Wildcard'
|
||||
)
|
||||
)
|
||||
),//default
|
||||
|
||||
),
|
||||
|
|
|
@ -30,6 +30,8 @@ class IndexController extends AbstractActionController
|
|||
|
||||
$article->opt->where = array(" cate.ptype='news' ");
|
||||
$this->ViewModel->setVariable('news',$article->fetchAll());
|
||||
unset($article);
|
||||
|
||||
|
||||
$metadata = new \Westdc\Metadata\Outlink;
|
||||
$metadata->opt->limit = 10;
|
||||
|
@ -41,6 +43,22 @@ class IndexController extends AbstractActionController
|
|||
|
||||
public function aboutAction()
|
||||
{
|
||||
$article = new \Sookon\Article\Lists;
|
||||
|
||||
$article->opt->limit = 10;
|
||||
$article->opt->where = array("cate.code='aboutus'");
|
||||
$this->ViewModel->setVariable('articles',$article->fetchAll());
|
||||
unset($article);
|
||||
|
||||
$id = $this->params()->fromRoute("id");
|
||||
if(empty($id))
|
||||
{
|
||||
$id = 89;
|
||||
}
|
||||
|
||||
$article = new \Sookon\Article\Article;
|
||||
$this->ViewModel->setVariable('content',$article->fetch($id));
|
||||
|
||||
return $this->ViewModel;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,40 +5,17 @@
|
|||
<div class="span3">
|
||||
<div class="bs-docs-sidebar">
|
||||
<ul class="nav nav-list bs-docs-sidenav">
|
||||
<li id="Nav-about-index" class="active"><a href="/about/"><i class="icon-chevron-right"></i>中心简介</a></li>
|
||||
<li id="Nav-about-background"><a href="/about/background"><i class="icon-chevron-right"></i>发展历史</a></li>
|
||||
<li id="Nav-about-sponsors"><a href="/about/sponsors"><i class="icon-chevron-right"></i>支持项目</a></li>
|
||||
<li id="Nav-about-honor"><a href="/about/honor"><i class="icon-chevron-right"></i>服务成效</a></li>
|
||||
<li id="Nav-about-publication"><a href="/about/publication"><i class="icon-chevron-right"></i>成果发表</a></li>
|
||||
<li id="Nav-about-copyright"><a href="/about/copyright"><i class="icon-chevron-right"></i>数据与版权</a></li>
|
||||
<li id="Nav-about-legal"><a href="/about/legal"><i class="icon-chevron-right"></i>隐私政策</a></li>
|
||||
<li id="Nav-about-supportus"><a href="/about/supportus"><i class="icon-chevron-right"></i>支持我们</a></li>
|
||||
<li id="Nav-about-contact"><a href="/about/contact"><i class="icon-chevron-right"></i>联系我们</a></li>
|
||||
<li id="Nav-about-link"><a href="/about/link"><i class="icon-chevron-right"></i>友情链接</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<?php if(!empty($this->articles)) { ?>
|
||||
<?php foreach($this->articles as $v) { ?>
|
||||
<li id="Nav-about-<?= $v['id'] ?>"><a href="/about/<?= $v['id'] ?>"><i class="icon-chevron-right"></i><?= $v['title'] ?></a></li>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="span9">
|
||||
<div id="content">
|
||||
<div class="hero-unit">
|
||||
<div class="pull-right" style="margin-left:5px;">
|
||||
<img src="/images/westdc_logo_white.gif" /><br />
|
||||
<a href="/images/westdc_logo_white.gif">下载LOGO</a>
|
||||
</div>
|
||||
<p>中国西部环境与生态科学数据中心(“西部数据中心”)受<a href="http://www.nsfc.gov.cn" target="_blank">中国自然科学基金委</a>资助,以中国西部环境与生态科学研究计划(“西部计划”)重点项目的形式立项(编号:90502010),旨在收集和整理“西部计划”各项目执行期间产出数据集,为中国西部环境与生态科学研究,乃至更广泛意义上的地表表层科学研究服务。</p>
|
||||
</div>
|
||||
<h2>
|
||||
<a href="/about/background">项目背景</a></h2>
|
||||
<p>
|
||||
介绍“西部数据中心”项目立项的一些背景,可以理解西部数据中心要做些什么内容,以及采用什么样的实现手段。</p>
|
||||
<h2>
|
||||
项目参与单位</h2>
|
||||
<p>
|
||||
“西部数据中心”以<a href="http://www.casnw.net" target="_blank">中国科学院寒区旱区环境与工程研究所</a>为承担单位,由<a
|
||||
href="http://www.westgis.ac.cn" target="_blank">遥感与地理信息科学研究室</a>组织实施。参与单位包括<a href="http://www.igsnrr.ac.cn"
|
||||
target="_blank">中国科学院地理科学与资源研究所</a>。其中“知识积累平台”依托<a href="http://www.llas.ac.cn" target="_blank">中国科学院资源环境科学信息中心</a>实现项目中的文献收集和管理。</p>
|
||||
<h2>
|
||||
<a href="/about/contact">联系我们</a></h2>
|
||||
<?= isset($this->content['body']) ? $this->content['body'] : 0; ?>
|
||||
</div>
|
||||
</div><!-- span9 -->
|
||||
|
||||
|
|
Loading…
Reference in New Issue