修改heihedata默认layout,修改模板

This commit is contained in:
Li Jianxuan 2013-03-19 09:16:41 +00:00
parent 9a764fc57f
commit 8ae71e352f
12 changed files with 670 additions and 532 deletions

View File

@ -12,7 +12,6 @@ class AccountController extends Zend_Controller_Action
function indexAction()
{
$this->_helper->layout->setLayout('layout-bootstrap');
$this->view->pageID = "account-index";
include_once("Users.php");
@ -34,7 +33,6 @@ class AccountController extends Zend_Controller_Action
function editAction()
{
$this->_helper->layout->setLayout('layout-bootstrap');
$this->view->pageID = "account-edit";
include_once("Users.php");
@ -114,7 +112,6 @@ class AccountController extends Zend_Controller_Action
function secureAction()
{
$this->_helper->layout->setLayout('layout-bootstrap');
$this->view->pageID = "account-secure";
include_once("Users.php");

View File

@ -10,6 +10,7 @@ class DataController extends Zend_Controller_Action
$this->messenger=$this->_helper->getHelper('FlashMessenger');
$this->view->messages = $this->messenger->getMessages();
$this->view->theme = new Theme();
$this->view->main_nav_pageID = "data";
}
function indexAction()
{
@ -923,17 +924,25 @@ class DataController extends Zend_Controller_Action
}
$img = $avatar->Get($c['email'],30);
$img = '<img src="'.$img.'" />';
//$img = '<img src="'.$img.'" />';
$author = $c['author'];
$author = ($c['url'])?'<a href="'.$c['url'].'">'.$author.'</a>':$author;
$author = '<div class="post_name">'.$author."</div>";
$time = '<div class="post_time">发表于'.date('Y-m-d H:i:s',strtotime($c['ts_created'])).'</div>';
print "
<div class='comment-content'><div class='title'>".$img.$author.$time."</div>
<p>".($c['content'])."</p>
$replyhtml
</div>";
$author = ''.$author."";
$time = '发表于'.date('Y-m-d H:i:s',strtotime($c['ts_created'])).'';
print '
<div class="media" style="background:#cecece;border-radius:6px 6px 6px 6px;">
<a class="pull-left" href="javascript:void(0);">
<img class="media-object" src="'.$img.'">
</a>
<div class="media-body">
<span class="pull-right">'.$time.'</span>
<h4 class="media-heading">'.$c['author'].'</h4>
'.$c['content'].'
'.$replyhtml.'
</div>
</div>
';
}
echo '<div class="paginator">'.$paginator.'</div>';
}//else echo "<li>No comments.</li>";

View File

@ -7,6 +7,7 @@ class IndexController extends Zend_Controller_Action
$this->view->config = Zend_Registry::get('config');
$this->db=Zend_Registry::get('db');
$this->view->theme = new Theme();
$this->view->main_nav_pageID = "index";
}
function indexAction()
@ -70,7 +71,7 @@ class IndexController extends Zend_Controller_Action
$this->view->news = $rows;
$time = date("Y-m-d H:i:s",time());
$sql = "SELECT * FROM archive WHERE is_pub=true AND ts_published<'$time' order by ts_published desc LIMIT 8 ";
$sql = "SELECT * FROM archive WHERE is_pub=true AND ts_published<'$time' order by ts_published desc LIMIT 12 ";
$sth = $this->db->query($sql);
$rows = $sth->fetchAll(PDO::FETCH_BOTH);

View File

@ -2,129 +2,142 @@
$this->headTitle($this->config->title->site);
$this->headTitle($this->config->title->data);
$this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/metadata.css');
$this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb($this->config->title->data);
$this->breadcrumb()->setSeparator(' > ');
?>
<div id='leftContainer'>
<div id="links">
<div class="title"><img src="/images/dbs.png" align="absmiddle" />数 据 导 航</div>
<h3>
<?php echo $this->searchform; ?>
<a href="/data/advancesearch">高级搜索</a></h3>
<h3><a href="/heihe/">黑河计划数据管理中心</a> <a href="/water">黑河综合遥感联合试验</a> <a href="/data/datasetcd">特色数据集光盘</a> </h3>
<h3> 分类浏览</h3>
<div id='category' class="fieldlist">
<fieldset><legend><a href="/data/category">数据集类别</a></legend>
<ul>
<?php foreach($this->category as $cg) : ?>
<li><a href='/data/category/code/<?php echo $cg['code']; ?>'><?php (empty($cg['name_zh']))?print($cg['name']):print($cg['name_zh']); ?></a><span class="note">(<?php echo $cg['count']; ?>)</span></li>
<?php endforeach; ?>
</ul></fieldset>
</div>
<?php if ($this->serie) : ?>
<div id='series' class="fieldlist">
<fieldset><legend><a href="/data/series">数据集序列</a></legend>
<ul>
<?php foreach($this->serie as $cg) : ?>
<li><a href='/data/series/<?php echo $cg['id']; ?>'><?php echo $cg['name']; ?></a><span class="note">(<?php echo $cg['count']; ?>)</span></li>
<?php endforeach; ?>
</ul></fieldset>
</div>
<?php endif; ?>
<div id='keyword' class="fieldlist">
<?php
$keytypezh=array('place'=>'地点关键词','theme'=>'主题关键词','discipline'=>'学科关键词','stratum'=>'地层关键词','temporal'=>'时间关键词');
foreach($this->keywords as $type=>$kcg) :
if (is_array($kcg) && count($kcg)>0 ) :
?>
<fieldset><legend><a href="/data/tag/"><?php echo $keytypezh[$type]; ?></a></legend>
<ul>
<?php foreach($kcg as $cg) : ?>
<li><a href='/data/tag/<?php echo $cg['keyword']; ?>'><?php echo $cg['keyword']; ?></a><span class="note">(<?php echo $cg['count']; ?>)</span></li>
<?php endforeach; ?>
<li class="more"><a href='/data/tag/'>...更多>>></a></li>
</ul>
</fieldset>
<?php endif;endforeach; ?>
</div>
<div class="fieldlist">
<ul>
<li><a href="/data/thumb">缩略图浏览</a></li>
<li><a href="/data/timeline">时间轴浏览</a></li>
<li><a href="/data/map">空间浏览</a></li>
<li><a href="/data/timemap">时空浏览</a></li>
<li><a href="/data/browse">数据列表浏览</a></li>
<li><a href="/data/onlinelist">在线数据清单</a></li>
<li><a href="/data/offlinelist">离线数据清单</a></li>
</ul>
</div>
</div>
<div id='toolbox'>
</div>
</div>
<div id='latest'>
<div class="title"><img src="/images/dbs.png" align="absmiddle" />数据最近更新<a href="/data/feed" target="_blank"><img src="images/rss.png"></a></div>
<div class="mditem">
<ul>
<?php foreach($this->metadata as $md) : ?>
<li> <img src="/images/westdc_20w.gif" /> <a href="/data/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']);?></a> </li>
<?php endforeach; ?>
<li class="more"><a href="/data/browse">更多</a></li>
</ul>
</div>
</div>
<div id="services">
<div class="title"><img src="/images/Project24x24_24-bit.png" align="absmiddle" />&nbsp;数据服务</div>
<div class="items">
<div class="item">
<h3> <a href="/data/newsletter">数据中心通讯</a></h3>
<p class="description">
数据中心不定期发布数据通讯,通告中心动态、最新数据和数据工具</p>
<ul>
<li>-&nbsp;&nbsp;&nbsp;<a href='/images/newsletter/<?php echo $this->newsletter; ?>' target="_blank"><?php echo $this->newsletterno; ?>期数据通讯</a>(pdf格式)</li>
<li>
<?php
echo $this->form;
if (!empty($this->messages)) : ?>
<span id="message">
<?php
foreach ($this->messages as $info)echo $info;
?>
</span>
<?php endif; ?>
</li>
</ul>
</div>
<div class="item">
<h3><a href="/data/service">用户服务</a></h3>
<p class="description">
了解"西部数据中心"数据服务内容、方式及政策</p>
<ul>
<li>-&nbsp;&nbsp;&nbsp;<a href="/data/offlineapp">离线数据服务记录最近20个</a></li>
<li>-&nbsp;&nbsp;&nbsp;<a href="/data/request">如何从西部数据中心申请数据</a></li>
<li>-&nbsp;&nbsp;&nbsp;<a href="/data/submit">如何在西部数据中心发布数据</a></li>
</ul>
</div>
<div class="item">
<h3><a href="/knowledge">文献服务</a></h3>
<p class="description">
数据中心依托中科院资环信息中心提供西部环境与生态文献和文档服务</p>
</div>
<!--<div class="item">
<h3><a href="/data/ogcwxs">在线地图服务</a></h3>
<p class="description">提供OGC WMS、WFS等在线地图服务</p>-->
</div>
<style>
.fieldlist ul li{line-height:24px;padding:5px;}
.fieldlist ul li:hover{color:#FFF;background:#0088CC;border-radius: 6px 6px 6px 6px;}
.fieldlist ul li:hover a{color:#FFF; text-decoration:none;}
.news_list ul li{line-height:24px;}
</style>
<div class="row">
<div class="span6">
<h4><img src="/images/dbs.png" align="absmiddle" />数据导航</h4>
<div>
<form method="get" action="/search" id="search" class="form-search">
<div class="input-append">
<input type="text" value="" id="q" name="q" class="span2 search-query">
<button type="submit" class="btn">搜索</button>
</div>
<a href="/data/advancesearch">高级搜索</a>
</form>
</div>
<div>
<a href="/heihe/">黑河计划数据管理中心</a> <a href="/water">黑河综合遥感联合试验</a> <a href="/data/datasetcd">特色数据集光盘</a>
</div>
<div class="fieldlist">
<fieldset><legend><a href="/data/category">数据集类别</a></legend>
<ul class="unstyled inline">
<?php foreach($this->category as $cg) : ?>
<li><a href='/data/category/code/<?php echo $cg['code']; ?>'><?php (empty($cg['name_zh']))?print($cg['name']):print($cg['name_zh']); ?></a><span class="note">(<?php echo $cg['count']; ?>)</span></li>
<?php endforeach; ?>
</ul></fieldset>
</div>
<div class="fieldlist">
<?php if ($this->serie) : ?>
<div id='series' class="fieldlist">
<fieldset><legend><a href="/data/series">数据集序列</a></legend>
<ul class="unstyled inline">
<?php foreach($this->serie as $cg) : ?>
<li><a href='/data/series/<?php echo $cg['id']; ?>'><?php echo $cg['name']; ?></a><span class="note">(<?php echo $cg['count']; ?>)</span></li>
<?php endforeach; ?>
</ul></fieldset>
</div>
<?php endif; ?>
</div>
<div class="fieldlist">
<?php
$keytypezh=array('place'=>'地点关键词','theme'=>'主题关键词','discipline'=>'学科关键词','stratum'=>'地层关键词','temporal'=>'时间关键词');
foreach($this->keywords as $type=>$kcg) :
if (is_array($kcg) && count($kcg)>0 ) :
?>
<fieldset><legend><a href="/data/tag/"><?php echo $keytypezh[$type]; ?></a></legend>
<ul class="unstyled inline">
<?php foreach($kcg as $cg) : ?>
<li><a href='/data/tag/<?php echo $cg['keyword']; ?>'><?php echo $cg['keyword']; ?></a><span class="note">(<?php echo $cg['count']; ?>)</span></li>
<?php endforeach; ?>
<li class="more"><a href='/data/tag/'>...更多>>></a></li>
</ul>
</fieldset>
<?php endif;endforeach; ?>
<h5>其它浏览方式</h5>
<hr />
<ul class="unstyled inline">
<li><a href="/data/thumb">缩略图浏览</a></li>
<li><a href="/data/timeline">时间轴浏览</a></li>
<li><a href="/data/map">空间浏览</a></li>
<li><a href="/data/timemap">时空浏览</a></li>
<li><a href="/data/browse">数据列表浏览</a></li>
<li><a href="/data/onlinelist">在线数据清单</a></li>
<li><a href="/data/offlinelist">离线数据清单</a></li>
</ul>
</div>
</div><!-- /left -->
<div class="span6">
<div class="news_list">
<h4><img src="/images/dbs.png" align="absmiddle" />数据最近更新<a href="/data/feed" target="_blank"><img src="images/rss.png"></a></h4>
<hr />
<ul class="unstyled">
<?php foreach($this->metadata as $md) : ?>
<li><img src="/images/westdc_20w.gif" /> <a href="/data/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']);?></a> </li>
<?php endforeach; ?>
<li class="more"><a href="/data/browse" class="pull-right">更多</a></li>
</ul>
</div>
<div>
<h4><img src="/images/Project24x24_24-bit.png" align="absmiddle" />&nbsp;数据服务</h4>
<hr />
<div class="items">
<div class="item">
<h3> <a href="/data/newsletter">数据中心通讯</a></h3>
<p class="description">
数据中心不定期发布数据通讯,通告中心动态、最新数据和数据工具</p>
<ul class="unstyled">
<li>-&nbsp;&nbsp;&nbsp;<a href='/images/newsletter/<?php echo $this->newsletter; ?>' target="_blank"><?php echo $this->newsletterno; ?>期数据通讯</a>(pdf格式)</li>
<li>
<?php
echo $this->form;
if (!empty($this->messages)) : ?>
<span id="message">
<?php
foreach ($this->messages as $info)echo $info;
?>
</span>
<?php endif; ?>
</li>
</ul>
</div>
<div class="item">
<h3><a href="/data/service">用户服务</a></h3>
<p class="description">
了解"西部数据中心"数据服务内容、方式及政策</p>
<ul class="unstyled">
<li>-&nbsp;&nbsp;&nbsp;<a href="/data/offlineapp">离线数据服务记录最近20个</a></li>
<li>-&nbsp;&nbsp;&nbsp;<a href="/data/request">如何从西部数据中心申请数据</a></li>
<li>-&nbsp;&nbsp;&nbsp;<a href="/data/submit">如何在西部数据中心发布数据</a></li>
</ul>
</div>
<div class="item">
<h3><a href="/knowledge">文献服务</a></h3>
<p class="description">
数据中心依托中科院资环信息中心提供西部环境与生态文献和文档服务</p>
</div>
<!--<div class="item">
<h3><a href="/data/ogcwxs">在线地图服务</a></h3>
<p class="description">提供OGC WMS、WFS等在线地图服务</p>-->
</div>
<div class="item">
<h3><a href="/about/contact">联系我们</a></h3>
</div>
</div>&nbsp;
</div>
</div><!-- /right -->
</div>

View File

@ -14,10 +14,213 @@
$this->headLink()->appendStylesheet('/js/theme/default/style.css');
$this->headScript()->appendFile('/js/jquery.idTabs.min.js');
?>
<?php $md=$this->metadata;if ($md):?>
<h1><?php echo $this->escape($md->title);
if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
</h1>
<hr />
<div class="row">
<div class="span8">
<div>
<a class="colorbox pull-right" title="<?php echo $md->title; ?>" href="/service/bigthumb/uuid/<?php echo $md->uuid; ?>"><img src="/service/thumb/uuid/<?php echo $md->uuid;?>"/></a>
<p>
<?php echo str_replace(array("\r\n", "\n", "\r"),'</p><p>',$md->description);?>
</p>
</div>
<hr />
<div>
<?php if ($md->citation) : ?>
<hr />
<h5>本数据引用方式</h5>
<p><?php echo $this->escape($md->citation);?></p>
<?php endif; ?>
<?php if ($this->ref) : ?>
<hr />
<h5>建议参考文献</h5>
<ol>
<?php foreach($this->ref as $ref) :
if (empty($ref->link))
echo '<li>'.$ref->reference.'</li>';
else
echo '<li>'.$ref->reference.' <a href="'.$ref->link.'">下载</a></li>';
endforeach;
?>
</ol>
<?php endif; ?>
<?php if ($this->userref) : ?>
<hr />
<h5>数据用户发表文献</h5>
<ol>
<?php foreach($this->userref as $ref) :
if (empty($ref->link))
echo '<li>'.$ref->reference.'</li>';
else
echo '<li>'.$ref->reference.' <a href="'.$ref->link.'">下载</a></li>';
endforeach;
?>
</ol>
<?php endif; ?>
<hr />
<h5>数据使用声明</h5>
<?php
if ($this->uselimits) :
foreach($this->uselimits as $uselimit) :
echo '<p>'.str_replace(array("\r\n", "\n", "\r"),'</p><p>',$this->escape($uselimit->uselimit)).'</p>';
endforeach;
?>
<?php else : ?>
<p>为尊重知识产权、保障数据作者的权益、扩展数据中心的服务、评估数据的应用潜力,请数据使用者在使用数据所产生的研究成果中(包括公开发表的论文、论著、数据产品和未公开发表的研究报告、数据产品等成果),明确注明数据来源和数据作者。对于转载(二次或多次发布)的数据,作者还须注明原始数据来源。</p>
<p>中文发表的成果参考以下规范注明: 数据来源于国家自然科学基金委员会"中国西部环境与生态科学数据中心"(http://westdc.westgis.ac.cn)</p>
<p>英文发表的成果依据以下规范注明: The data set is provided by Environmental and Ecological Science Data Center for West China,National Natural Science Foundation of China (http://westdc.westgis.ac.cn)</p>
</p>
<?php endif; ?>
<?php if($this->data_archives){ ?>
<h5>相关数据新闻</h5>
<hr />
<?php
foreach($this->data_archives as $v){?>
<p><a href="<?= $v['url']['archive_url']?>"><?= $v['title']?></a></p>
<?php } ?>
<?php }?>
<?php if ($md->suppinfo) : ?>
<h5>项目支持信息</h5>
<hr />
<?php echo '<p>'.str_replace(array("\r\n", "\n", "\r"),'</p><p>',$this->escape($md->suppinfo)).'</p>';?>
<?php endif; ?>
<?php if ($this->resources) : ?>
<h5>其他在线资源</h5>
<hr />
<ul><?php foreach($this->resources as $link) : ?>
<li><a href="<?php echo $link->linkage; ?>" title="<?php echo $link->description; ?>">
<?php
if (!empty($link->name))
echo $link->name;
elseif (!empty($link->description))
echo $link->description;
else
echo $link->linkage;
?></a></li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
</div>
<div>
<?php
$keywords = array();
foreach($this->keys as $cg){
if($cg->keytype=="theme")
$keywords[]=$cg->keyword;
}
$ev = join(" ",$keywords);
?>
<div class="tabbable"> <!-- Only required for left/right tabs -->
<ul class="nav nav-tabs">
<li class="active"><a href="#related" data-toggle="tab" id="related_t">相关数据</a></li>
<li><a href="#literature" data-toggle="tab" id="literature_t">相关文献</a></li>
<li><a href="#gsearch" data-toggle="tab">相关搜索</a></li>
<li><a href="#service" data-toggle="tab">服务记录</a></li>
<li><a href="#recommend" data-toggle="tab" id="recommend_t">给我推荐</a></li>
</ul>
<div class="tab-content">
<div id="related" class="tab-pane active">
</div>
<div id="literature" class="tab-pane">
</div>
<div id="gsearch" class="tab-pane">
<ul id="searchctrl">
<li><a href="javascript:;" class="googlesearch">Google搜索</a></li>
<li><a href="javascript:;" class="bingsearch">BING搜索</a></li>
<li><a href="javascript:;" class="scholar">Google学术搜索</a></li>
<li><a href="javascript:;" class="cnkiSearch">CNKI学术搜索</a></li>
</ul>
<ul id="searchlist">
</ul>
</div>
<div id="service" class="tab-pane">
<?php if ($this->downhistory) : ?>
<p>最近10条服务记录如下</p>
<ol start="1">
<?php
foreach($this->downhistory as $v){
echo '<li>'.date("Y-m-d",strtotime($v->ts_created))." ".$v->unit." ".$v->realname;
if (!empty($v->offlineproject))
echo ' 用途:'.$v->offlineproject;
elseif (!empty($v->onlineproject))
echo ' 用途:'.$v->onlineproject;
echo '</li>';
}
?>
</ol>
<?php else : ?>
暂时没有服务记录,欢迎您下载使用!
<?php endif; ?>
</div>
<div id="recommend" class="tab-pane">
</div>
</div>
</div>
<hr />
<div id="comments">
<?php if ($md->status>0 and $md->status<5) : ?>
<p class="strong">此数据还在评审过程中,我们真切地邀请您参加此数据的评审,以便我们能尽快发布此数据!<a href="/review/review/uuid/<?php echo $md->uuid; ?>"><img src="/images/review.png" title="此数据正在评审中,我们邀请您对此数据进行评审,以便其能尽快发布!" /></a></p>
<?php else : ?>
<h2>数据评论</h2>
<div id="allcomments">
<div id="loading"><img src="/images/loading.gif" />评论加载中</div>
</div>
<?php
$auth = Zend_Auth::getInstance();
if($auth->hasIdentity())
{
$user = $auth->getIdentity();
$name = $user->realname;
$email = $user->email;
}else
{
$name = "";
$email = "";
}
?>
<form id="postcommentform">
<p>
<label class="required" style="background:none;">姓名</label>
<input type="text" name="author" value="<?php echo $name;?>" />
</p>
<p>
<label class="required" style="background:none;">EMAIL</label>
<input type="text" name="email" value="<?php echo $email;?>" />
</p>
<p>
<label>WEBSITE</label>
<input type="text" name="url" value="" /> <small>e.g. http://westdc.westgis.ac.cn/</small>
</p>
<p>
<label class="required" style="background:none;">内容</label>
<textarea name="content" class="medium half"></textarea>
</p>
<p>
<label class="required">验证码</label>
<img id="imgcode" style="margin-bottom:-10px;cursor:pointer;border:0px;" src="/service/imgcode/" onClick="this.src=this.src+'?'"><input type="text" name="vdcode" id="vdcode" maxlength="4" value="" />
</p>
<p>
<label> </label>
<input type="hidden" name="mdtitle" value="<?php echo $md->title;?>" />
<input type="hidden" name="uuid" value="<?php echo $md->uuid;?>" />
<a class="btn btn-green" id="postcomment" href="javascript:;" onclick="postcomment();">提交</a><button type="reset" id="reset" class="btn">重置</button><span id="returninfo"></span>
</p>
</form>
<div id="infobox"></div>
<?php endif; ?>
</div>
</div>
<div class="span2">
</div>
</div>
<div id="right">
<div id="ItemSummary">
<div id="category">
@ -171,187 +374,10 @@ endforeach;
<!-- JiaThis Button END -->
</div>
<div id="left">
<div id="ImageViewer"><a class="colorbox" title="<?php echo $md->title; ?>" href="/service/bigthumb/uuid/<?php echo $md->uuid; ?>"><img src="/service/thumb/uuid/<?php echo $md->uuid;?>"/></a></div>
<div id="abstract">
<p>
<?php echo str_replace(array("\r\n", "\n", "\r"),'</p><p>',$md->description);?>
</p>
</div>
<hr />
<div id="cite">
<?php if ($md->citation) : ?>
<h2>本数据引用方式</h2>
<p><?php echo $this->escape($md->citation);?></p>
<?php endif; ?>
<?php if ($this->ref) : ?>
<h2>建议参考文献</h2>
<ol>
<?php foreach($this->ref as $ref) :
if (empty($ref->link))
echo '<li>'.$ref->reference.'</li>';
else
echo '<li>'.$ref->reference.' <a href="'.$ref->link.'">下载</a></li>';
endforeach;
?>
</ol>
<?php endif; ?>
<?php if ($this->userref) : ?>
<h2>数据用户发表文献</h2>
<ol>
<?php foreach($this->userref as $ref) :
if (empty($ref->link))
echo '<li>'.$ref->reference.'</li>';
else
echo '<li>'.$ref->reference.' <a href="'.$ref->link.'">下载</a></li>';
endforeach;
?>
</ol>
<?php endif; ?>
<h2>数据使用声明</h2>
<?php
if ($this->uselimits) :
foreach($this->uselimits as $uselimit) :
echo '<p>'.str_replace(array("\r\n", "\n", "\r"),'</p><p>',$this->escape($uselimit->uselimit)).'</p>';
endforeach;
?>
<?php else : ?>
<p>为尊重知识产权、保障数据作者的权益、扩展数据中心的服务、评估数据的应用潜力,请数据使用者在使用数据所产生的研究成果中(包括公开发表的论文、论著、数据产品和未公开发表的研究报告、数据产品等成果),明确注明数据来源和数据作者。对于转载(二次或多次发布)的数据,作者还须注明原始数据来源。</p>
<p>中文发表的成果参考以下规范注明: 数据来源于国家自然科学基金委员会"中国西部环境与生态科学数据中心"(http://westdc.westgis.ac.cn)</p>
<p>英文发表的成果依据以下规范注明: The data set is provided by Environmental and Ecological Science Data Center for West China,National Natural Science Foundation of China (http://westdc.westgis.ac.cn)</p>
</p>
<?php endif; ?>
<?php if($this->data_archives){ ?>
<h2>相关数据新闻</h2>
<?php
foreach($this->data_archives as $v){?>
<p><a href="<?= $v['url']['archive_url']?>"><?= $v['title']?></a></p>
<?php } ?>
<?php }?>
<?php if ($md->suppinfo) : ?>
<h2>项目支持信息</h2>
<?php echo '<p>'.str_replace(array("\r\n", "\n", "\r"),'</p><p>',$this->escape($md->suppinfo)).'</p>';?>
<?php endif; ?>
<?php if ($this->resources) : ?>
<h2>其他在线资源</h2>
<ul><?php foreach($this->resources as $link) : ?>
<li><a href="<?php echo $link->linkage; ?>" title="<?php echo $link->description; ?>">
<?php
if (!empty($link->name))
echo $link->name;
elseif (!empty($link->description))
echo $link->description;
else
echo $link->linkage;
?></a></li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
</div>
<?php
$keywords = array();
foreach($this->keys as $cg){
if($cg->keytype=="theme")
$keywords[]=$cg->keyword;
}
$ev = join(" ",$keywords);
?>
<ul class="idTabs">
<li><a href="#related" id="related_t">相关数据</a></li>
<li><a href="#literature" id="literature_t">相关文献</a></li>
<li><a href="#gsearch" class="googlesearch">相关搜索</a></li>
<li><a href="#service">服务记录</a></li>
<li><a href="#recommend" id="recommend_t">给我推荐</a></li>
</ul>
<div id="related">
</div>
<div id="literature">
</div>
<div id="gsearch">
<ul id="searchctrl">
<li><a href="javascript:;" class="googlesearch">Google搜索</a></li>
<li><a href="javascript:;" class="bingsearch">BING搜索</a></li>
<li><a href="javascript:;" class="scholar">Google学术搜索</a></li>
<li><a href="javascript:;" class="cnkiSearch">CNKI学术搜索</a></li>
</ul>
<ul id="searchlist">
</ul>
</div>
<div id="service">
<?php if ($this->downhistory) : ?>
<p>最近10条服务记录如下</p>
<ol start="1">
<?php
foreach($this->downhistory as $v){
echo '<li>'.date("Y-m-d",strtotime($v->ts_created))." ".$v->unit." ".$v->realname;
if (!empty($v->offlineproject))
echo ' 用途:'.$v->offlineproject;
elseif (!empty($v->onlineproject))
echo ' 用途:'.$v->onlineproject;
echo '</li>';
}
?>
</ol>
<?php else : ?>
暂时没有服务记录,欢迎您下载使用!
<?php endif; ?>
</div>
<div id="recommend">
</div>
<hr />
<div id="comments">
<?php if ($md->status>0 and $md->status<5) : ?>
<p class="strong">此数据还在评审过程中,我们真切地邀请您参加此数据的评审,以便我们能尽快发布此数据!<a href="/review/review/uuid/<?php echo $md->uuid; ?>"><img src="/images/review.png" title="此数据正在评审中,我们邀请您对此数据进行评审,以便其能尽快发布!" /></a></p>
<?php else : ?>
<h2>数据评论</h2>
<div id="allcomments">
<div id="loading"><img src="/images/loading.gif" />评论加载中</div>
</div>
<?php
$auth = Zend_Auth::getInstance();
if($auth->hasIdentity())
{
$user = $auth->getIdentity();
$name = $user->realname;
$email = $user->email;
}else
{
$name = "";
$email = "";
}
?>
<form id="postcommentform">
<p>
<label class="required" style="background:none;">姓名</label>
<input type="text" name="author" value="<?php echo $name;?>" />
</p>
<p>
<label class="required" style="background:none;">EMAIL</label>
<input type="text" name="email" value="<?php echo $email;?>" />
</p>
<p>
<label>WEBSITE</label>
<input type="text" name="url" value="" /> <small>e.g. http://westdc.westgis.ac.cn/</small>
</p>
<p>
<label class="required" style="background:none;">内容</label>
<textarea name="content" class="medium half"></textarea>
</p>
<p>
<label class="required">验证码</label>
<img id="imgcode" style="margin-bottom:-10px;cursor:pointer;border:0px;" src="/service/imgcode/" onClick="this.src=this.src+'?'"><input type="text" name="vdcode" id="vdcode" maxlength="4" value="" />
</p>
<p>
<label> </label>
<input type="hidden" name="mdtitle" value="<?php echo $md->title;?>" />
<input type="hidden" name="uuid" value="<?php echo $md->uuid;?>" />
<a class="btn btn-green" id="postcomment" href="javascript:;" onclick="postcomment();">提交</a><button type="reset" id="reset" class="btn">重置</button><span id="returninfo"></span>
</p>
</form>
<div id="infobox"></div>
<?php endif; ?>
</div>
</div>
<div>

View File

@ -1,10 +1,18 @@
<div id="divFooter">
<span>版权所有©2006-2012中国西部环境与生态科学数据中心</span> | <a href="/about/contact" >联系我们</a> | <a href="/about/terms">使用条款和免责申明</a>
| <a href="http://www.miibeian.gov.cn" target="_blank">陇ICP备05000491号</a>
</div>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-302912-6";
urchinTracker();
<hr>
<footer>
<p style="text-align:center;font-size:12px;">© 中国西部环境与生态科学数据中心 2006-2013 | <a href="/about/contact" >联系我们</a> | <a href="/about/terms">使用条款和免责申明</a>
| <a href="http://www.miibeian.gov.cn" target="_blank">陇ICP备05000491号</a></p>
</footer>
<?php if(!empty($this->main_nav_pageID))
{ ?>
<script>$('#main-nav-<?= $this->main_nav_pageID ?>').addClass('active');</script>
<?php } ?>
<?php if(!empty($this->pageID)) {?>
<script>$('#Nav-<?= $this->pageID?>').addClass("active");</script>
<?php } ?>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-302912-6";
urchinTracker();
</script>

View File

@ -1,34 +1,32 @@
<div id="divHeader">
<div id="divLogo">
<a href="/"><img src="/images/westdc-banner.jpg" alt="Westdc Logo" /></a>
<div class="masthead">
<h3 class="muted"><img src="/images/westdc-banner.jpg" alt="Westdc Logo" /></h3>
<div class="navbar">
<div class="navbar-inner">
<div class="container">
<ul class="nav">
<li id="main-nav-index"><a href="/"><span>首页</span></a></li>
<li id="main-nav-data"><a href="/data"><span>数据产品与服务</span></a></li>
<li id="main-nav-review"><a href="/review"><span>数据评审</span></a></li>
<li id="main-nav-author"><a href="/author"><span>数据作者</span></a></li>
<li id="main-nav-knowledge"><a href="/knowledge"><span>知识积累</span></a></li>
<li><a href="/archives"><span>新闻动态</span></a></li>
<li><a href="/about"><span>关于本站</span></a></li>
</ul>
<p class="navbar-text pull-right">
<?php
$auth = Zend_Auth::getInstance();
if($auth->hasIdentity())
{
$user = $auth->getIdentity();
echo '<a href="/account">'.$user->username.'</a> ';
if ($user->usertype=="administrator") echo '<a href="/admin">后台管理</a> ';
echo '<a href="/data/order">数据篮</a> <a href="/account/logout">注销</a>';
} else {
echo '<a href="/account/login">登录</a> <a href="/account/register">注册</a>';
} ?>
</p>
</div>
</div>
<div class="nav">
<div id="divNavi">
<ul>
<!-- CSS Tabs -->
<li><a href="/"><span>首页</span></a></li>
<li><a href="/data"><span>数据产品与服务</span></a></li>
<li><a href="/review"><span>数据评审</span></a></li>
<li><a href="/author"><span>数据作者</span></a></li>
<li><a href="/knowledge"><span>知识积累</span></a></li>
<!-- <li><a href="/community"><span>合作与交流</span></a></li> -->
<li><a href="/archives"><span>新闻动态</span></a></li>
<li><a href="/about"><span>关于本站</span></a></li>
</ul>
</div>
<div id="userNavi">
<?php
$auth = Zend_Auth::getInstance();
if($auth->hasIdentity())
{
$user = $auth->getIdentity();
echo '<a href="/account">'.$user->username.'</a> ';
if ($user->usertype=="administrator") echo '<a href="/admin">后台管理</a> ';
echo '<a href="/data/order">数据篮</a> <a href="/account/logout">注销</a>';
} else {
echo '<a href="/account/login">登录</a> <a href="/account/register">注册</a>';
}
?>
</div>
</div>
</div>
</div><!-- /.navbar -->
</div>

View File

@ -2,183 +2,262 @@
$this->headTitle($this->config->title->site);
$this->headTitle('首页');
$this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/index.css');
$this->theme->AppendPlus($this,'jquery');
$this->theme->AppendPlus($this,'slides');
$auth = Zend_Auth::getInstance();
?>
<div id="index">
<div id="leftPanel">
<div class="title">在线下载热门数据</div>
<ul>
<?php foreach($this->mdtop as $i=>$md) : ?>
<li> <img src="/images/no<?php echo $i+1; ?>.gif" align="absmiddle" style="border-width:0px;" />&nbsp;
<a class="item" href="/data/<?php echo $md->uuid; ?>"><?php echo $md->title; ?></a>
</li>
<?php endforeach; ?>
</ul>
<style>
#slides {
display: none
}
<div class="title">离线申请热门数据</div>
<ul>
<?php foreach($this->offlinemdtop as $i=>$md) : ?>
<li> <img src="/images/no<?php echo $i+1; ?>.gif" align="absmiddle" style="border-width:0px;" />&nbsp;
<a class="item" href="/data/<?php echo $md->uuid; ?>"><?php echo $md->title; ?></a>
</li>
<?php endforeach; ?>
</ul>
#slides .slidesjs-navigation {
margin-top:5px;
}
<div class="title">&nbsp;</div>
<p class="subtitle">统计数据显示,目前本站:</p>
<ul>
<li class="item"><span class="symbol">&nbsp;</span>元数据 <strong>
<span><?php echo $this->metanum; ?></span></strong></li>
<li class="item"><span class="symbol">&nbsp;</span>在线数据 <strong><?php echo number_format($this->onlinesize/1000,2,'.',''); ?> GB</strong></li>
<li class="item"><span class="symbol">&nbsp;</span>总数据 <strong><?php echo number_format(($this->onlinesize+$this->offlinesize)/1000,2,'.',''); ?> GB</strong></li>
<li class="item"><span class="symbol">&nbsp;</span>总注册用户&nbsp;<strong><span><?php echo $this->usernum; ?></span> </strong>&nbsp;</li>
</ul>
a.slidesjs-next,
a.slidesjs-previous,
a.slidesjs-play,
a.slidesjs-stop {
background-image: url(/images/btns-next-prev.png);
background-repeat: no-repeat;
display:block;
width:12px;
height:18px;
overflow: hidden;
text-indent: -9999px;
float: left;
margin-right:5px;
}
a.slidesjs-next {
margin-right:10px;
background-position: -12px 0;
}
</div>
a:hover.slidesjs-next {
background-position: -12px -18px;
}
<div id="sidebar">
<div class="title">随机推荐</div>
<a href="/data/<?php echo $this->mdrandom->uuid; ?>"><span><?php echo $this->mdrandom->title; ?></span>
<img src="/service/thumb/id/<?php echo $this->mdrandom->id; ?>" alt="Data Thumbnail" title="<?php echo mb_strlen($this->mdrandom->description)>400?$this->escape(mb_substr($this->mdrandom->description,0,400,'UTF-8').'...'):$this->escape($this->mdrandom->description);?>" />
</a>
a.slidesjs-previous {
background-position: 0 0;
}
<div class="title">专题数据集</div>
<ul>
<li class="item"><a href="/heihe">黑河计划数据管理中心</a></li>
<li class="item"><a href="/water">黑河综合遥感联合试验</a></li>
</ul>
<div class="title">数据导航</div>
<ul>
<li class="item">
<a href="/data/category">分类浏览</a>
</li>
<li class="item">
<a href="/data/tag">关键词导航</a>
</li>
<li class="item">
<a href="/data/series">数据集序列</a>
</li>
<li class="item">
<a href="/data/timeline">时间轴导航</a>
</li>
<li class="item">
<a href="/data/timemap">时空导航</a>
</li>
<li class="item"><a href="/data/onlinelist">在线数据清单</a></li>
<li class="item"><a href="/data/offlinelist">离线数据清单</a></li>
<li class="item">
<a href="/data/advancesearch">高级搜索</a>
</li>
<li class="item"><form id="search" enctype="application/x-www-form-urlencoded" action="/search" method="get">
<input type="text" name="q" id="q" value="回车搜索标题和摘要" onfocus="myfocus(this);" onblur="myblur(this);">
<input type="hidden" name="submit" value="submit">
</form></li>
<script>
function myfocus(element) {
if (element.value == '回车搜索标题和摘要') {
element.value = '';
}
}
function myblur(element) {
if (element.value == '') {
element.value = '回车搜索标题和摘要';
}
}
</script>
</ul>
a:hover.slidesjs-previous {
background-position: 0 -18px;
}
<div class="title">友情链接</div>
<ul>
<li class="extlink">&nbsp;<a href="http://heihe.westgis.ac.cn" target="_blank">数字黑河</a></li>
<li class="extlink">&nbsp;<a href="http://web.nuist.edu.cn/DQKX/nadsc/" target="_blank">南京大气资料服务中心</a></li>
<li class="extlink">&nbsp;<a href="http://www.sciencedata.cn" target="_blank">科学数据共享工程</a></li>
</ul>
a.slidesjs-play {
width:15px;
background-position: -25px 0;
}
</div> <!-- sidebar -->
a:hover.slidesjs-play {
background-position: -25px -18px;
}
<div id="rightPanel">
<div id="feature">
<div id="slides">
<div class="slides_container">
a.slidesjs-stop {
width:18px;
background-position: -41px 0;
}
a:hover.slidesjs-stop {
background-position: -41px -18px;
}
.slidesjs-pagination {
margin: 7px 0 0;
float: right;
list-style: none;
}
.slidesjs-pagination li {
float: left;
margin: 0 1px;
}
.slidesjs-pagination li a {
display: block;
width: 13px;
height: 0;
padding-top: 13px;
background-image: url(/images/pagination.png);
background-position: 0 0;
float: left;
overflow: hidden;
}
.slidesjs-pagination li a.active,
.slidesjs-pagination li a:hover.active {
background-position: 0 -13px
}
.slidesjs-pagination li a:hover {
background-position: 0 -26px
}
#slides a:link,
#slides a:visited {
color: #333
}
#slides a:hover,
#slides a:active {
color: #9e2020
}
.navbar {
overflow: hidden
}
.news-list li{
line-height:24px;
}
</style>
<div class="row">
<div class="span5">
<h4>新闻</h4>
<hr />
<ul class="news-list">
<?php foreach($this->list_news as $k=>$v){ ?>
<li><a href="<?= $v['url'] ?>"><?= $v['title'] ?></a><span class="pull-right" style="font-size:12px;">[<?= date("Y-m-d",strtotime($v['ts_published']))?>]</span></li>
<?php } ?>
</ul>
</div>
<div class="span7">
<div id="slides">
<?php
foreach($this->news as $k=>$v)
{
echo '<div class="slide">'.
'<div class="thumb"><img src="'.$v['image'].'" /></div>'.
'<div class="thumb"><img src="'.$v['image'].'" class="img-rounded" /></div>'.
'<div class="content">'.
'<div class="description"><h2><a href="'.$v['url'].'" title="'.$v['description'].'">'.$v['title'].'</a><span>['.date("Y-m-d",strtotime($v['ts_published'])).']</span></h2>'.
'<div class="description"><h5><a href="'.$v['url'].'" title="'.$v['description'].'">'.$v['title'].'</a><span>['.date("Y-m-d",strtotime($v['ts_published'])).']</span></h5>'.
'</div>'.
'</div>'.
'</div>';
}
?>
</div>
<a href="#" class="prev"><img src="/static/img/nyro/prev.gif" width="15" height="23" alt="Arrow Prev"></a>
<a href="#" class="next"><img src="/static/img/nyro/next.gif" width="15" height="23" alt="Arrow Next"></a>
</div>
</div>
<div id="itemCd">
<ul class="news-list">
<?php
foreach($this->list_news as $k=>$v)
{
echo '<li>[<a href="'.$v['type_url'].'">'.$v['type_title'].'</a>] <a href="'.$v['url'].'">'.$v['title'].'</a><span>['.date("Y-m-d",strtotime($v['ts_published'])).']</span></li>';
}
?>
</ul>
</div>
<div class="service_title">数据服务</div>
<div class="services_Item">
<a href="/data/service">用户服务</a><br />
-<span><a href="/data/offlineapp">最近20条离线数据服务记录</a></span><span>(共<?= $this->offlinenum; ?>)</span><br />
-<span><a href="/about/contact">联系我们</a></span>
<span><a href="/data/request">如何申请数据</a></span>
<span><a href="/data/submit">如何发布数据</a></span>
</div>
</div>
</div>
</div>
<hr />
<div class="row">
<div class="span6">
<h4>在线下载热门数据</h4>
<ul class="unstyled">
<?php foreach($this->mdtop 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 class="span6">
<h4>离线申请热门数据</h4>
<ul class="unstyled">
<?php foreach($this->offlinemdtop 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>
<hr />
<div class="row">
<div class="span4">
<h4>专题数据集</h4>
<ul class="unstyled">
<li class="item"><a href="/heihe">黑河计划数据管理中心</a></li>
<li class="item"><a href="/water">黑河综合遥感联合试验</a></li>
</ul>
<hr />
<h4>友情链接</h4>
<ul>
<li class="extlink"><a href="http://heihe.westgis.ac.cn" target="_blank">数字黑河</a></li>
<li class="extlink"><a href="http://web.nuist.edu.cn/DQKX/nadsc/" target="_blank">南京大气资料服务中心</a></li>
<li class="extlink"><a href="http://www.sciencedata.cn" target="_blank">科学数据共享工程</a></li>
</ul>
</div>
<div class="span4">
<h4>数据导航</h4>
<ul>
<li class="item">
<a href="/data/category">分类浏览</a>
</li>
<li class="item">
<a href="/data/tag">关键词导航</a>
</li>
<li class="item">
<a href="/data/series">数据集序列</a>
</li>
<li class="item">
<a href="/data/timeline">时间轴导航</a>
</li>
<li class="item">
<a href="/data/timemap">时空导航</a>
</li>
<li class="item"><a href="/data/onlinelist">在线数据清单</a></li>
<li class="item"><a href="/data/offlinelist">离线数据清单</a></li>
<li class="item">
<a href="/data/advancesearch">高级搜索</a>
</li>
<li class="item"><form id="search" enctype="application/x-www-form-urlencoded" action="/search" method="get">
<input type="text" name="q" id="q" value="回车搜索标题和摘要" onfocus="myfocus(this);" onblur="myblur(this);">
<input type="hidden" name="submit" value="submit">
</form></li>
<script>
function myfocus(element) {
if (element.value == '回车搜索标题和摘要') {
element.value = '';
}
}
function myblur(element) {
if (element.value == '') {
element.value = '回车搜索标题和摘要';
}
}
</script>
</ul>
</div>
<div class="span4">
<h4>数据服务</h4>
<a href="/data/service">用户服务</a><br />
-<span><a href="/data/offlineapp">最近20条离线数据服务记录</a></span><span>(共<?= $this->offlinenum; ?>)</span><br />
-<span><a href="/about/contact">联系我们</a></span>
<span><a href="/data/request">如何申请数据</a></span>
<span><a href="/data/submit">如何发布数据</a></span>
<h4>统计</h4>
<ul class="unstyled">
<li class="item"><span class="symbol">&nbsp;</span>元数据 <strong>
<span><?php echo $this->metanum; ?></span></strong></li>
<li class="item"><span class="symbol">&nbsp;</span>在线数据 <strong><?php echo number_format($this->onlinesize/1000,2,'.',''); ?> GB</strong></li>
<li class="item"><span class="symbol">&nbsp;</span>总数据 <strong><?php echo number_format(($this->onlinesize+$this->offlinesize)/1000,2,'.',''); ?> GB</strong></li>
<li class="item"><span class="symbol">&nbsp;</span>总注册用户&nbsp;<strong><span><?php echo $this->usernum; ?></span> </strong>&nbsp;</li>
</ul>
</div>
</div>
<script>
var startSlide = 1;
$('#slides').slides({
$('#slides').slidesjs({
preload: true,
preloadImage: 'images/loading.gif',
generatePagination: true,
//generateNextPrev: true,
play: 5000,
pause: 2500,
hoverPause: true,
start: startSlide,
next: 'next',
prev: 'prev',
effect: 'fade'
});
$(function() {
index.init();
index.npctl();
});
var index = {
init : function(){
$('.content').css('opacity',0.7);
},
npctl : function(){
$('#slides').hover(
function(){
$('.prev').css('left',0);
$('.next').css('left',475);
},
function(){
$('.prev').css('left',-20);
$('.next').css('left',520);
}
);
play: {
active: true,
auto: true,
interval: 4000,
effect: "fade"
},
navigation: {
effect: "fade"
},
pagination: {
effect: "fade"
},
effect: {
fade: {
speed: 800
}
}
}
});
</script>

View File

@ -1,37 +1,36 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!DOCTYPE html>
<html>
<head>
<?= $this->headTitle() ?>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<link rel="stylesheet" type="text/css" media="screen"
href="/css/default.css" />
<script src='/js/navi.js' type="text/javascript"></script>
<link rel="shortcut icon" href="/favicon_64.png" />
<link href="/js/lib/bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen">
<link href="/js/lib/bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet" media="screen">
<script src="/js/lib/jquery.lasted.js"></script>
<script src="/js/lib/bootstrap/js/bootstrap.min.js"></script>
<?= $this->headScript() ?>
<?= $this->headLink() ?>
<?= $this->headStyle() ?>
<link rel="shortcut icon" href="/favicon_64.png" />
<link rel="alternate" type="application/rss+xml" title="WestDC RSS Feed" href="/data/feed" />
<link rel="pingback" href="http://westdc.westgis.ac.cn/data/pingback" />
<?= $this->headTitle() ?>
<?= $this->headScript() ?>
<?= $this->headLink() ?>
<?= $this->headStyle() ?>
</head>
<body>
<?= $this->render('header.phtml') ?>
<div class="clearLine"/>
<div id="divBreadCrumb"><?= $this->breadcrumb() ?> </div>
<div id="divContent"><?= $this->layout()->content ?></div>
<div class="clearLine"/>
</head>
<body>
<div class="container">
<?= $this->render('header.phtml') ?>
<?= $this->layout()->content ?>
<?= $this->render('footer.phtml') ?>
<script type="text/javascript">setPage();</script>
<!-- Piwik -->
<script type="text/javascript">
var pkBaseURL = (("https:" == document.location.protocol) ? "https://piwik.westgis.ac.cn/" : "http://piwik.westgis.ac.cn/");
document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
</script><script type="text/javascript">
try {
var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 5);
piwikTracker.trackPageView();
piwikTracker.enableLinkTracking();
} catch( err ) {}
</script><noscript><p><img src="http://piwik.westgis.ac.cn/piwik.php?idsite=5" style="border:0" alt="" /></p></noscript>
<!-- End Piwik Tracking Code -->
</body>
</html>
</div>
</body>
<!-- Piwik -->
<script type="text/javascript">
var pkBaseURL = (("https:" == document.location.protocol) ? "https://piwik.westgis.ac.cn/" : "http://piwik.westgis.ac.cn/");
document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
</script><script type="text/javascript">
try {
var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 5);
piwikTracker.trackPageView();
piwikTracker.enableLinkTracking();
} catch( err ) {}
</script><noscript><p><img src="http://piwik.westgis.ac.cn/piwik.php?idsite=5" style="border:0" alt="" /></p></noscript>
</html>

View File

@ -81,7 +81,7 @@ class Theme
//loadinglayer
'slides' => array(
$this->ScriptKey => array(
'/js/lib/slides.min.jquery.js'
'/js/lib/jquery.slides.min.js'
)
),

View File

@ -5,6 +5,7 @@ date_default_timezone_set('Asia/Shanghai');
// directory setup and class loading
set_include_path('.' . PATH_SEPARATOR . '../include/'
. PATH_SEPARATOR . 'D:/library'
. PATH_SEPARATOR . '../application/models'
. PATH_SEPARATOR . '../application/default/controllers'
. PATH_SEPARATOR . get_include_path());

7
htdocs/js/lib/jquery.slides.min.js vendored Normal file

File diff suppressed because one or more lines are too long