wychao
- wychao 回复了话题 dropDownList
jquery: $('#id').val();
activeFileField 不能自动上传图片吧。。 不上传那怎么能预览。。
所以建议你使用Swfupload这个组件。或者你把那个选择图片放到一个iframe里面去弄成ajax提交。貌似
array(':name'=>'Dan', 'age'=>31)
这样也是可以出来的。- wychao 回复了话题 北京PHP开发工程师-待遇从优
不错。 顶一下。。。 想去北京发展。。。。。。。
确实很强大。 项目里用到了。
- wychao 回复了话题 求yii使用mongoDB中文教程
干脆来点mongoDB教程吧。。
- wychao 回复了话题 swfupload 多文件上传问题
<?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', ), ) ); ?>
- wychao 回复了话题 一个css framework
灌水涨积分。。。
- wychao 回复了话题 扩展GridView,实现批量删除等操作
好把。 其实我是对你的这个模版比较感兴趣。批量功能自己倒是实现了。