This commit is contained in:
parent
7cccb8e90b
commit
9d35b1e532
|
@ -0,0 +1,76 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->data);
|
||||
$this->headTitle('数据作者浏览');
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->nav[] = array('link'=>"/data/author",'title'=>'数据作者浏览');
|
||||
$this->headLink()->appendStylesheet('/static-sanji/css/data-list.css');
|
||||
?>
|
||||
<hr class="c-f">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<?= $this->render('breadcrumbs.phtml'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<?= $this->partial('data/tools.phtml'); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<hr class="c-f">
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<ul class="nav nav-tabs">
|
||||
<li role="presentation" id="Nav-author-unverified" style="width: auto;"><a href="/data/author">未认证的数据作者<?php if ($this->author && $this->ac=='unverified') echo ':'.$this->author['username']; ?></a></li>
|
||||
<li role="presentation" id="Nav-author-verified" style="width: auto;"><a href="/data/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)) : ?>
|
||||
<?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="/data/<?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)) : ?>
|
||||
<ul class="nav nav-pills">
|
||||
<?php foreach($this->paginator as $author) : ?>
|
||||
<li style="width: auto;"><a href="/data/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>
|
||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -4,22 +4,44 @@ $this->headTitle($this->config->title->data);
|
|||
$this->headTitle('数据作者浏览');
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->nav[] = array('link'=>"/data/author",'title'=>'数据作者浏览');
|
||||
$this->headLink()->appendStylesheet('/static-sanji/css/data-list.css');
|
||||
$this->headLink()->appendStylesheet('/static-sanji-v2/css/dataProduct.css');
|
||||
$this->headLink()->appendStylesheet('/static-sanji-v2/css/header-position.css');
|
||||
?>
|
||||
<hr class="c-f">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<?= $this->render('breadcrumbs.phtml'); ?>
|
||||
<?= $this->render('breadcrumbs.phtml') ?>
|
||||
<!--搜索框-->
|
||||
<div class="searchBox searchBox2">
|
||||
<div class="container">
|
||||
<div class="col-sm-12">
|
||||
<div class="form-group">
|
||||
<input type="text" class="form-control" placeholder="搜素关键词">
|
||||
</div>
|
||||
<i></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
</div>
|
||||
<!--固定搜索框-->
|
||||
<div class="searchBox searchBox1">
|
||||
<div class="container">
|
||||
<div class="col-sm-12">
|
||||
<div class="form-group">
|
||||
<input type="text" class="form-control" placeholder="搜素关键词">
|
||||
</div>
|
||||
<i></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="searchOne">
|
||||
<div class="container">
|
||||
<div class="col-lg-12">
|
||||
<?= $this->partial('data/tools.phtml'); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<hr class="c-f">
|
||||
<div class="intro1">
|
||||
<div class="container">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
|
|
Loading…
Reference in New Issue