getDB(); $this->type = remositoryRepository::GetParam($_REQUEST, 'type'); $this->type = $database->getEscaped($this->type); $sql = "SELECT * FROM #__downloads_classify"; if ($this->type) $sql .= " WHERE type='$this->type' AND published != 0 AND hidden = 0"; else $sql .= " WHERE published = 1"; $sql .= " ORDER BY type, name"; $database->setQuery($sql); $cls = $database->loadObjectList(); if ($cls) foreach ($cls as $cl) $cllist[$cl->type][] = $cl; else $cllist = array(); if ($this->type) { $link = $this->repository->RemositoryBasicFunctionURL('lclassify'); // $interface->appendPathway('List Tags'); $interface->appendPathway($this->type); } else $interface->appendPathway('Category'); $view = new remositoryClassifyListHTML($this); $view->classifyListHTML($this->type, $cllist); } }