添加后台邮件模板删除功能。

This commit is contained in:
Li Heng 2014-03-21 06:24:33 +00:00
parent a14d2319d9
commit fa9e604755
1 changed files with 81 additions and 70 deletions

View File

@ -1,4 +1,6 @@
<?php <?php
use Helpers\View as view;
class Admin_SysController extends Zend_Controller_Action class Admin_SysController extends Zend_Controller_Action
{ {
function preDispatch() function preDispatch()
@ -86,6 +88,15 @@ class Admin_SysController extends Zend_Controller_Action
}//模板编辑 }//模板编辑
else if($ac=='del'&& !empty($id))
{
$sql="delete from emailtext where id='$id' ";
$rs = $this->db->query($sql);
view::Post($this,'模板已删除',-1);
return;
}
else if($ac=='test'&& !empty($id)) else if($ac=='test'&& !empty($id))
{ {
if(!empty($submit)) if(!empty($submit))