1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
| array( "header" => "操作", "buttons" => array( "ll" => array( "label" => "信息", "imageUrl" => "", "options" => array("role" => "button", "class" => "btn"), "click" => "function() { var val=$(this).parent().parent().children().eq(0).html(); $.ajax({ type:"POST", dataType:"json",//dataType (xml html script json jsonp text) data:{"val":val},//json 数据 url: "" . Yii::app()->createUrl("/data/user/update/") . "", success:function(json) {//成功获得的也是json对象 layer.open({ type: 1, title: false, closeBtn: 0, shadeClose: true, skin: \\"yourclass\\", content: json.val }); } }); }" ), ), "class" => "CButtonColumn", "template" => "{ll}", ), array( "header" => "修改", "buttons" => array( "info" => array( "label" => "信息", "options" => array(), "url" => ""javascript:info(".json_encode($data).");"", ), ), "class" => "CButtonColumn", "template" => "{info}", ),
|