Home > Backend Development > PHP Tutorial > Yii-View-CListView operation extension usage (zyd)_PHP tutorial

Yii-View-CListView operation extension usage (zyd)_PHP tutorial

WBOY
Release: 2016-07-14 10:09:08
Original
811 people have browsed it

view file

[html]
$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.Yii-View-CListView operation extension usage (zyd)_PHP tutorial
2.Yii-View-CListView operation extension usage (zyd)_PHP tutorial

www.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...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template