日期:2014-05-17 浏览次数:20585 次
<form name="myform" method ="post">
<?php //传值对话框
$this->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 '<br />';
//echo CHtml::label('请填写取消订单的原因', '');
echo CHtml::textArea('myparm', '' ,array('rows'=>13, 'cols'=>67));
$this->endWidget('zii.widgets.jui.CJuiDialog');
?>
</form>
<form name="myform" method ="post" action="ActionURL">
<?php //传值对话框
$this->beginWidget('zii.widgets.jui.CJuiDialog', array(
'id'=>'mymodalg2',
'options'=>array(
'title'=>'请输入取消订单的原因',
'width'=>600,
'height'=>400,