Home >Backend Development >PHP Tutorial >Yii-custom delete confirmation pop-up box (zyd)_PHP tutorial

Yii-custom delete confirmation pop-up box (zyd)_PHP tutorial

WBOY
WBOYOriginal
2016-07-14 10:09:06954browse

Link

[html]
'c_06c','onclick'=> 'return art_del_confirm("/company/msglog/delete/id/'.$data->zml_id.'","Are you sure you want to delete this message?")'))?>
jq
[html]
<script> </div> <div>//Single item deletion confirmation box </div> <div>function art_del_confirm(url,message){ </div> <div> message = message?message:'Are you sure you want to delete this data? '; </div> <div> art.dialog({ </div> <div> title: 'Confirm deletion', </div> <div> okValue:'Confirm', </div> <div> cancelValue:'Cancel', </div> <div> width: 230, </div> <div> height: 100, </div> <div> fixed: true, </div> <div> content: message, </div> <div> ok: function () { </div> <div> window.location.href=url; </div> <div> return true; </div> <div> }, </div> <div> cancel: function () { </div> <div> return true; </div> <div> }, </div> <div> }); </div> <div>} </div> <div></script>
Rendering
Yii-custom delete confirmation pop-up box (zyd)_PHP tutorial

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/477709.htmlTechArticleLink [html] ?php echo CHtml::link(Yii::t(cmp,Delete),javascript: ,array(class=c_06c,onclick=return art_del_confirm(/company/msglog/delete/id/.$data-zml_id.,Are you sure you want to delete this message...
Statement:
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