95 lines
3.9 KiB
PHTML
95 lines
3.9 KiB
PHTML
<?php
|
|
$this->headTitle($this->config->title->site);
|
|
$this->headTitle('后台管理');
|
|
$this->headTitle()->setSeparator(' - ');
|
|
$this->breadcrumb('<a href="/">首页</a>');
|
|
$this->headLink()->appendStylesheet('/css/admin.css');
|
|
$this->headScript()->appendFile('/js/modal.js');
|
|
$this->breadcrumb('<a href="/admin">后台首页</a>');
|
|
$this->headLink()->appendStylesheet('/js/lib/colorbox/colorbox.css');
|
|
$this->headScript()->appendFile('/js/lib/colorbox/jquery.colorbox-min.js');
|
|
$this->breadcrumb('元数据评审');
|
|
$this->breadcrumb()->setSeparator(' > ');
|
|
?>
|
|
<div class="row">
|
|
<div class="hidden-sm hidden-xs col-md-2">
|
|
<?= $this->partial('review/left.phtml'); ?>
|
|
</div>
|
|
<div class="col-md-10 col-sm-12">
|
|
<?php if ($this->msg or $this->messages) :?>
|
|
<div id="message" class="alert alert-info">
|
|
<?php if ($this->msg) : ?>
|
|
<p><?php echo $this->msg; ?></p>
|
|
<?php endif; if ($this->messages): foreach($this->messages as $msg): ?>
|
|
<p><?php echo $msg; ?></p>
|
|
<?php endforeach;endif; ?>
|
|
</div>
|
|
<?php endif; ?>
|
|
<div class="input-group form-group">
|
|
<form action="" method="get" class="search_form input-group">
|
|
<input type="text" name="keyword" class="q form-control" value="<?php echo $this->keyword; ?>" placeholder="搜索关键字" />
|
|
<input type="hidden" name="search" value='1' />
|
|
<span class="input-group-btn"><button type="submit" class="btn btn-default">搜索</button></span>
|
|
</form>
|
|
</div>
|
|
<table class="stylized table table-bordered table-striped table-hover">
|
|
<thead><tr>
|
|
<th width='500'>元数据标题</th>
|
|
<th width='160'>责任编辑</th>
|
|
<th width='140'>接收时间</th>
|
|
<th width='100'>操作</th>
|
|
</tr></thead>
|
|
<?php if (count($this->paginator)): ?>
|
|
<tbody id="list">
|
|
<?php foreach ($this->paginator as $item): ?>
|
|
<tr>
|
|
<td><a href="/data/<?php echo $item['uuid'];?>"><?= $item['title']?></a></td>
|
|
<td><?php echo $item['realname'].'['.$item['username'].']'; ?></td>
|
|
<td><?php echo date("Y-m-d H:i",strtotime($item['ts_accepted']));?></td>
|
|
<td>
|
|
<a data-toggle="modal" data-target="#myModal" onclick="changeAdmin(<?php echo $item['id'];?>)" href="#">分配编辑</a>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
<?php endif; ?>
|
|
</table>
|
|
<div class="pagenavi"><?= $this->paginator; ?></div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
|
|
<div class="modal-dialog">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
|
|
<h4 class="modal-title" id="myModalLabel">分配编辑</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
function changeAdmin(id){
|
|
$.ajax({
|
|
'type':"GET",
|
|
'url':'/admin/review/changeadmin',
|
|
'data':'i=1&id='+id,
|
|
'timeout': 30000,
|
|
success: function(data){
|
|
$(".modal-body").empty();
|
|
$(".modal-body").append(data);
|
|
},
|
|
'error': function(){
|
|
alert('处理中出现错误,请刷新页面后重试');
|
|
return false;
|
|
}
|
|
});
|
|
}
|
|
</script>
|