:::

4-15 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%3D833%26tbsn%3D30

計數器

今天: 877877877
昨天: 3068306830683068
總計: 8077382807738280773828077382807738280773828077382