:::

4. XoopsModules\Tadtools\SweetAlert 可愛警告視窗

use XoopsModules\Tadtools\SweetAlert;

使用方式:

$SweetAlert = new SweetAlert($show_jquery = true);
$SweetAlert->render($func_name = '', $url = '', $var = '', $title = _TAD_DEL_CONFIRM_TITLE, $text = _TAD_DEL_CONFIRM_TEXT, $confirmButtonText = _TAD_DEL_CONFIRM_BTN, $type = 'warning', $showCancelButton = 'true', $html = '');

如:

$SweetAlert = new SweetAlert();
$SweetAlert->render("del_func", "index.php?op=del&id=",'id');

HTML部份,如:

<a href="javascript:del_func('<{$id}>')" class="btn btn-danger">刪除</a>

 


:::

搜尋

QR Code 區塊

https%3A%2F%2Fwww.tad0616.net%2Fmodules%2Ftad_book3%2Fpage.php%3Ftbsn%3D15%26tbdsn%3D1713

書籍目錄

展開 | 闔起

線上使用者

31人線上 (5人在瀏覽線上書籍)

會員: 0

訪客: 31

更多…