2013-04-22 10:18:48 +00:00
|
|
|
<?php
|
|
|
|
$this->headTitle($this->config->title->site);
|
|
|
|
$this->headTitle($this->config->title->author);
|
|
|
|
$this->headTitle()->setSeparator(' - ');
|
|
|
|
$this->breadcrumb('<a href="/">首页</a>');
|
|
|
|
$this->breadcrumb('<a href="/admin/data">数据管理</a>');
|
|
|
|
$this->breadcrumb('DOI');
|
|
|
|
$this->breadcrumb()->setSeparator(' > ');
|
|
|
|
$this->theme->AppendPlus($this,'colorbox');
|
|
|
|
$this->theme->AppendPlus($this,'admin_plugin');
|
|
|
|
?>
|
|
|
|
<style>
|
|
|
|
table thead tr th {background:#EBF2F6;}
|
|
|
|
</style>
|
|
|
|
<div class="row-fluid">
|
|
|
|
<div class="span2">
|
|
|
|
<?= $this->partial('data/left.phtml'); ?>
|
|
|
|
</div>
|
|
|
|
<div class="span10">
|
|
|
|
<div>
|
|
|
|
<ul class="nav nav-tabs">
|
|
|
|
<li class="active"><a href="/admin/data/doi">浏览所有</a></li>
|
|
|
|
<li><a href="/admin/data/doi/ac/add">添加新DOI</a></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<div class="input-append">
|
|
|
|
<form id="datasearch" class="search_form" action="">
|
|
|
|
<input type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" />
|
|
|
|
<button type="submit" class="btn" id="search_btn">搜索</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<?php if(!empty($this->error)) { ?>
|
|
|
|
<?= $this->error ?>
|
|
|
|
<?php } ?>
|
|
|
|
<?php if(!empty($this->msg)) { ?>
|
|
|
|
<?= $this->msg ?>
|
|
|
|
<?php } else{ ?>
|
|
|
|
<div id="datalist">
|
|
|
|
<?php if (count($this->paginator)): ?>
|
|
|
|
<table class="table table-bordered table-striped">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>UUID</th>
|
|
|
|
<th>元数据</th>
|
|
|
|
<th>DOI</th>
|
|
|
|
<th width="70">操作</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<?php $autoindex=0;
|
|
|
|
foreach ($this->paginator as $item):
|
|
|
|
$autoindex++;?>
|
|
|
|
<tr id="DataLine_<?= $item['id']?>">
|
|
|
|
<td><?= $item['uuid'] ?></td>
|
|
|
|
<td><?= $item['title'] ?></td>
|
|
|
|
<td><?= $item['doi'] ?></td>
|
|
|
|
<td>
|
|
|
|
<a href="/admin/data/fund/ac/edit/id/<?= $item['id']?>">编辑</a>
|
|
|
|
<a href="javascript:void(0);" onclick="onedel(<?= $item['id']?>)" id="delbtn_<?= $item['id']?>">删除</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<?php endif; ?>
|
|
|
|
<div class="pagenavi"><?= $this->paginator; ?></div>
|
|
|
|
</div>
|
|
|
|
<?php } ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- //页面内容 -->
|
|
|
|
<script>
|
|
|
|
var info = {
|
|
|
|
btn_prefix : "delbtn_",
|
|
|
|
item_prefix : "DataLine_",
|
|
|
|
url : "/admin/data/doi/ac/del"
|
|
|
|
}
|
|
|
|
</script>
|