translation

This commit is contained in:
wlx 2013-11-09 15:46:23 +00:00
parent 4e994eb218
commit d9fbefbd5a
10 changed files with 167 additions and 119 deletions

View File

@ -1,9 +1,9 @@
<?php
$this->headTitle($this->config->title->site);
$this->headTitle($this->config->title->data);
$this->headTitle('离线申请');
$this->headTitle('Offline Application');
$this->headTitle()->setSeparator(' - ');
$this->nav[] = array('link'=>"/data/order",'title'=>'数据蓝');
$this->nav[] = array('link'=>"/data/order",'title'=>'Cart');
$this->theme->AppendPlus($this,'colorbox');
$this->theme->AppendPlus($this,'uploadify');
$this->theme->AppendModel($this,'offlineapp-uploader');
@ -17,7 +17,7 @@
</div><!--/.well -->
</div><!--/span-->
<div class="span9">
<h3>数据篮</h3>
<h3>Ordering Cart</h3>
<hr />
<?php
if(!empty($this->msg))
@ -27,25 +27,25 @@
?>
<ul class="nav nav-tabs">
<li id="Nav-order-offline1"><a href="/data/order/ac/offline1">未生成的申请<?= !empty($this->counts['offline1']) ? '<span class="badge badge-info">'.$this->counts['offline1'].'</span>':'' ?></a></li>
<li id="Nav-order-offline2"><a href="/data/order/ac/offline2">待提交的订单<?= !empty($this->counts['offline2']) ? '<span class="badge badge-info">'.$this->counts['offline2'].'</span>':'' ?></a></li>
<li id="Nav-order-offline3"><a href="/data/order/ac/offline3">待审批的订单<?= !empty($this->counts['offline3']) ? '<span class="badge badge-info">'.$this->counts['offline3'].'</span>':'' ?></a></li>
<li id="Nav-order-offline4"><a href="/data/order/ac/offline4">已通过的申请<?= !empty($this->counts['offline4']) ? '<span class="badge badge-info">'.$this->counts['offline4'].'</span>':'' ?></a></li>
<li id="Nav-order-online"><a href="/data/order/ac/online">在线数据<?= !empty($this->counts['onlineapp']) ? '<span class="badge badge-info">'.$this->counts['onlineapp'].'</span>':'' ?></a></li>
<li id="Nav-order-offline1"><a href="/data/order/ac/offline1">Unsubmitted<?= !empty($this->counts['offline1']) ? '<span class="badge badge-info">'.$this->counts['offline1'].'</span>':'' ?></a></li>
<li id="Nav-order-offline2"><a href="/data/order/ac/offline2">Submitting<?= !empty($this->counts['offline2']) ? '<span class="badge badge-info">'.$this->counts['offline2'].'</span>':'' ?></a></li>
<li id="Nav-order-offline3"><a href="/data/order/ac/offline3">Wating Audit<?= !empty($this->counts['offline3']) ? '<span class="badge badge-info">'.$this->counts['offline3'].'</span>':'' ?></a></li>
<li id="Nav-order-offline4"><a href="/data/order/ac/offline4">Approved Application<?= !empty($this->counts['offline4']) ? '<span class="badge badge-info">'.$this->counts['offline4'].'</span>':'' ?></a></li>
<li id="Nav-order-online"><a href="/data/order/ac/online">Online Data<?= !empty($this->counts['onlineapp']) ? '<span class="badge badge-info">'.$this->counts['onlineapp'].'</span>':'' ?></a></li>
</ul>
<!-- content -->
<?php if (!empty($this->paginator)) : ?>
<div class="pagenavi"><?= $this->paginator; ?></div>
<?php if ($this->tabID=='order-offline2') { ?>
<div class="well alert alert-error">重要说明:完成一个订单需要三个步骤,即<strong>生成pdf</strong><strong>上传签字后的pdf</strong><strong>确认订单</strong>。请确保上传的pdf和当前订单中的数据相同否则无法受理。若不相同请重新生成、上传。</div>
<div class="well alert alert-error">Note: 成一个订单需要三个步骤,即<strong>生成pdf</strong><strong>上传签字后的pdf</strong><strong>确认订单</strong>。请确保上传的pdf和当前订单中的数据相同否则无法受理。若不相同请重新生成、上传。</div>
<?php } ?>
<table class="table table-bordered table-striped">
<thead>
<th>时间</th>
<th>标题</th>
<th>Date</th>
<th>Title</th>
<th>
<?php if ($this->tabID=='order-offline1') {
echo '<a class="btn btn-primary" href="/data/order/apply/all">全部放入订单</a>最多5条';
echo '<a class="btn btn-primary" href="/data/order/apply/all">Put all into Application</a>(maximum is 5)';
} elseif ($this->tabID=='order-offline2') {
if(count($this->paginator))
{

View File

@ -23,8 +23,8 @@
<li id="main-nav-index"><a href="/"><span>Home</span></a></li>
<li id="main-nav-data"><a href="/data"><span>Dataset</span></a></li>
<!--<li id="main-nav-review"><a href="/review"><span>数据评审</span></a></li>
<li id="main-nav-author"><a href="/author"><span>For Author</span></a></li>
<li id="main-nav-knowledge"><a href="/knowledge"><span>Knowledge</span></a></li>-->
<li id="main-nav-author"><a href="/author"><span>For Author</span></a></li>-->
<li id="main-nav-knowledge"><a href="/knowledge"><span>Knowledge</span></a></li>
<li><a href="/archives"><span>News & Events</span></a></li>
<li><a href="/about"><span>About</span></a></li>
</ul>

View File

@ -1,11 +1,11 @@
<?php
$this->headTitle($this->config->title->site);
$this->headTitle('知识积累');
$this->headTitle('Knowledge');
$this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/mdreview.css');
$this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/knowledge">知识积累</a>');
$this->breadcrumb('数据作者');
$this->breadcrumb('<a href="/">Home</a>');
$this->breadcrumb('<a href="/knowledge">Knowledge</a>');
$this->breadcrumb('Publicated by Authors');
$this->breadcrumb()->setSeparator(' > ');
$this->headScript()->appendFile('/js/jquery.colorbox-min.js');
$this->headLink()->appendStylesheet('/css/colorbox.css');
@ -16,17 +16,20 @@ $this->headLink()->appendStylesheet('/css/colorbox.css');
</div>
<div class="span9">
<div id="content">
<h2>数据作者文献库</h2>
<h2>Publicated by Authors</h2>
<div>
<?php if (count($this->paginator)): ?>
<ul>
<?php foreach ($this->paginator as $item): ?>
<li> <?php echo $item['reference']; ?>
<?php if (!empty($item['link'])) :
echo ' <a href="'.$item['link'].'">下载</a>';
<li>
<?php
echo $item['reference'];
echo ' <a class="btn btn-mini btn-info" href="/knowledge/paper/id/'.$item['id'].'">View</a>';
if (!empty($item['attid'])) :
echo ' <a class="btn btn-mini btn-info" href="/service/attach/id/'.$item['attid'].'">Download</a>';
endif;
?>
<a class="btn btn-mini btn-info" href="javascript:;" onclick="showdata('<?php echo $item['id'];?>',0)">相关数据</a>
?>
<a class="btn btn-mini btn-info" href="javascript:;" onclick="showdata('<?php echo $item['id'];?>',0)">Related data</a>
</li>
<?php endforeach; ?>
</ul>

View File

@ -1,12 +1,14 @@
<?php
$this->headTitle($this->config->title->site);
$this->headTitle('知识积累');
$this->headTitle('Knowledge');
$this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/mdreview.css');
$this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/knowledge">知识积累</a>');
$this->breadcrumb('数据中心');
$this->breadcrumb('<a href="/">Home</a>');
$this->breadcrumb('<a href="/knowledge">Knowledge</a>');
$this->breadcrumb('Publicated by CARD');
$this->breadcrumb()->setSeparator(' > ');
$this->headScript()->appendFile('/js/jquery.colorbox-min.js');
$this->headLink()->appendStylesheet('/css/colorbox.css');
?>
<div class="row">
<div class="span3">
@ -14,17 +16,20 @@ $this->breadcrumb()->setSeparator(' > ');
</div>
<div class="span9">
<div id="content">
<h2>数据中心文献库</h2>
<h2>Publicated by CARD</h2>
<div>
<?php if (count($this->paginator)): ?>
<ul>
<?php foreach ($this->paginator as $item): ?>
<li> <?php echo $item['reference']; ?>
<?php if (!empty($item['link'])) :
echo ' <a href="'.$item['link'].'">下载</a>';
<li>
<?php
echo $item['reference'];
echo ' <a class="btn btn-mini btn-info" href="/knowledge/paper/id/'.$item['id'].'">View</a>';
if (!empty($item['attid'])) :
echo ' <a class="btn btn-mini btn-info" href="/service/attach/id/'.$item['attid'].'">Download</a>';
endif;
?>
</li>
?>
</li>
<?php endforeach; ?>
</ul>
<div class="pagenavi"><?= $this->paginator; ?></div>

View File

@ -3,23 +3,13 @@ $this->headTitle($this->config->title->site);
$this->headTitle($this->config->title->knowledge);
$this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/mdreview.css');
$this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/">Home</a>');
$this->breadcrumb($this->config->title->knowledge);
$this->breadcrumb()->setSeparator(' > ');
?>
<div class="row">
<div class="span3">
<?= $this->partial('knowledge/navi.phtml'); ?>
<div class="sidebar-nav bs-review-nav">
<ul class="nav nav-list bs-review-sidenav">
<li> <a href="http://seekspace.resip.ac.cn/handle/2239/1" target="_blank"><i class="icon-share"></i>西部计划资源</a> </li>
<li> <a href="http://seekspace.resip.ac.cn/handle/2239/2" target="_blank"><i class="icon-share"></i>环境与生态科学期刊资源 </a> </li>
<li> <a href="http://seekspace.resip.ac.cn/handle/2239/12" target="_blank"><i class="icon-share"></i>环境与生态科学信息网关 </a> </li>
<li> <a href="http://seekspace.resip.ac.cn/handle/2239/13" target="_blank"><i class="icon-share"></i>环境与生态科学开放知识资源 </a> </li>
<li> <a href="http://seekspace.resip.ac.cn/handle/2239/2460" target="_blank"><i class="icon-share"></i>西部环境与生态科学文献库 </a> </li>
<li> <a href="http://seekspace.resip.ac.cn/handle/2239/23662" target="_blank"><i class="icon-share"></i>黑河流域研究 </a> </li>
</ul>
</div>
</div>
<div class="span9">
<div id="myCarousel" class="carousel slide">
@ -30,27 +20,22 @@ $this->breadcrumb()->setSeparator(' > ');
</ol>
<!-- Carousel items -->
<div class="carousel-inner">
<div class="active item hero-unit"><h2>西部计划文献库</h2>
<div class="span3"><a href="http://seekspace.resip.ac.cn" target="_blank"> <img alt="中国(西部)环境与生态科学知识积累平台" src="/images/ssimg.jpg" /></a></div>
<p>旨在发展和形成一个支持环境与生态科学领域开放学术信息的自助存档、交流和发现的领域知识平台。
首先,实现对国家自然科学基金委组织实施的“中国西部环境与生态科学研究计划”历年来所支持的研究项目和课题所产生的有重要科研和学术价值的知识产出进行统一组织和管理,
建立长期保存与开放持续利用的机制,促进知识产出的共享利用,扩大其影响和应用效益。其次,支持对国内外环境与生态科学领域的各种有价值的开放性学术资源的集成利用,
特别是对有重要学术影响的研究性数字知识库所涉及的环境与生态科学领域的学术信息进行搜索、发现、聚集和再组织。</p>
<p><a class="btn btn-primary" href="/knowledge/westplan">查看 &raquo;</a> <a class="btn btn-info" href="http://seekspace.resip.ac.cn">访问seekspace &raquo;</a></p>
<div class="active item hero-unit"><h2>Cited By</h2>
<p>These publications use the sciencific datasets that are distributed in the Cold and Arid Regions Science Data Center at Lanzhou.
Users may dig knowledge from these publications, find more informations from different users.</p>
<p><a class="btn btn-primary" href="/knowledge/westplan">GO &raquo;</a></p>
</div>
<div class="item hero-unit">
<h2>数据作者文献库</h2>
<p>数据作者文献库是对发布在数据中心的科学数据中相关的参考文献,主要是由数据作者发表的、和其数据紧密相关的科学文献。</p>
<p>用户可以通过数据作者的文献库中挖掘出对应的数据信息,实现从文献到数据的一个知识挖掘。将数据中心所有的数据作者文献构建一个和数据紧密相关的知识库,可以供用户更好的了解和发现数据和知识。
支持用户对数据作者的学术信息进行搜索、发现、聚集和再组织。</p>
<p><a class="btn btn-primary" href="/knowledge/author">查看 &raquo;</a></p>
<h2>Publicated by Authors</h2>
<p>These publications are publicated by the datasets' authors who distributed these datasets in the Cold and Arid Regions Science Data Center at Lanzhou.
Users may dig knowledge from these publications, find more informations from different users.</p>
<p><a class="btn btn-primary" href="/knowledge/author">GO &raquo;</a></p>
</div>
<div class="item hero-unit">
<h2>数据用户文献库</h2>
<p>数据用户文献库是数据用户在使用科学数据后公开发表在科技期刊上的文献,由用户自发通知数据中心、数据作者收集和数据中心集中手机三种方式进行收集整理。</p>
<p>从数据用户的文献库中,可以挖掘出更多的知识,了解用户是如何使用数据中心提供的科学数据。数据作者也可以从其中获取到数据相关的趋势性知识。
数据中心也欢迎用户提供更多的公开发表成果,我们将持续更新其内容,以满足数据的深层挖掘,实现学术信息进行搜索、发现、聚集和再组织。</p>
<p><a class="btn btn-primary" href="/knowledge/user">查看 &raquo;</a></p>
<h2>Related with WATER</h2>
<p>These publications are publicated by the WATER projects or uses WATER datasets.
Users may dig knowledge from these publications, find more informations from different users.</p>
<p><a class="btn btn-primary" href="/knowledge/user">GO &raquo;</a></p>
</div>
</div>
<!-- Carousel nav -->

View File

@ -1,25 +1,18 @@
<div class="sidebar-nav bs-review-nav">
<ul class="nav nav-list bs-review-sidenav">
<li id="Nav-knowledge-index"><a href="/knowledge/"><i class="icon-chevron-right"></i>介绍</a></li>
<li id="Nav-knowledge-westplan"><a href="/knowledge/westplan"><i class="icon-chevron-right"></i>西部计划文献库</a></li>
<li id="Nav-knowledge-author"><a href="/knowledge/author"><i class="icon-chevron-right"></i>数据作者文献库</a></li>
<li id="Nav-knowledge-user"><a href="/knowledge/user"><i class="icon-chevron-right"></i>数据用户文献库</a></li>
<li id="Nav-knowledge-datacenter"><a href="/knowledge/datacenter"><i class="icon-chevron-right"></i>数据中心文献库</a></li>
<li id="Nav-knowledge-index"><a href="/knowledge/"><i class="icon-chevron-right"></i>Introduction</a></li>
<li id="Nav-knowledge-user"><a href="/knowledge/user"><i class="icon-chevron-right"></i>Cited By</a></li>
<li id="Nav-knowledge-author"><a href="/knowledge/author"><i class="icon-chevron-right"></i>Publicated by Authors</a></li>
<li id="Nav-knowledge-water"><a href="/knowledge/water"><i class="icon-chevron-right"></i>Related with WATER</a></li>
<li id="Nav-knowledge-datacenter"><a href="/knowledge/datacenter"><i class="icon-chevron-right"></i>Publicated by CARD</a></li>
</ul>
</div>
<form class="form-search" id="search" enctype="application/x-www-form-urlencoded" action="/knowledge/search" method="get">
<div class="input-append">
<input class="span2" id="q" name="q" type="text" value="<?php echo (empty($this->key))?'':$this->key; ?>" placeholder="搜索作者和标题">
<button type="submit" class="btn">搜索</button>
<input class="span2" id="q" name="q" type="text" value="<?php echo (empty($this->key))?'':$this->key; ?>" placeholder="Search title and author">
<button type="submit" class="btn">Search</button>
<div class="form-actions">
<label class="radio">
<input type="radio" name="searchsource" id="datasource" value="datasource" <?php echo ($this->source=='datasource')?'checked':''; ?>>
数据文献库
</label>
<label class="radio">
<input type="radio" name="searchsource" id="westsource" value="westsource" <?php echo ($this->source=='datasource')?'':'checked'; ?>>
西部计划文献库
</label>
</div>
</div>
</form>

View File

@ -1,11 +1,11 @@
<?php
$this->headTitle($this->config->title->site);
$this->headTitle('知识积累');
$this->headTitle('Knowledge');
$this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/mdreview.css');
$this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/knowledge">知识积累</a>');
$this->breadcrumb('文章查看');
$this->breadcrumb('<a href="/">Home</a>');
$this->breadcrumb('<a href="/knowledge">Knowledge</a>');
$this->breadcrumb('View paper');
$this->breadcrumb()->setSeparator(' > ');
$this->headScript()->appendFile('/js/jquery.colorbox-min.js');
$this->headLink()->appendStylesheet('/css/colorbox.css');
@ -21,7 +21,7 @@ $this->headLink()->appendStylesheet('/css/colorbox.css');
<hr />
<?php } ?>
<?php if(count($this->author) > 0) {?>
<h4>作者</h4>
<h4>Authors</h4>
<ul>
<?php foreach($this->author as $a) : ?>
<li><?php echo $a['lastname'];if (!empty($a['firstname'])) echo ', '.$a['firstname']; ?></li>
@ -31,13 +31,13 @@ $this->headLink()->appendStylesheet('/css/colorbox.css');
<?php } ?>
<?php if ($this->paper['abstract']){ ?>
<h4>摘要</h4>
<h4>Abstract</h4>
<p><?php echo $this->paper['abstract']; ?></p>
<hr />
<?php } ?>
<?php if(count($this->tag) > 0) { ?>
<h4>关键词</h4>
<h4>Keywords</h4>
<ul>
<?php foreach($this->tag as $t) : ?>
<li><?php echo $t['tag']; ?></li>
@ -47,7 +47,7 @@ $this->headLink()->appendStylesheet('/css/colorbox.css');
<?php } ?>
<?php if(!empty($this->paper['reference'])) { ?>
<h4>引用方式</h4>
<h4>Citation</h4>
<blockquote>
<?php echo $this->paper['reference']; ?>
</blockquote>
@ -60,18 +60,18 @@ $this->headLink()->appendStylesheet('/css/colorbox.css');
{
if(!empty($this->paper['attid']))
{
echo '<a href="/service/attach/id/'.$this->paper['attid'].'"><i class="icon-download text-success"></i>PDF下载</a>';
echo '<a class="btn btn-mini btn-info" href="/service/attach/id/'.$this->paper['attid'].'">PDF</a>';
}
}else{
echo '<a href="'.$this->paper['link'].'"><i class="icon-download text-success"></i>PDF下载</a>';
echo '<a href="'.$this->paper['link'].'"><i class="icon-download text-success"></i>PDF</a>';
}
if (!empty($item['link'])) :
echo ' <a href="'.$item['link'].'">下载</a>';
if (!empty($item['attid'])) :
echo ' <a class="btn btn-mini btn-info" href="/service/attach/id/'.$item['attid'].'">Download</a>';
endif;
?>
<a class="btn btn-mini btn-info" href="javascript:;" onclick="showdata('<?php echo $this->paper['id'];?>',0)">相关数据(共<span id="referenceDataCount"></span>条)</a>
<a class="btn btn-mini btn-info" href="javascript:;" onclick="showdata('<?php echo $this->paper['id'];?>',0)">Related: <span id="referenceDataCount"></span></a>
</div>

View File

@ -1,11 +1,11 @@
<?php
$this->headTitle($this->config->title->site);
$this->headTitle('知识积累');
$this->headTitle('Knowledge');
$this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/mdreview.css');
$this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/knowledge">知识积累</a>');
$this->breadcrumb('数据文献搜索');
$this->breadcrumb('<a href="/">Home</a>');
$this->breadcrumb('<a href="/knowledge">Knowledge</a>');
$this->breadcrumb('Knowledge Search');
$this->breadcrumb()->setSeparator(' > ');
$this->headScript()->appendFile('/js/jquery.colorbox-min.js');
$this->headLink()->appendStylesheet('/css/colorbox.css');
@ -16,17 +16,20 @@ $this->headLink()->appendStylesheet('/css/colorbox.css');
</div>
<div class="span9">
<div id="content">
<h2>数据文献搜索</h2>
<h2>Search Results</h2>
<div>
<?php if (count($this->paginator)): ?>
<ul>
<?php foreach ($this->paginator as $item): ?>
<li> <?php echo $item['reference']; ?>
<?php if (!empty($item['link'])) :
echo ' <a class="btn btn-mini btn-inverse" href="'.$item['link'].'">下载</a>';
<li>
<?php
echo $item['reference'];
echo ' <a class="btn btn-mini btn-info" href="/knowledge/paper/id/'.$item['id'].'">View</a>';
if (!empty($item['attid'])) :
echo ' <a class="btn btn-mini btn-info" href="/service/attach/id/'.$item['attid'].'">Download</a>';
endif;
?>
<a class="btn btn-mini btn-info" href="javascript:;" onclick="showdata('<?php echo $item['id'];?>',0)">相关数据</a>
?>
<a class="btn btn-mini btn-info" href="javascript:;" onclick="showdata('<?php echo $item['id'];?>',0)">Related data</a>
</li>
<?php endforeach; ?>
</ul>

View File

@ -1,32 +1,35 @@
<?php
$this->headTitle($this->config->title->site);
$this->headTitle('知识积累');
$this->headTitle('Knowledge');
$this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/mdreview.css');
$this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/knowledge">知识积累</a>');
$this->breadcrumb('数据用户');
$this->breadcrumb('<a href="/">Home</a>');
$this->breadcrumb('<a href="/knowledge">Knowledge</a>');
$this->breadcrumb('cited by');
$this->breadcrumb()->setSeparator(' > ');
$this->headScript()->appendFile('/js/jquery.colorbox-min.js');
$this->headLink()->appendStylesheet('/css/colorbox.css');
?>
<div class="row">
<div class="span3">
<?= $this->partial('knowledge/navi.phtml'); ?>
</div>
<?= $this->partial('knowledge/navi.phtml'); ?>
</div>
<div class="span9">
<div id="content">
<h2>数据用户文献库</h2>
<h2>Cited By</h2>
<div>
<?php if (count($this->paginator)): ?>
<ul>
<?php foreach ($this->paginator as $item): ?>
<li> <?php echo $item['reference']; ?>
<?php if (!empty($item['link'])) :
echo ' <a href="'.$item['link'].'">下载</a>';
<li>
<?php
echo $item['reference'];
echo ' <a class="btn btn-mini btn-info" href="/knowledge/paper/id/'.$item['id'].'">View</a>';
if (!empty($item['attid'])) :
echo ' <a class="btn btn-mini btn-info" href="/service/attach/id/'.$item['attid'].'">Download</a>';
endif;
?>
<a class="btn btn-mini btn-info" href="javascript:;" onclick="showdata('<?php echo $item['id'];?>',0)">相关数据</a>
?>
<a class="btn btn-mini btn-info" href="javascript:;" onclick="showdata('<?php echo $item['id'];?>',0)">Related data</a>
</li>
<?php endforeach; ?>
</ul>

View File

@ -0,0 +1,56 @@
<?php
$this->headTitle($this->config->title->site);
$this->headTitle('Knowledge');
$this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/mdreview.css');
$this->breadcrumb('<a href="/">Home</a>');
$this->breadcrumb('<a href="/knowledge">Knowledge</a>');
$this->breadcrumb('Publicated by WATER');
$this->breadcrumb()->setSeparator(' > ');
$this->headScript()->appendFile('/js/jquery.colorbox-min.js');
$this->headLink()->appendStylesheet('/css/colorbox.css');
?>
<div class="row">
<div class="span3">
<?= $this->partial('knowledge/navi.phtml'); ?>
</div>
<div class="span9">
<div id="content">
<h2>Related with WATER</h2>
<div>
<?php if (count($this->paginator)): ?>
<ul>
<?php foreach ($this->paginator as $item): ?>
<li>
<?php
echo $item['reference'];
echo ' <a class="btn btn-mini btn-info" href="/knowledge/paper/id/'.$item['id'].'">View</a>';
if (!empty($item['attid'])) :
echo ' <a class="btn btn-mini btn-info" href="/service/attach/id/'.$item['attid'].'">Download</a>';
endif;
?>
<a class="btn btn-mini btn-info" href="javascript:;" onclick="showdata('<?php echo $item['id'];?>',0)">Related data</a>
</li>
<?php endforeach; ?>
</ul>
<div class="pagenavi"><?= $this->paginator; ?></div>
<?php endif; ?>
</div>
</div>
</div>
</div>
<script type="text/javascript" >
$('#Nav-knowledge-water').addClass('active');
</script>
<script>
function showdata(id,page){
var url="/service/refdatalist/id/"+id;
$.ajax({
'type':"GET",
'url':url,
'data':'page='+page,
'dataType':'html',
'success':function(html){$.colorbox({'html':html,'innerHeight':230});}
});
}
</script>