:::

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%3Ftbsn%3D30%26tbdsn%3D833

計數器

今天: 1304130413041304
昨天: 2138213821382138
總計: 7322586732258673225867322586732258673225867322586