westdc-zf1/application/default/views/scripts/hiwater/document.phtml

49 lines
1.5 KiB
PHTML

<?php
$this->headTitle($this->config->title->site);
$this->headTitle($this->config->title->data);
$this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/water.css');
$this->breadcrumb('<a href="/">Home</a>');
$this->breadcrumb()->setSeparator(' > ');
$this->theme->AppendPlus($this,'colorbox');
$this->nav[] = array('link'=>"/hiwater",'title'=>'HiWATER');
?>
<?= $this->render('breadcrumbs.phtml'); ?>
<div class="row">
<div class="span3">
<?= $this->partial('hiwater/navi.phtml'); ?>
</div>
<div class="span9">
<h3>Related publications</h3>
<?php if ($this->refs) : ?>
<?php echo $this->page->getNavigation(); ?>
<div id="mdlist">
<ol start="<?php echo $this->offset; ?>">
<?php foreach($this->refs as $md) : ?>
<li><?php echo $md['reference'];
if ($md['link'])
{
echo ' <a href="'.$md['link'].'">download</a>';
}
?>
[<a href="javascript:;" onclick="showdata('<?php echo $md['id'];?>',0)">Related dataset</a>]
</li>
<?php endforeach; ?>
</ol>
</div>
<?php endif; ?>
</div>
</div>
<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>