2012-06-11 07:56:02 +00:00
|
|
|
|
<?php
|
|
|
|
|
$this->headTitle($this->config->title->site);
|
|
|
|
|
$this->headTitle($this->config->title->author);
|
|
|
|
|
$this->headTitle()->setSeparator(' - ');
|
|
|
|
|
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
|
|
|
|
|
$this->headLink()->appendStylesheet('/css/admin.css');
|
|
|
|
|
$this->headScript()->appendFile('/js/jquery.colorbox-min.js');
|
|
|
|
|
$this->headLink()->appendStylesheet('/css/author.css');
|
|
|
|
|
$this->headLink()->appendStylesheet('/css/colorbox.css');
|
|
|
|
|
$this->breadcrumb('<a href="/">首页</a>');
|
|
|
|
|
$this->breadcrumb('<a href="/admin/data">数据管理</a>');
|
|
|
|
|
$this->breadcrumb('数据作者管理');
|
|
|
|
|
$this->breadcrumb()->setSeparator(' > ');
|
|
|
|
|
?>
|
|
|
|
|
<!-- 左侧导航 -->
|
|
|
|
|
<div id="leftPanel">
|
|
|
|
|
<?= $this->partial('data/left.phtml'); ?>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- //左侧导航 -->
|
|
|
|
|
|
|
|
|
|
<!-- 页面内容 -->
|
|
|
|
|
<div id="rightPanel">
|
|
|
|
|
<div id="tabs-controller">
|
|
|
|
|
<ul>
|
|
|
|
|
<li class="box-shadow"><a class="text-shadow" href="/admin/data/author">作者管理</a></li>
|
|
|
|
|
<li class="box-shadow active"><a class="text-shadow" href="/admin/data/author/ac/list">查看所有数据作者</a></li>
|
2012-06-12 03:06:28 +00:00
|
|
|
|
<li class="box-shadow"><a class="text-shadow" href="/admin/data/author/ac/datas">所有数据</a></li>
|
2012-06-11 07:56:02 +00:00
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<p>请输入元数据标题关键字进行搜索</p>
|
|
|
|
|
<form id="datasearch" class="search_form" action="/admin/data/author/ac/list">
|
|
|
|
|
<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 id="datalist">
|
|
|
|
|
<?php
|
|
|
|
|
if (count($this->paginator)):
|
|
|
|
|
if ($this->mdtitle) echo "<h2>元数据:".$this->mdtitle."</h2>";
|
|
|
|
|
echo "<ul>";
|
|
|
|
|
$autoindex=0;
|
|
|
|
|
foreach ($this->paginator as $item):
|
|
|
|
|
$autoindex++;?>
|
|
|
|
|
<li id="list_<?php echo $item['id'];?>">
|
|
|
|
|
<p><a href="/admin/user/show/id/<?= $item['id'] ?>" target="_blank"><?php echo $item['realname'];?></a> </p>
|
|
|
|
|
<p>
|
|
|
|
|
<?php if ($item['d']) : ?>
|
|
|
|
|
数据个数 :<span id="sumAuthor_<?php echo $item['id'];?>"><?php echo $item['d']; ?></span> | <a href="javascript:;" onclick="view(<?= $item['id']?>)">查看数据</a> | Email: <span><?= $item['email'];?></span>
|
|
|
|
|
<?php endif; ?>
|
|
|
|
|
</p>
|
|
|
|
|
</li>
|
|
|
|
|
<?php endforeach;
|
|
|
|
|
echo "</ul>";
|
|
|
|
|
endif; ?>
|
|
|
|
|
<div class="pagenavi"><?= $this->paginator; ?></div>
|
|
|
|
|
</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>
|