#552 添加待处理列表功能
This commit is contained in:
parent
01f2117dbd
commit
5d2010ba1d
|
@ -169,7 +169,7 @@ class Admin_DownController extends Zend_Controller_Action
|
||||||
|
|
||||||
//离线数据申请管理
|
//离线数据申请管理
|
||||||
function offlineappAction()
|
function offlineappAction()
|
||||||
{
|
{
|
||||||
set_time_limit(0);
|
set_time_limit(0);
|
||||||
include_once("Dataorder.php");
|
include_once("Dataorder.php");
|
||||||
$DO = new Dataorder($this->db);
|
$DO = new Dataorder($this->db);
|
||||||
|
@ -182,8 +182,23 @@ class Admin_DownController extends Zend_Controller_Action
|
||||||
$page =(int)$this->_getParam('page');
|
$page =(int)$this->_getParam('page');
|
||||||
$reset =(int)$this->_getParam('reset');
|
$reset =(int)$this->_getParam('reset');
|
||||||
$status =(int)$this->_getParam('status');
|
$status =(int)$this->_getParam('status');
|
||||||
|
$ac = $this->_getParam('ac');
|
||||||
$q = $this->_getParam('q');
|
$q = $this->_getParam('q');
|
||||||
|
|
||||||
|
if($ac == "pending")
|
||||||
|
{
|
||||||
|
$keyword = "";
|
||||||
|
if(!empty($q))
|
||||||
|
{
|
||||||
|
$keyword = $q;
|
||||||
|
}
|
||||||
|
|
||||||
|
$rows = $DO->fetchAllOfflineApp(3,$keyword);
|
||||||
|
|
||||||
|
view::addPaginator($rows,$this,10);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
if (!$page) $page=1;
|
if (!$page) $page=1;
|
||||||
if ($view) {
|
if ($view) {
|
||||||
//查看此次申请的pdf
|
//查看此次申请的pdf
|
||||||
|
@ -216,15 +231,15 @@ class Admin_DownController extends Zend_Controller_Action
|
||||||
|
|
||||||
//如果是wsn数据则生成数据
|
//如果是wsn数据则生成数据
|
||||||
$dataservice = new DataService();
|
$dataservice = new DataService();
|
||||||
$offlineapp = new Offlineapp();
|
$offlineapp = new Offlineapp();
|
||||||
if ($offlineapp->hasWsnData($start))
|
if ($offlineapp->hasWsnData($start))
|
||||||
{
|
{
|
||||||
@$dataservice->makeWsnData(array('uid'=>$row['userid'],'action'=>'prepare'));
|
@$dataservice->makeWsnData(array('uid'=>$row['userid'],'action'=>'prepare'));
|
||||||
}
|
}
|
||||||
|
|
||||||
$sql="select applicationform as pdflink from offlineapp where id=?";
|
$sql="select applicationform as pdflink from offlineapp where id=?";
|
||||||
$row=$this->db->fetchRow($sql,array($start));
|
$row=$this->db->fetchRow($sql,array($start));
|
||||||
$filecontent=file_get_contents($row['pdflink']);
|
$filecontent=file_get_contents($row['pdflink']);
|
||||||
|
|
||||||
//对每条数据的管理员用户发送相应的邮件通知,同一用户的邮件需要合并
|
//对每条数据的管理员用户发送相应的邮件通知,同一用户的邮件需要合并
|
||||||
//需要取出对应数据的标题、uuid,以及对应的作者的email(一条数据可能有多个作者,一次申请可能有多条数据对应同一个作者)
|
//需要取出对应数据的标题、uuid,以及对应的作者的email(一条数据可能有多个作者,一次申请可能有多条数据对应同一个作者)
|
||||||
|
@ -548,7 +563,7 @@ class Admin_DownController extends Zend_Controller_Action
|
||||||
//$this->_redirect('/admin/down/offlineapp/'.$page);
|
//$this->_redirect('/admin/down/offlineapp/'.$page);
|
||||||
}
|
}
|
||||||
|
|
||||||
//如果是wsn数据则生成数据
|
//如果是wsn数据则生成数据
|
||||||
//wsn数据在ftp服务器端进行处理
|
//wsn数据在ftp服务器端进行处理
|
||||||
/*$dataservice = new DataService();
|
/*$dataservice = new DataService();
|
||||||
@$dataservice->makeWsnData();*/
|
@$dataservice->makeWsnData();*/
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
<a href="/admin/down/offlineapp/reset/-1" onclick="return confirm('是否重置该申请?')">重置1年前的所有未收到申请表的记录</a>
|
<a href="/admin/down/offlineapp/reset/-1" onclick="return confirm('是否重置该申请?')">重置1年前的所有未收到申请表的记录</a>
|
||||||
| <a href="/admin/down/offlineapp/status/4">已收到的申请</a>
|
| <a href="/admin/down/offlineapp/status/4">已收到的申请</a>
|
||||||
| <a href="/admin/down/offlineapp/status/-1">已拒绝的申请</a>
|
| <a href="/admin/down/offlineapp/status/-1">已拒绝的申请</a>
|
||||||
| <a href="/admin/down/offlineapp">待处理的申请</a>
|
| <a href="/admin/down/offlineapp/ac/pending">待处理的申请</a>
|
||||||
| <a href="/admin/down/offline">已通过的申请(离线服务记录)</a>
|
| <a href="/admin/down/offline">已通过的申请(离线服务记录)</a>
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<form action="/admin/down/offlineapp" method="get">
|
<form action="/admin/down/offlineapp" method="get">
|
||||||
|
|
|
@ -25,7 +25,11 @@ class Dataorder
|
||||||
$wheresql[] = " (o.ts_approved is null and o.pdflink is not null and d.status=4) ";
|
$wheresql[] = " (o.ts_approved is null and o.pdflink is not null and d.status=4) ";
|
||||||
elseif ($statu==-1)
|
elseif ($statu==-1)
|
||||||
$wheresql[] = " (o.pdflink is not null and o.status=-1)";
|
$wheresql[] = " (o.pdflink is not null and o.status=-1)";
|
||||||
else
|
elseif ($statu == 3)
|
||||||
|
$wheresql[] = " (o.pdflink is not null and o.status=3 ) ";
|
||||||
|
elseif ($statu == 5)
|
||||||
|
$wheresql[] = " (o.status=5) ";
|
||||||
|
else
|
||||||
$wheresql[] = " (o.ts_approved is null and o.pdflink is not null and d.status in (3,4))";
|
$wheresql[] = " (o.ts_approved is null and o.pdflink is not null and d.status in (3,4))";
|
||||||
|
|
||||||
if(!empty($q))
|
if(!empty($q))
|
||||||
|
|
Loading…
Reference in New Issue