一、流程
case "op_delete"://刪除資料 op_delete($sn); redirect_header($_SESSION['return_url'], 3, _BP_DEL_SUCCESS); exit;
二、列表函數
#----刪除語法 include_once XOOPS_ROOT_PATH . "/modules/tadtools/sweet_alert.php"; $sweet_alert = new sweet_alert(); $sweet_alert->render("op_delete", "?op=op_delete&sn=", 'sn');
三、樣板
<{elseif $btn =="del"}> <a href="javascript:op_delete(<{$row.sn}>)" class='btn btn-danger btn-xs'><{$smarty.const._DEL}></a>