Home > php教程 > php手册 > Yii-自定义删除确认弹框(zyd)

Yii-自定义删除确认弹框(zyd)

WBOY
Release: 2016-06-13 10:55:06
Original
1245 people have browsed it

链接

[html]  

'c_06c','onclick'=>'return art_del_confirm("/company/msglog/delete/id/'.$data->zml_id.'","你确定要删除这条消息吗?")'))?>  

 

jq

[html]  

<script> </script>

//单项删除确认框  

function art_del_confirm(url,message){  

    message = message?message:'你确定要删除这条数据吗?';  

    art.dialog({  

        title: '确认删除',  

        okValue:'确认',  

        cancelValue:'取消',  

        width: 230,  

        height: 100,  

        fixed: true,  

        content: message,  

        ok: function () {  

             window.location.href=url;   

            return true;  

        },  

        cancel: function () {  

            return true;  

        },  

    });  

}  

 

 

效果图

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template