:::

4-14 templates/sweet-alert.tpl

<script type="text/javascript" src="class/sweet-alert/sweetalert.min.js"></script>
<link rel="stylesheet" type="text/css" href="class/sweet-alert/sweetalert.css" />
<script type="text/javascript">
  function delete_action(id){
    swal({
      title: "確定要刪除嗎?",
      text: "刪除後資料就消失救不回來囉!",
      type: "warning",
      showCancelButton: true,
      confirmButtonColor: "#DD6B55",
      confirmButtonText: "是!含淚刪除!",
      cancelButtonText: "不...別刪",
      closeOnConfirm: false
    }, function(){
      swal("OK!刪掉惹!", "該資料已經隨風而逝了...", "success");

      location.href='admin.php?op=delete_action&action_id=' + id;
    });
  }
</script>

 


:::

書籍目錄

展開 | 闔起

快速登入


http%3A%2F%2Fcampus-xoops.tn.edu.tw%2Fmodules%2Ftad_book3%2Fpage.php%3Ftbdsn%3D789%26tbsn%3D28

計數器

今天: 1221122112211221
昨天: 8625862586258625
總計: 8031828803182880318288031828803182880318288031828