View File [html] <? Php $ add_drop = CHtml: dropDownList ('catlist', '', CmpCat: model ()-> getCmpCat ('move to category '), array ('class' =>'s _ ipw_120 removedropcatbatch '); $ remove_drop = CHtml: dropDownList ('catlist', '', CmpCat: model () -> getCmpCat ('add to category'), array ('class' =>'s _ ipw_120 adddropcatbatch')?> <? Php $ this-> widget ('zii. widgets. CListView ', array ('dataprovider' => $ model-> search (), 'itemview' => 'product _ saleing_view', 'emptytext' => 'no data temporarily ', 'selectall' => array ('IDs [] ', 'Id []'), 'artlink' => array (// The homepage recommends array (Yii :: t ('cmp ', 'Recommended home'),'/company/product/recommend', 'confirm that the product is Recommended to the homepage! '), // Cancel recommendation array (Yii: t ('cmp', 'UN Recommended home'), '/company/product/uncommend ', 'Confirm to cancel the product selection! '), // Dismounting array (Yii: t ('cmp', 'downshelf'), '/company/product/downshelf', 'confirm to list the selected products! '),), 'Batchitem' => array (// move to category $ add_drop, // Add to category $ remove_drop,);?> Jq code [html] <script type = "text/javascript"> // Add to category $ ('. adddropcatbatch '). bind ('change', function () {var pid = $ (". chkitem: checked "). serialize (); var catid = $ (this ). val (); location. href = '/company/cmpcat/addcmpcat? Catid = '+ catid +' & '+ pid;}) // move to category $ ('. removedropcatbatch '). bind ('change', function () {var pid = $ (". chkitem: checked "). serialize (); var catid = $ (this ). val (); location. href = '/company/cmpcat/removecmpcat? Catid = '+ catid +' & '+ pid ;}) </script> select [html] <? Php echo CHtml: checkBox ('Id [] ', '', array ('class' => 'chk f_l chkitem ', 'onclick' => 'checklist ("ids []", "id []") ', 'value' => $ data-> zp_id)?> 1. 2.