westdc-zf1/application/default/views/scripts/data/list.phtml

85 lines
4.4 KiB
PHTML

<?php
$this->headTitle($this->config->title->site);
$this->headTitle($this->config->title->data);
$this->headTitle()->setSeparator(' - ');
$this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
$this->breadcrumb('数据列表');
$this->breadcrumb()->setSeparator(' > ');
?>
<div class="row">
<table class="span12"><?php foreach($this->metadata as $md) : ?>
<tr><td><h4><?php echo $md['title']; ?></h4></td>
<td rowspan="2"><img src="/service/qrcode/uuid/<?php echo $md['uuid']; ?>"> </td></tr>
<tr><td><?php if ($md['citation']) : ?>
<?php if (empty($md['datadoi']) || !strpos($md['citation'],$md['datadoi'])) : ?>
<?php endif; echo $this->escape($md['citation']); ?>
<br />
<?php if (!empty($md['datadoi']) && !strpos($md['citation'],$md['datadoi'])) : ?>
<?php
echo substr($md['authors'],1,-1).'. '.$md['title'].'. '.$md['publisher'].', '.(empty($md['ts_published'])?$md['publish_year']:date('Y',strtotime($md['ts_published']))).'. doi:'.$md['doi'];
?>
<?php endif; endif; ?> </td></tr>
<?php endforeach; ?></table>
<table class="span12"><?php foreach($this->water as $md) : ?>
<tr><td><h4><?php echo $md['title']; ?></h4></td>
<td rowspan="2"><img src="/service/qrcode/uuid/<?php echo $md['uuid']; ?>"> </td></tr>
<tr><td><?php if ($md['citation']) : ?>
<?php if (empty($md['datadoi']) || !strpos($md['citation'],$md['datadoi'])) : ?>
<?php endif; echo $this->escape($md['citation']); ?>
<br />
<?php if (!empty($md['datadoi']) && !strpos($md['citation'],$md['datadoi'])) : ?>
<?php
echo substr($md['authors'],1,-1).'. '.$md['title'].'. '.$md['publisher'].', '.(empty($md['ts_published'])?$md['publish_year']:date('Y',strtotime($md['ts_published']))).'. doi:'.$md['doi'];
?>
<?php endif; endif; ?> </td></tr>
<?php endforeach; ?></table>
<table class="span12"><?php foreach($this->hiwater as $md) : ?>
<tr><td><h4><?php echo $md['title']; ?></h4></td>
<td rowspan="2"><img src="/service/qrcode/uuid/<?php echo $md['uuid']; ?>"> </td></tr>
<tr><td><?php if ($md['citation']) : ?>
<?php if (empty($md['datadoi']) || !strpos($md['citation'],$md['datadoi'])) : ?>
<?php endif; echo $this->escape($md['citation']); ?>
<br />
<?php if (!empty($md['datadoi']) && !strpos($md['citation'],$md['datadoi'])) : ?>
<?php
echo substr($md['authors'],1,-1).'. '.$md['title'].'. '.$md['publisher'].', '.(empty($md['ts_published'])?$md['publish_year']:date('Y',strtotime($md['ts_published']))).'. doi:'.$md['doi'];
?>
<?php endif; endif; ?> </td></tr>
<?php endforeach; ?></table>
<table class="span12"><?php foreach($this->heihe as $md) : ?>
<tr><td><h4><?php echo $md['title']; ?></h4></td>
<td rowspan="2"><img src="/service/qrcode/uuid/<?php echo $md['uuid']; ?>"> </td></tr>
<tr><td><?php if ($md['citation']) : ?>
<?php if (empty($md['datadoi']) || !strpos($md['citation'],$md['datadoi'])) : ?>
<?php endif; echo $this->escape($md['citation']); ?>
<br />
<?php if (!empty($md['datadoi']) && !strpos($md['citation'],$md['datadoi'])) : ?>
<?php
echo substr($md['authors'],1,-1).'. '.$md['title'].'. '.$md['publisher'].', '.(empty($md['ts_published'])?$md['publish_year']:date('Y',strtotime($md['ts_published']))).'. doi:'.$md['doi'];
?>
<?php endif; endif; ?> </td></tr>
<?php endforeach; ?></table>
<table class="span12"><?php foreach($this->westee as $md) : ?>
<tr><td><h4><?php echo $md['title']; ?></h4></td>
<td rowspan="2"><img src="/service/qrcode/uuid/<?php echo $md['uuid']; ?>"> </td></tr>
<tr><td><?php if ($md['citation']) : ?>
<?php if (empty($md['datadoi']) || !strpos($md['citation'],$md['datadoi'])) : ?>
<?php endif; echo $this->escape($md['citation']); ?>
<br />
<?php if (!empty($md['datadoi']) && !strpos($md['citation'],$md['datadoi'])) : ?>
<?php
echo substr($md['authors'],1,-1).'. '.$md['title'].'. '.$md['publisher'].', '.(empty($md['ts_published'])?$md['publish_year']:date('Y',strtotime($md['ts_published']))).'. doi:'.$md['doi'];
?>
<?php endif; endif; ?> </td></tr>
<?php endforeach; ?></table>
</div>