2014-05-16 14:48:02 +00:00
|
|
|
<?php
|
2014-07-23 08:38:32 +00:00
|
|
|
$this->headTitle($this->config->title->site);
|
|
|
|
$this->headTitle('后台管理');
|
|
|
|
$this->headTitle()->setSeparator(' - ');
|
|
|
|
$this->breadcrumb('<a href="/">首页</a>');
|
|
|
|
$this->headLink()->appendStylesheet('/css/admin.css');
|
|
|
|
$this->breadcrumb('<a href="/admin/data">数据管理</a>');
|
|
|
|
$this->breadcrumb('文献管理');
|
|
|
|
$this->breadcrumb()->setSeparator(' > ');
|
|
|
|
$this->theme->AppendPlus($this,'colorbox');
|
|
|
|
$this->theme->AppendPlus($this,'admin_plugin');
|
|
|
|
$this->theme->AppendModel($this,'admin-data-ref');
|
2014-05-16 14:48:02 +00:00
|
|
|
?>
|
|
|
|
<style>
|
2014-07-23 08:38:32 +00:00
|
|
|
table thead tr th { background: #EBF2F6; }
|
2014-05-16 14:48:02 +00:00
|
|
|
</style>
|
2014-07-23 08:38:32 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="hidden-sm hidden-xs col-md-2">
|
2014-05-16 14:48:02 +00:00
|
|
|
<?= $this->partial('data/left.phtml'); ?>
|
|
|
|
</div>
|
2014-07-23 08:38:32 +00:00
|
|
|
<div class="col-md-10 col-sm-12">
|
2014-05-16 14:48:02 +00:00
|
|
|
<div>
|
|
|
|
<?= $this->partial('data/ref-nav.phtml',array('ac'=>$this->ac,'uuid'=>$this->uuid)); ?>
|
|
|
|
</div>
|
|
|
|
<div>
|
2014-07-23 08:38:32 +00:00
|
|
|
<h3><?php echo $this->md['title']; ?> <a href="/data/<?php echo $this->uuid; ?>">查看</a></h3>
|
|
|
|
<div class="input-append row">
|
|
|
|
<form id="datasearch" class="navbar-form" action="">
|
|
|
|
<input class="form-control" type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" />
|
|
|
|
<input type="hidden" name="order" value="<?php if(!empty($this->search_order)) echo $this->search_order; ?>" />
|
|
|
|
<input type="hidden" name="sort" value="<?php if(!empty($this->search_sort)) echo $this->search_sort; ?>" />
|
|
|
|
<button type="submit" class="btn btn-default" id="search_btn">搜索文献(数据外搜索,可以添加到数据)</button>
|
|
|
|
</form>
|
2014-05-16 14:48:02 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<?php if(!empty($this->error)) { ?>
|
2014-07-23 08:38:32 +00:00
|
|
|
<?= $this->error ?>
|
2014-05-16 14:48:02 +00:00
|
|
|
<?php } ?>
|
|
|
|
<?php if(!empty($this->msg)) { ?>
|
2014-07-23 08:38:32 +00:00
|
|
|
<?= $this->msg ?>
|
2014-05-16 14:48:02 +00:00
|
|
|
<?php } else{ ?>
|
2014-07-23 08:38:32 +00:00
|
|
|
|
2014-05-16 14:48:02 +00:00
|
|
|
<?php if($this->ac == 'westdc'){ ?>
|
2014-07-23 08:38:32 +00:00
|
|
|
<button type="button" class="btn btn-primary" onclick="$('#mdref')[0].reset();mdref.edit('','','e31f5ea7-a4af-4ae3-9ac1-1a84132c4338',0,0)">添加数据中心文献</button>
|
2014-05-16 14:48:02 +00:00
|
|
|
<?php } ?>
|
2014-07-23 08:38:32 +00:00
|
|
|
|
2014-05-16 14:48:02 +00:00
|
|
|
<?php if(!empty($this->years)) { ?>
|
2014-07-23 08:38:32 +00:00
|
|
|
<?php foreach($this->years as $k=>$v){ ?>
|
|
|
|
<a class="btn btn-info" href="?field[year]=<?= $v['year'] ?>"><?= empty($v['year']) ? "未知":$v['year'] ?>(<?= $v['num'] ?>)</a>
|
2014-05-16 14:48:02 +00:00
|
|
|
<?php } ?>
|
2014-07-23 08:38:32 +00:00
|
|
|
<?php } ?>
|
|
|
|
|
2014-05-16 14:48:02 +00:00
|
|
|
<div id="datalist">
|
|
|
|
<?php if (count($this->paginator)): ?>
|
2014-07-23 08:38:32 +00:00
|
|
|
<table class="table table-bordered table-striped">
|
|
|
|
<thead>
|
2014-05-16 14:48:02 +00:00
|
|
|
<tr>
|
2014-07-23 08:38:32 +00:00
|
|
|
<th>
|
|
|
|
标题
|
|
|
|
<a href="?order=title&sort=ASC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-up"></i></a>
|
|
|
|
<a href="?order=title&sort=DESC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-down"></i></a>
|
|
|
|
年份
|
|
|
|
<a href="?order=year&sort=ASC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-up"></i></a>
|
|
|
|
<a href="?order=year&sort=DESC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-down"></i></a>
|
2014-05-16 14:48:02 +00:00
|
|
|
</th>
|
2014-07-23 08:38:32 +00:00
|
|
|
<th>
|
|
|
|
创建
|
|
|
|
<a href="?order=ts_created&sort=ASC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-up"></i></a>
|
|
|
|
<a href="?order=ts_created&sort=DESC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-down"></i></a>
|
2014-05-16 14:48:02 +00:00
|
|
|
</th>
|
2014-07-23 08:38:32 +00:00
|
|
|
<th>类型</th>
|
|
|
|
<th>序</th>
|
2014-05-16 14:48:02 +00:00
|
|
|
<th width="40">操作</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2014-07-23 08:38:32 +00:00
|
|
|
<?php
|
|
|
|
if($this->page > 1)
|
|
|
|
{
|
|
|
|
$autoindex = ($this->page - 1) * $this->pagelimit;
|
|
|
|
}else{
|
|
|
|
$autoindex=0;
|
|
|
|
}
|
|
|
|
foreach ($this->paginator as $item):
|
|
|
|
$autoindex++;?>
|
|
|
|
<tr id="DataLine_<?= $item['id']?>">
|
|
|
|
<td>
|
|
|
|
[<?= $autoindex ?>]
|
|
|
|
<?php if ($item['ris']) :
|
|
|
|
echo $item['reference'];
|
|
|
|
else :
|
|
|
|
?>
|
|
|
|
{<?php $authors = $this->reference->getAuthorByReference($item['id'],true); echo count($authors) ? join(",",$authors):'<font color="#CC0000">未知作者</font>'; ?>}
|
|
|
|
{<?= empty($item['title']) ? '<font color="#CC0000">未知标题</font>':$item['title'] ?>}
|
|
|
|
{<?= empty($item['publisher']) ? '<font color="#CC0000">未知期刊</font>':$item['publisher'] ?>}
|
|
|
|
{<?= empty($item['year']) ? '<font color="#CC0000">未知年份</font>':$item['year'] ?>}
|
|
|
|
<?php endif; ?>
|
|
|
|
<a href="/admin/data/ref/ac/singleris/id/<?= $item['id'] ?>">RIS编辑</a>
|
|
|
|
<a href="/admin/data/ref/ac/data/id/<?= $item['id'] ?>">数据</a>
|
|
|
|
</td>
|
|
|
|
<td><?= date("Y-m-d",strtotime($item['ts_created'])) ?></td>
|
|
|
|
<td><?= $this->referenceType[$item['reftype']] ?></td>
|
|
|
|
<td><?= $item['place'] ?></td>
|
|
|
|
<td>
|
|
|
|
<a href="javascript:void(0);" onclick="$('#mdref')[0].reset();mdref.edit(<?= $item['mrid']?>,<?= $item['id']?>,'<?= $this->uuid; ?>',<?= $item['reftype']?>,<?= $item['place']?>)">编辑</a>
|
|
|
|
<a href="/admin/data/ref/ac/deletemdref/mrid/<?= $item['mrid']?>">移除</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2014-05-16 14:48:02 +00:00
|
|
|
<?php endif; ?>
|
|
|
|
<div class="pagenavi"><?= $this->paginator; ?></div>
|
|
|
|
</div>
|
|
|
|
<?php } ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- //页面内容 -->
|
|
|
|
<?= $this->partial('data/ref-mdref-form.phtml',array('referenceType'=>$this->referenceType)); ?>
|