我已經DROPDOWNLIST作爲使用cHTML選擇多個值::下拉列表警予
echo CHtml::dropDownList('personids', '',$list, array('id'=>'sea'.$dd,'class'=>'vulntr-textfld1','prompt'=>'Select',));
和列表數據是
$criteria=new CDbCriteria();
$criteria->addCondition('PersonTypeCode=:PersonTypeCode AND FamilyId=:FamilyId ');
$criteria->params=array(':PersonTypeCode'=>$category,':FamilyId'=>$Familyid);
$lookupval = Person::model()->findAll($criteria);
$list = CHtml::listData($lookupval, 'PersonID', 'FirstName');
,它正在well..but我的問題是如何選擇多個值在這個下拉列表中,請任何建議,將不勝感激
看看http://stackoverflow.com/questions/10740877/need-listbox-with-multiple-selection-in-yii –
感謝您的回覆,檢查,但沒有工作好 – rch