beginwidget('zii.widgets.jui.cjuidialog', array( 'id'=>'mymodalg2', 'options'=>array( 'title'=>'请输入取消订单的原因', 'width'=>600, 'height'=>400, 'autoopen'=>false, 'resizable'=>false, 'modal'=>true, 'overlay'=>array( 'backgroundcolor'=>'#000', 'opacity'=>'0.5' ), 'buttons'=>array( //'ok'=>'js:function(){alert(ok);}', '确认操作'=>'js:function(){ alert(提交成功);}', '取消操作'=>'js:function(){$(this).dialog(close);}', ), ), ));//echo 'modal dialog content here ';//echo '
';//echo chtml::label('请填写取消订单的原因', ''); echo chtml::textarea('myparm', '' ,array('rows'=>13, 'cols'=>67));$this->endwidget('zii.widgets.jui.cjuidialog');?>
回复讨论(解决方案) 没有用过,一看cdialog以为进错了mfc版
------------------------------------------------------autocsdn签名档------------------------------------------------------
码农场码农播种代码、放牧思想的农场!
其他还是和我们正常使用基本的html提交表单一样,只需要把form的action属性写好,在form中设置要提交的域的name属性即可。另外yii的dialog还可以这么写,个人觉得很灵活:
beginwidget('zii.widgets.jui.cjuidialog', array( 'id'=>'mymodalg2', 'options'=>array( 'title'=>'请输入取消订单的原因', 'width'=>600, 'height'=>400, 'autoopen'=>false, 'resizable'=>false, 'modal'=>true, 'overlay'=>array( 'backgroundcolor'=>'#000', 'opacity'=>'0.5' ), 'buttons'=>array( //'ok'=>'js:function(){alert(ok);}', '确认操作'=>'js:function(){ alert(提交成功);}', '取消操作'=>'js:function(){$(this).dialog(close);}', ), ), ));//echo 'modal dialog content here ';//echo '
';?>//echo chtml::label('请填写取消订单的原因', ''); //echo chtml::textarea('myparm', '' ,array('rows'=>13, 'cols'=>67));endwidget('zii.widgets.jui.cjuidialog');?>
