1.連結
程式碼如下:
🎜 echo CHtml::link(Yii::t('cmp','Delete'),'javascript:',array('class'=>'c_06c','onclick'=>'return art_del_confirm("/company/msglog /delete/id/'.$data->zml_id.'","你確定要刪除這則訊息嗎? >
<script> <BR>/單項刪除框<BR>function art_del_confirm(url,message){ <BR>message = message?message:'你確定要刪除這條資料嗎? '; <BR>art.dialog({ <BR>title: '確認刪除', <BR>okValue:'確認', <BR>cancelValue:'取消', <BR>width: 230, <BR>height: 100, <BR>fixed: true, <BR>content: message, <BR>ok: function () { <BR>window.location.href=url; <BR>return true; <BR>}, <BR> cancel: function () { <BR>return true; <BR>}, <BR>}); <BR>} <BR></script>
效果圖