#298 修改了离线数据服务记录编辑后的跳转连接
This commit is contained in:
parent
3a9d129642
commit
00928d1e77
|
@ -247,7 +247,11 @@ class Admin_DownController extends Zend_Controller_Action
|
|||
$param[]=$edit;
|
||||
$this->db->query($sql,$param);
|
||||
$this->messenger->addMessage('提示信息:您已经编辑添加该记录。');
|
||||
$this->_redirect('/admin/down/offline');
|
||||
$page = $this->_getParam('page');
|
||||
if(!empty($page))
|
||||
$this->_redirect('/admin/down/offline/page/'.$page);
|
||||
else
|
||||
$this->_redirect('/admin/down/offline/');
|
||||
} else {
|
||||
$form->populate($formdata);
|
||||
}
|
||||
|
@ -382,6 +386,8 @@ class Admin_DownController extends Zend_Controller_Action
|
|||
$paginator->setView($this->view);
|
||||
Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination.phtml');
|
||||
$this->view->paginator=$paginator;
|
||||
|
||||
$this->view->page = $this->_getParam('page');
|
||||
}
|
||||
//在线数据下载情况,仅针对onlineapp表,自2011-9-8开始记录。
|
||||
function onlineAction()
|
||||
|
|
|
@ -49,7 +49,7 @@
|
|||
<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>
|
||||
<a href="/admin/down/offline/edit/<?= $item['id']; ?>">编辑</a> |
|
||||
<a href="/admin/down/offline/edit/<?= $item['id']; ?><?php if(empty($this->page)) "" ; else echo "/page/".$this->page; ?>">编辑</a> |
|
||||
<a href="/admin/down/offline/delete/<?= $item['id']; ?>" title="该操作将删除此记录并且删除与此记录有关的申请记录!请谨慎操作" onclick="return confirm('请仅删除测试用途的离线服务记录!')">删除</a> |
|
||||
<a href="/admin/down/offlineapp/view/<?= $item['id']; ?>">PDF</a> |
|
||||
<a href="/admin/down/offline/show/<?= $item['id']; ?>">详细</a> |
|
||||
|
|
Loading…
Reference in New Issue