弹出按钮点击不起作用, 弹出编码如下,
<?php
$this->beginWidget('zii.widgets.jui.CJuiDialog', array(
'id'=>'mydialog',
// additional javascript options for the dialog plugin
'options'=>array(
'title'=>'Dialog box 1',
'autoOpen'=>false,
),
));
echo 'dialog content here';
$this->endWidget('zii.widgets.jui.CJuiDialog');
echo CHtml::button("popup",array('title'=>"popup",'onclick'=>'$("#mydialog").dialog("open"); return false;'));?>
调用弹出文件的选项卡实现编码,
<?php
$this->widget('CTabView', array(
'tabs'=>array(
'baseedit_tab'=>array(
'title'=>'BaseContact Edit Source',
'view'=>'tab2',
'data'=>array('model'=>BaseContactEditStructure::model(),),
),
'structure_tab'=>array(
'title'=>'BaseContact Edit Structure',
'view'=>'tab2',
'data'=>array('model'=>BaseContactEditStructure::model()),
),
'import_tab'=>array(
'title'=>'BaseContactEdit ImportedData',
'view'=>'BCImportedData',
'data'=>array('model'=>BaseContactEditStructure::model()),
),
'reflists_tab'=>array(
'title'=>'RefLists',
'view'=>'tab2',
'data'=>array('model'=>BaseContactEditStructure::model()),
),
'documents_tab'=>array(
'title'=>'Documents',
'view'=>'tab2',
'data'=>array('model'=>BaseContactEditStructure::model()),
),
),
));
?>
如果'autoOpen'=&gt;会显示true弹出窗口,但如果'false'弹出对话框未打开...