72 lines
3.2 KiB
PHTML
72 lines
3.2 KiB
PHTML
<?php
|
||
$this->headTitle($this->config->title->site);
|
||
$this->headTitle($this->config->title->data);
|
||
$this->headTitle('数据作者浏览');
|
||
$this->headTitle()->setSeparator(' - ');
|
||
$this->nav[] = array('link'=>"/heihe/author",'title'=>'作者浏览');
|
||
$this->theme->AppendPlus($this,'colorbox');
|
||
$this->headLink()->appendStylesheet('/css/water.css');
|
||
?>
|
||
<?= $this->render('breadcrumbs.phtml') ?>
|
||
<div class='row'>
|
||
<div class="span2">
|
||
<?= $this->partial('heihe/navi.phtml'); ?>
|
||
</div>
|
||
<div class="span10">
|
||
<ul class="nav nav-tabs">
|
||
<li id="Nav-author-unverified"><a href="/heihe/author">未认证的数据作者<?php if ($this->author && $this->ac=='unverified') echo ':'.$this->author['username']; ?></a></li>
|
||
<li id="Nav-author-verified"><a href="/heihe/author/ac/verified">已认证的数据作者<?php if ($this->author && $this->ac=='verified') echo ':'.$this->author['username'].'['.$this->author['realname'].']'; ?></a></li>
|
||
</ul>
|
||
<?php if ($this->author) : ?>
|
||
<?php if (!empty($this->paginator)) : ?>
|
||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||
<?php foreach($this->paginator as $md) : ?>
|
||
<div class="media well well-small">
|
||
<a class="pull-left colorbox" href="/service/bigthumb/uuid/<?php echo $md['uuid']; ?>">
|
||
<img class="media-object" src="/service/thumb/id/<?php echo $md['id'];?>">
|
||
</a>
|
||
<div class="media-body">
|
||
<h4 class="media-heading"><a href="/heihe/view/uuid/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']);?></a></h4>
|
||
<?php if (@$md['datadoi']) : ?>
|
||
<h4 class="media-heading">DOI:<?php echo $md['datadoi'];?>
|
||
<?php if (@$md['ts_submitted']) : ?> <span class="label label-info">申请日期:<?php echo $md['ts_submitted'];?></span>
|
||
<?php else: if (@$md['ts_created']) : ?> <span class="label label-info">创建日期:<?php echo $md['ts_created'];?></span> <?php endif; ?>
|
||
<?php endif; ?>
|
||
<?php if (@$md['ts_published']) : ?> <span class="label label-success">发布日期:<?php echo $md['ts_published'];?></span><?php endif; ?>
|
||
</h4>
|
||
<?php else: if (@$md['doi']): ?>
|
||
<h4 class="media-heading">DOI:<?php echo $md['doi']; ?></h4>
|
||
<?php endif; ?>
|
||
|
||
<?php endif; ?>
|
||
<div class="summary"><?php echo str_replace(array("\r\n", "\n", "\r"),'<br />',mb_strlen($md['description'])>400?$this->escape(mb_substr($md['description'],0,400,'UTF-8').'...'):$this->escape($md['description']));?></div>
|
||
</div>
|
||
</div>
|
||
<?php endforeach; ?>
|
||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||
<?php endif; ?>
|
||
<?php else : ?>
|
||
<?php if (!empty($this->paginator)) : ?>
|
||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||
<ul class="row">
|
||
<?php foreach($this->paginator as $author) : ?>
|
||
<li class="span3"><a href="/heihe/author/ac/<?php echo $this->ac; ?>/id/<?php echo $author['id']; ?>">
|
||
<?php
|
||
echo $author['username'];
|
||
if ($this->ac=='verified') echo '['.$author['realname'].', 共'.$author['count'].'条]';
|
||
?></a></li>
|
||
<?php endforeach; ?>
|
||
</ul>
|
||
<?php endif; ?>
|
||
|
||
<?php endif; ?>
|
||
</div>
|
||
</div>
|
||
<script type="text/javascript" charset="utf-8">
|
||
$(document).ready(function(){
|
||
$(".colorbox").colorbox({rel:"colorbox",photo:"true",transition:"fade"});
|
||
$(".colorbox").colorbox({photo:"true"});
|
||
});
|
||
$('#Nav-<?php echo $this->tabID; ?>').addClass("active");
|
||
</script>
|