listHeadingStart(count($files)); $this->headingItem('5', _DOWN_ID); $this->headingItem('15%', _DOWN_NAME_TITLE); $this->headingItem('15%', _DOWN_PARENT_CAT); $this->headingItem('15%', _DOWN_PARENT_FOLDER); $this->headingItem('10%', _DOWN_LOCAL_OR_REMOTE); $this->headingItem('10%', _DOWN_PUB1); $this->headingItem('10%', _DOWN_DOWNLOADS_SORT); $this->headingItem('10%', ''); echo "\n"; } private function containerLink ($file) { $parent = $file->getContainer(); if ($parent) { $grandparent = $parent->getParent(); if ($grandparent) $linkid = $grandparent->id; else $linkid = $parent->id; } else $linkid = 0; $link = ''; // Change for multiple repositories // if ($linkid) $link .= ""; if ($linkid) $link .= ""; $link .= $file->getFamilyNames(); if ($linkid) $link .= ''; return $link; } private function listLine ($file, $i, $k) { $interface = remositoryInterface::getInstance(); // Change for multiple repositories // $downlink = $interface->getCfg('admin_site').'/index3.php?option=com_remository&repnum=$this->repnum&act=download&id='.$file->id; $downlink = $interface->getCfg('admin_site').'/index3.php?option=com_remository&act=download&id='.$file->id; ?> "> id; ?> editLink($file->id, $file->filetitle, $file->containerid); ?> getCategoryName();?> containerLink($file);?> fileLocation($file);?> published==1) { ?> Published Published downloads;?> islocal ? _DOWN_IS_LOCAL : _DOWN_IS_REMOTE; } public function view (&$files, $descendants, $search='') { $this->formStart(_DOWN_FILES); $this->listHeader($descendants, $search); echo ''; $this->columnHeads($files); $this->pageNav->listFormEnd(); $k = 0; echo "\n\t\t"; foreach ($files as $i=>$file) { $this->listLine($file, $i, $k); $k = 1 - $k; } echo "\n\t\t"; } }