2011-09-29 02:24:47 +00:00
|
|
|
<?php
|
|
|
|
$this->headTitle($this->config->title->site);
|
|
|
|
$this->headTitle('后台管理');
|
|
|
|
$this->headTitle()->setSeparator(' - ');
|
|
|
|
$this->headLink()->appendStylesheet('/css/admin.css');
|
|
|
|
$this->breadcrumb('<a href="/">首页</a>');
|
|
|
|
$this->breadcrumb('<a href="/admin">后台首页</a>');
|
|
|
|
$this->breadcrumb('<a href="/admin/down">申请管理</a>');
|
2012-09-28 08:52:44 +00:00
|
|
|
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
|
|
|
|
$this->headScript()->appendFile('/js/jquery.colorbox-min.js');
|
|
|
|
$this->headLink()->appendStylesheet('/css/author.css');
|
|
|
|
$this->headLink()->appendStylesheet('/css/colorbox.css');
|
2011-09-29 02:24:47 +00:00
|
|
|
$this->breadcrumb('离线数据申请管理</a>');
|
|
|
|
$this->breadcrumb()->setSeparator(' > ');
|
|
|
|
?>
|
|
|
|
<div id="leftPanel">
|
|
|
|
<?= $this->partial('down/left.phtml'); ?>
|
|
|
|
</div>
|
|
|
|
<div id="rightPanel">
|
|
|
|
<?php if ($this->msg or $this->messages) :?>
|
|
|
|
<div id="message">
|
|
|
|
<?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="right_title">离线数据服务记录</div>
|
2013-11-05 07:57:17 +00:00
|
|
|
<a href="/admin/down/offline/add/1">添加新的离线服务记录</a> | <a href="/admin/down/offline/down/1">下载所有离线服务记录</a> | <a href="/admin/down/offline/update/1" onclick="return confirm('该操作需要较长时间,请不要中途刷新页面,是否确定继续?')">自动匹配离线下载用户与网站用户</a> | <a href="/admin/down/offline/emaillist/1">下载服务用户邮箱列表</a>
|
2012-12-08 14:41:10 +00:00
|
|
|
| <a href="/admin/down/offline/monthreport/1">下载上月服务记录(科技部上报)</a>
|
2013-11-05 07:57:17 +00:00
|
|
|
|
|
|
|
<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; ?>" />
|
|
|
|
<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" id="search_btn">搜索</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2011-09-29 02:24:47 +00:00
|
|
|
<?php if (count($this->paginator)): ?>
|
|
|
|
<table>
|
|
|
|
<thead><tr>
|
|
|
|
<th width='70'>姓名</th>
|
|
|
|
<th width='150'>单位</th>
|
|
|
|
<th width='150'>地址</th>
|
|
|
|
<th width='50'>邮编</th>
|
|
|
|
<th width='300'>用途</th>
|
|
|
|
<th width='300'>数据清单</th>
|
|
|
|
<th width='120'>申请时间</th>
|
|
|
|
<th width='100'>操作</th>
|
|
|
|
</tr></thead>
|
|
|
|
<tbody>
|
|
|
|
<?php $autoindex=0;?>
|
|
|
|
<?php foreach ($this->paginator as $item): ?>
|
|
|
|
<?php $autoindex++;?>
|
2011-10-12 14:53:03 +00:00
|
|
|
<tr class="<?php if($autoindex%2 == 0) echo 'even'; else echo 'odd'; ?>">
|
2011-09-29 02:24:47 +00:00
|
|
|
<td><a href="/admin/user/show/id/<?php echo $item['userid'];?>"><img src="/images/user.gif" /></a> <a href="/admin/down/user/show/<?php echo $item['userid'];?>"><?= $item['username']?></a> </td>
|
|
|
|
<td><?= $item['unit']; ?></td>
|
|
|
|
<td><?= $item['address']; ?></td>
|
|
|
|
<td><?= $item['postcode']; ?></td>
|
2012-06-11 11:48:54 +00:00
|
|
|
<td><textarea readonly="readonly" style="width:300px;height:100px;border:none;font-size:12px;<?php if($autoindex%2 == 0) echo 'background:#CCCCCC;'; else echo 'background:#FFF;'; ?>"><?= $item['project'].'['.$item['project_title'].' | '.$item['project_type'].' | '.$item['project_id'].']'; ?></textarea></td>
|
2011-09-29 02:24:47 +00:00
|
|
|
<td><textarea readonly="readonly" style="width:300px;height:100px;border:none;font-size:12px;<?php if($autoindex%2 == 0) echo 'background:#CCCCCC;'; else echo 'background:#FFF;'; ?>"><?= $item['datalist']; ?></textarea></td>
|
|
|
|
<td><?= date('Y-m-d',strtotime($item['ts_created'])); ?></td>
|
|
|
|
<td>
|
2012-01-09 09:10:07 +00:00
|
|
|
<a href="/admin/down/offline/edit/<?= $item['id']; ?><?php if(empty($this->page)) "" ; else echo "/page/".$this->page; ?>">编辑</a> |
|
2011-09-29 02:24:47 +00:00
|
|
|
<a href="/admin/down/offline/delete/<?= $item['id']; ?>" title="该操作将删除此记录并且删除与此记录有关的申请记录!请谨慎操作" onclick="return confirm('请仅删除测试用途的离线服务记录!')">删除</a> |
|
|
|
|
<a href="/admin/down/offlineapp/view/<?= $item['id']; ?>">PDF</a> |
|
2012-01-09 09:10:07 +00:00
|
|
|
<a href="/admin/down/offline/show/<?= $item['id']; ?>">详细</a> |
|
2012-09-28 08:52:44 +00:00
|
|
|
<a href="javascript:action('finish',<?= $item['id']; ?>);" onclick="return confirm('确定确定重新通过该申请?')">重新通过</a>
|
2011-09-29 02:24:47 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
</tbody></table>
|
|
|
|
<?php endif; ?>
|
2011-10-12 14:53:03 +00:00
|
|
|
<div class="pagenavi"><?= $this->paginator; ?></div>
|
2012-09-28 08:52:44 +00:00
|
|
|
</div>
|
|
|
|
<script>
|
|
|
|
function action(name,id){
|
|
|
|
var url;
|
|
|
|
if(name == "start")
|
|
|
|
{url = '/admin/down/offlineapp/start/'+id;}
|
|
|
|
if(name == "finish")
|
|
|
|
{url = '/admin/down/offlineapp/finish/'+id;}
|
|
|
|
if(name == "deleted")
|
|
|
|
{url = '/admin/down/offlineapp/cancel/'+id;}
|
|
|
|
if(name == "deny")
|
|
|
|
{url = '/admin/down/offlineapp/deny/'+id;}
|
|
|
|
if(name == "reset")
|
|
|
|
{url = '/admin/down/offlineapp/reset/'+id;}
|
|
|
|
$.ajax({
|
|
|
|
'type':"POST",
|
|
|
|
'url':url,
|
|
|
|
'data':'',
|
|
|
|
'success':OnDataLoad,
|
|
|
|
'timeout': 30000,
|
|
|
|
'error': AjaxError
|
|
|
|
});
|
|
|
|
}
|
|
|
|
function OnDataLoad(data){
|
|
|
|
if (typeof(data)=='object')
|
|
|
|
{
|
|
|
|
if(typeof(data.error)!='undefined')
|
|
|
|
{Alert(data.error);return false;}
|
|
|
|
if(typeof(data.msg)!='undefined')
|
|
|
|
{Alert(data.msg);}
|
|
|
|
if(typeof(data.started)!='undefined')
|
|
|
|
{$('#start_'+data.started).remove();}
|
|
|
|
if(typeof(data.finish) != 'undefined')
|
|
|
|
{$('#list_'+data.finish).fadeOut();}
|
|
|
|
}
|
|
|
|
else{
|
|
|
|
Alert('出现错误,请稍后再试');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function AjaxError(){
|
|
|
|
$.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>
|