wychao

wychao

  • 财富值510
  • 威望值0
  • 总积分540

个人信息

  • 回复了话题 dropDownList

    jquery: $('#id').val();

  • activeFileField 不能自动上传图片吧。。 不上传那怎么能预览。。
    所以建议你使用Swfupload这个组件。或者你把那个选择图片放到一个iframe里面去弄成ajax提交。

  • 貌似 array(':name'=>'Dan', 'age'=>31) 这样也是可以出来的。

  • 不错。 顶一下。。。 想去北京发展。。。。。。。

  • 收起。。。 以后可能会用得着。

  • 确实很强大。 项目里用到了。

  • 干脆来点mongoDB教程吧。。

  • <?php
    $this->widget('application.extensions.swfupload.CSwfUpload', array(
        'jsHandlerUrl'=>Yii::app()->baseUrl.'/css/handlers.js', //页面不显示关键是这里。。 你看看你的js路径对不对。 我的放在根目录下的 css文件夹里
        'postParams'=>array(),
        'config'=>array(
            'use_query_string'=>true,
            'upload_url'=>Yii::app()->createUrl('/school/subject/upload'),
            'file_size_limit'=>'2 MB',
            'file_types'=>'*.jpg;*.png;*.gif',
            'file_types_description'=>'Image Files',
            'file_upload_limit'=>0,
            'file_queue_error_handler'=>'js:fileQueueError',
            'file_dialog_complete_handler'=>'js:fileDialogComplete',
            'upload_progress_handler'=>'js:uploadProgress',
            'upload_error_handler'=>'js:uploadError',
            'upload_success_handler'=>'js:uploadSuccess',
            'upload_complete_handler'=>'js:uploadComplete',
            'custom_settings'=>array('upload_target'=>'divFileProgressContainer'),
            'button_placeholder_id'=>'swfupload',
            'button_width'=>240,
            'button_height'=>32,
            'button_text'=>'<span class="button">请选择要上传的文件(Max 2 MB)</span>',
            'button_text_style'=>'.button { font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif; font-size: 14pt; text-align: center; }',
            'button_text_top_padding'=>0,
            'button_text_left_padding'=>0,
            'button_window_mode'=>'js:SWFUpload.WINDOW_MODE.TRANSPARENT',
            'button_cursor'=>'js:SWFUpload.CURSOR.HAND',
            ),
        )
    );
    
    ?>
    
  • 回复了话题 一个css framework

    灌水涨积分。。。

  • 好把。 其实我是对你的这个模版比较感兴趣。批量功能自己倒是实现了。

主管 等级规则
540/1000
资料完整度
80/100
用户活跃度
0/100

Ta的关注

2

Ta的粉丝

2

Ta的访客

22