2012-06-11 07:56:02 +00:00
|
|
|
|
<?php
|
2014-09-13 02:18:32 +00:00
|
|
|
|
$this->headTitle($this->config->title->site);
|
|
|
|
|
$this->headTitle($this->config->title->author);
|
|
|
|
|
$this->headTitle()->setSeparator(' - ');
|
|
|
|
|
$this->headLink()->appendStylesheet('/css/admin.css');
|
|
|
|
|
$this->headLink()->appendStylesheet('/css/author.css');
|
|
|
|
|
$this->headLink()->appendStylesheet('/js/lib/colorbox/colorbox.css');
|
|
|
|
|
$this->headScript()->appendFile('/js/lib/colorbox/jquery.colorbox-min.js');
|
|
|
|
|
$this->breadcrumb('<a href="/">首页</a>');
|
|
|
|
|
$this->breadcrumb('<a href="/admin/data">数据管理</a>');
|
|
|
|
|
$this->breadcrumb('数据作者管理');
|
|
|
|
|
$this->breadcrumb()->setSeparator(' > ');
|
2012-06-11 07:56:02 +00:00
|
|
|
|
?>
|
2014-09-13 02:18:32 +00:00
|
|
|
|
<div class="row">
|
|
|
|
|
<!-- 左侧导航 -->
|
|
|
|
|
<div class="hidden-sm hidden-xs col-md-2">
|
|
|
|
|
<?= $this->partial('data/left.phtml'); ?>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- //左侧导航 -->
|
|
|
|
|
<!-- 页面内容 -->
|
|
|
|
|
<div class="col-md-10 col-sm-12">
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<a class="btn btn-primary" href="/admin/data/author">作者管理</a>
|
|
|
|
|
<a class="btn btn-primary" href="/admin/data/author/ac/list">查看所有数据作者</a>
|
|
|
|
|
<a class="btn btn-primary" href="/admin/data/author/ac/datas">所有数据</a>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="input-group form-group">
|
2014-11-04 02:32:01 +00:00
|
|
|
|
<form id="datasearch" class="search_form input-group" action="/admin/data/author/ac/list">
|
2014-09-13 02:18:32 +00:00
|
|
|
|
<input type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" class="form-control" placeholder="搜索关键字" />
|
|
|
|
|
<span class="input-group-btn"><button type="submit" class="btn btn-default" id="search_btn">搜索</button></span>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="datalistZ">
|
|
|
|
|
<?php
|
|
|
|
|
if (count($this->paginator)):
|
|
|
|
|
if ($this->mdtitle) echo "<h2>元数据:".$this->mdtitle."</h2>";
|
|
|
|
|
echo "<ul class=list-unstyled>";
|
|
|
|
|
$autoindex=0;
|
|
|
|
|
foreach ($this->paginator as $item):
|
|
|
|
|
$autoindex++;?>
|
|
|
|
|
<li id="list_<?php echo $item['id'];?>" class="well well-sm">
|
|
|
|
|
<h4><a href="/admin/user/show/id/<?= $item['id'] ?>" target="_blank"><span class="glyphicon glyphicon-user"></span> <?php echo $item['realname'];?></a> </h4>
|
|
|
|
|
<h5>
|
|
|
|
|
<?php if ($item['d']) : ?>
|
|
|
|
|
数据个数 :<span id="sumAuthor_<?php echo $item['id'];?>"><?php echo $item['d']; ?></span>
|
|
|
|
|
<a href="javascript:;" onclick="view(<?= $item['id']?>)">查看数据</a>
|
|
|
|
|
<!-- <a data-trigger="modal" data-title="数据" href="view(<?= $item['id']?>)" onclick="view(<?= $item['id']?>)" >查看数据2</a> -->
|
|
|
|
|
<span><a href="mailto:<?= $item['email']; ?>"><span class="glyphicon glyphicon-envelope"></span> : <?= $item['email']; ?></a></span>
|
|
|
|
|
<?php endif; ?>
|
|
|
|
|
</h5>
|
|
|
|
|
</li>
|
|
|
|
|
<?php endforeach;
|
|
|
|
|
echo "</ul>";
|
|
|
|
|
endif; ?>
|
|
|
|
|
<div class="pagenavi"><?= $this->paginator; ?></div>
|
|
|
|
|
</div>
|
2012-06-11 07:56:02 +00:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- //页面内容 -->
|
|
|
|
|
<script>
|
|
|
|
|
function view(id){
|
|
|
|
|
$.ajax({
|
|
|
|
|
'type':"POST",
|
|
|
|
|
'url':'/admin/data/author',
|
|
|
|
|
'data':'ac=userdatas&id='+id,
|
|
|
|
|
'success':function(data){
|
|
|
|
|
if (typeof(data)=='object')
|
|
|
|
|
{
|
|
|
|
|
if(typeof(data.error)!='undefined')
|
|
|
|
|
{Alert(data.error);return false;}
|
|
|
|
|
if(data.datas != null)
|
|
|
|
|
{
|
|
|
|
|
html = "";
|
|
|
|
|
for(v in data.datas)
|
|
|
|
|
{
|
|
|
|
|
html += '<li><a href="/data/'+data.datas[v].uuid+'" target="_blank">'+data.datas[v].title+'</a></li>';
|
|
|
|
|
}
|
|
|
|
|
$.colorbox({'innerWidth':'50%','html':html});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
Alert('出现错误,请稍后再试');
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
'timeout': 30000,
|
|
|
|
|
'error': function(){
|
|
|
|
|
$.colorbox({'innerWidth':'50%','html':'<img src="/images/alert_big_error.png" /><h4>处理中出现错误,请刷新页面后重试</h4>'});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
$(".iframe").colorbox({iframe:true, width:"80%", height:"80%"});
|
|
|
|
|
$(".inline").colorbox({inline:true, width:"50%"});
|
|
|
|
|
function Alert(html){
|
|
|
|
|
$.colorbox({'innerWidth':'50%','html':'<h4 style="font-size:16px;font-weight:bold;">'+html+'</h4>'});
|
|
|
|
|
}
|
|
|
|
|
</script>
|