clumsyboy 2011-05-16 09:44:47 20187次浏览 32条回复 2 0 0

如题,在YII的表单提交时实现依条件出现弹出框,求帮助

  • 回复于 2011-09-08 08:23 举报

    不说什么只能顶啊,有些功能需要根据相关说明进行测试,不然还是不会使用,我是体会到了

  • 回复于 2011-09-06 21:38 举报

    jquery插件也不错啊!用户体验不错!

  • 回复于 2011-09-06 16:57 举报

    曾哥威武!

  • 回复于 2011-09-01 19:54 举报

    大家V5,我还傻傻的直接用jquery写

  • 回复于 2011-08-15 17:36 举报

    类似这样。

    <?php 
    $this->beginWidget('zii.widgets.jui.CJuiDialog', array(
        'id'=>'mydialog',
        // additional javascript options for the dialog plugin
        'options'=>array(
            'title'=>Yii::t('query','查询系统'),
            'autoOpen'=>false,
            'modal'=>'true',
            'width'=>'auto',
            'height'=>'auto',
        ),
    ));
    
    echo Yii::app()->user->name.'<br>'.'欢迎你来使用考勤查询系统!';
    $this->endWidget('zii.widgets.jui.CJuiDialog');
    
    // the link that may open the dialog
    echo CHtml::link('点我吧','#',array(
       'onclick'=>'$("#mydialog").dialog("open"); return false;',
    ));
    ?>
    
  • 回复于 2011-08-01 15:48 举报

    为什么我没显示的??

  • 回复于 2011-08-01 15:41 举报

    曾哥威武!

  • 回复于 2011-07-14 16:49 举报

    曾哥威武!

  • 回复于 2011-07-14 15:23 举报

    曾哥V5.曾哥V5.

  • 回复于 2011-07-14 14:44 举报

    这里是效果图

  • 回复于 2011-07-14 14:42 举报
    <?php
    $this->beginWidget('zii.widgets.jui.CJuiDialog', array(
        'id'=>'mydialog',
        // additional javascript options for the dialog plugin
        'options'=>array(
            'title'=>'提示',
            'autoOpen'=>false,
            'modal'=>true,
            'buttons'=>array(
                '关闭'=>'js:function(){ $(this).dialog("close");}',
            ),
        ),
    ));
    ?>
    dialog content here<br>
    Hello,World!
    <?php
    $this->endWidget('zii.widgets.jui.CJuiDialog');
    ?>
    
  • 回复于 2011-07-13 10:37 举报

    有样例代码吗?

您需要登录后才可以回复。登录 | 立即注册