ecshop Admin后台删除(Ajxa删除,无跳转连接)
关联文件Admin/goods.php?act=trash, Admin/js/listtable.js
html代码
<a href="javascript:;" onclick="listTable.remove(492, '您确实要删除该商品吗?', 'drop_goods')">删除</a>
php代码
/*------------------------------------------------------ */ //-- 删除仓库 /*------------------------------------------------------ */ elseif ($_REQUEST['act'] == 'remove') { $id = intval($_REQUEST['id']); /* 检查权限 */ admin_priv('warehouse_manage'); $exc->drop($id); $url = 'warehouse.php?act=query&' . str_replace('act=remove', '', $_SERVER['QUERY_STRING']); ecs_header("Location: $url\n"); exit; }