getPaging()->setDelta(5); $downloadsFactory = new DownloadsFactory($brow=false); $downloadsFactory->getAll( ' aktiv = 1', 'datum DESC'); $downloadsList = array(); $count = 0; foreach($downloadsFactory->array as $downloads) { if(!isset($_REQUEST['news_id']) && $count == 0) { $_REQUEST['news_id'] = $downloads->getId(); } $downloadsList[$downloads->getId()]['downloadsObj'] = $downloads; // Hochgeladenes Bild holen $image = $downloads->getBildUpload(); if($image) { $downloadsList[$downloads->getId()]['imagepath'] = $image->DBFileRep->getFilepath($image, true); } $count ++; // Ids der Tabellen holen $tableIds = Dateiupload::getDataTables(); // hochgeladene Dateien für Download holen $fileFactory = new DateiuploadFactory($noBrows = false); $fileFactory->getAll(sprintf(' datensatz_id = %d AND datensatz_tabelle = %d', intval($downloads->getId()), intval($tableIds['Downloads'])), 'sort'); $fileList = array(); $count = 0; foreach($fileFactory->array as $file) { $downloadsList[$downloads->getId()]['files'][$count]['file'] = $file; $downloadsList[$downloads->getId()]['files'][$count]['filepath'] = $file->DBFileRep->getFilepath($file, true); $count ++; } } #print_r($downloadsList); include(INCLUDEDIR."html/header.inc.htm"); ?>

Pressetexte