'; if ($view != 'user' and $view != 'shoppergroup') { $cid = 'cid'; } else if ($view == 'user'){ $cid = 'virtuemart_user_id'; } else { $cid = 'virtuemart_shoppergroup_id'; } $model = new VmModel(); $table = $model->getTable($table); if(!is_array($idList)){ $db = JFactory::getDBO (); $q = 'SELECT `' . $table->getPKey() . '` FROM `#__virtuemart_' . $db->escape ($tableXref) . '` WHERE ' . $db->escape ($tableSecondaryKey) . ' = "' . (int)$idList . '"'; $db->setQuery ($q); $idList = $db->loadColumn (); } $i = 0; foreach($idList as $id ){ $item = $table->load ((int)$id); if($translate) $item->{$name} = vmText::_($item->{$name}); $link = JHtml::_('link', JRoute::_('index.php?option=com_virtuemart&view='.$view.'&task=edit&'.$cid.'[]='.$id,false), $item->{$name}); if($i<$quantity and $i<=count($idList)){ $list .= '