#298 修改了离线数据服务记录编辑后的跳转连接

This commit is contained in:
Li Jianxuan 2012-01-09 09:10:07 +00:00
parent 3a9d129642
commit 00928d1e77
2 changed files with 29 additions and 23 deletions

View File

@ -247,7 +247,11 @@ class Admin_DownController extends Zend_Controller_Action
$param[]=$edit; $param[]=$edit;
$this->db->query($sql,$param); $this->db->query($sql,$param);
$this->messenger->addMessage('提示信息:您已经编辑添加该记录。'); $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 { } else {
$form->populate($formdata); $form->populate($formdata);
} }
@ -382,6 +386,8 @@ class Admin_DownController extends Zend_Controller_Action
$paginator->setView($this->view); $paginator->setView($this->view);
Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination.phtml'); Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination.phtml');
$this->view->paginator=$paginator; $this->view->paginator=$paginator;
$this->view->page = $this->_getParam('page');
} }
//在线数据下载情况仅针对onlineapp表自2011-9-8开始记录。 //在线数据下载情况仅针对onlineapp表自2011-9-8开始记录。
function onlineAction() function onlineAction()

View File

@ -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><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><?= date('Y-m-d',strtotime($item['ts_created'])); ?></td>
<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/offline/delete/<?= $item['id']; ?>" title="该操作将删除此记录并且删除与此记录有关的申请记录!请谨慎操作" onclick="return confirm('请仅删除测试用途的离线服务记录!')">删除</a> |
<a href="/admin/down/offlineapp/view/<?= $item['id']; ?>">PDF</a> | <a href="/admin/down/offlineapp/view/<?= $item['id']; ?>">PDF</a> |
<a href="/admin/down/offline/show/<?= $item['id']; ?>">详细</a> | <a href="/admin/down/offline/show/<?= $item['id']; ?>">详细</a> |