<{$row.title}>
|
```
```
<{* 刪除 rende *}>
```
按鈕(b4)
```
```
按鈕(b3)
```
```
2. 流程 ```
case "opDelete"://刪除資料
#ajax必須關除錯
ugm_module_debug_mode(0);//強制關除錯
echo opDelete();
XoopsCache::clear();
exit;
```
3. 函數 ```
########################################
# 3.刪除資料ajax
########################################
function opDelete() {
global $xoopsDB,$tbl;
$sn = intval($_REQUEST['sn']);
if (!$sn) {
return false;
}
$sql = "delete from " . $xoopsDB->prefix($tbl) . "
where sn='{$sn}'"; //die($sql);
#ajax除錯 "/uploads/debug/$fileName"
//ajaxDebug($sql,"opDelete");
if($xoopsDB->queryF($sql)){
return true;
}
return false;
}
```
4.
二、轉向