添加后台邮件模板删除功能。
This commit is contained in:
parent
a14d2319d9
commit
fa9e604755
|
@ -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))
|
||||||
|
|
Loading…
Reference in New Issue