Home  >  Article  >  Backend Development  >  yii 的组件Cdialog怎么将值传递到控制器中去

yii 的组件Cdialog怎么将值传递到控制器中去

WBOY
WBOYOriginal
2016-06-13 11:29:22987browse

yii 的组件Cdialog如何将值传递到控制器中去?
yii 的组件Cdialog如何将值传递到控制器中去?

<br /><br /><form name="myform" method ="post"><br /> <?php  //传值对话框<br />$this->beginWidget('zii.widgets.jui.CJuiDialog', array(<br />	'id'=>'mymodalg2',<br />	'options'=>array(<br />				'title'=>'请输入取消订单的原因',<br />				'width'=>600,<br />				'height'=>400,<br />				'autoOpen'=>false,<br />				'resizable'=>false,<br />				'modal'=>true,<br />				'overlay'=>array(<br />					'backgroundColor'=>'#000',<br />					'opacity'=>'0.5'<br />					),<br />				'buttons'=>array(<br />					//'OK'=>'js:function(){alert("OK");}',<br />					'确认操作'=>'js:function(){ alert("提交成功");}',<br />					'取消操作'=>'js:function(){$(this).dialog("close");}',<br />					),<br />				),<br />			));<br />//echo 'Modal dialog content here ';<br />//echo '<br />';<br />//echo CHtml::label('请填写取消订单的原因', ''); <br />echo CHtml::textArea('myparm', '' ,array('rows'=>13, 'cols'=>67));<br />$this->endWidget('zii.widgets.jui.CJuiDialog');<br />?><br /></form> <br /><br />

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