#552 添加待处理列表功能

This commit is contained in:
Li Jianxuan 2013-10-08 03:35:49 +00:00
parent 01f2117dbd
commit 5d2010ba1d
3 changed files with 28 additions and 9 deletions

View File

@ -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

View File

@ -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">

View File

@ -25,6 +25,10 @@ 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)";
elseif ($statu == 3)
$wheresql[] = " (o.pdflink is not null and o.status=3 ) ";
elseif ($statu == 5)
$wheresql[] = " (o.status=5) ";
else 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))";