$add_drop = CHtml::dropDownList('catlist','',CmpCat::model()->getCmpCat('Move to category'),array('class'=>'s_ipt w_120 removedropcatbatch') );
$remove_drop = CHtml::dropDownList('catlist','',CmpCat::model()->getCmpCat('Add to category'),array('class'=>'s_ipt w_120 adddropcatbatch') )
$this->widget('zii.widgets.CListView', array(
'dataProvider'=>$model->search(),
'itemView'=>'product_saleing_view',
'emptyText'=>'No data yet',
'selectAll'=>array('ids[]','id[]'),
'artLink'=>array(
//Home page recommendation
array(Yii::t('cmp','Recommended home'),'/company/product/recommend','Confirm recommended recommended products to the homepage!'),
//Cancel recommendation
array(Yii::t('cmp','un Recommended home'),'/company/product/uncommend','Confirm to unrecommend the selected product!'),
//Removed
array(Yii::t('cmp','downshelf'),'/company/product/downshelf','Confirm the selected product is on the shelf!'),
),
'batchItem'=>array(
//Move to category
$add_drop,
//Add to category
$remove_drop,
),
));
?>
jq code
[html]
Select all and reverse the selection
[html]
'chk f_l chkitem','onclick'=>'CheckList("ids[]" ,"id[]")','value'=>$data->zp_id))?>
Rendering
1.
2.
http://www.bkjia.com/PHPjc/477707.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/477707.htmlTechArticleView file [html] ?php $add_drop = CHtml::dropDownList(catlist,,CmpCat::model() -getCmpCat(move to category),array(class=s_ipt w_120 removedropcatbatch)); $remove_drop = CHtml::drop...