* @license http://www.contenido.org/license/LIZENZ.txt * @link http://www.4fb.de * @link http://www.contenido.org * @since file available since contenido release <= 4.6 * * {@internal * created unknown * modified 2008-06-27, Frederic Schneider, add security fix * * $Id$: * }} * */ if(!defined('CON_FRAMEWORK')) { die('Illegal call'); } cInclude("includes", "functions.con.php"); $page = new cPage; conCreateLocationString($idcat, "/", $cat_str); $mcatlink = ""; $_cecIterator = $_cecRegistry->getIterator("Contenido.Content.CreateCategoryLink"); if ($_cecIterator->count() > 0) { while ($chainEntry = $_cecIterator->next()) { $catlink = $chainEntry->execute($idcat); if ($catlink != "") { $mcatlink = $catlink; } } } if ($mcatlink == "") { $mcatlink = "front_content.php?idcat=$idcat"; } $jslink = 'parent.parent.frames[\'left\'].frames[\'left_top\'].document.getElementById(\'selectedfile\').value= \''.$mcatlink.'\'; window.returnValue=\''.$mcatlink.'\'; window.close();'; $content[] = '
'; $content[] = '
'; $content[] = ''.i18n('; $content[] = $cat_str; $content[] = '
'; $cApiCategoryArticleCollection = new cApiCategoryArticleCollection; $cApiCategoryArticleCollection->link("cApiCategoryLanguageCollection"); $cApiCategoryArticleCollection->link("cApiArticleCollection"); $cApiCategoryArticleCollection->link("cApiArticleLanguageCollection"); $cApiCategoryArticleCollection->link("cApiCategoryCollection"); $cApiCategoryArticleCollection->setWhere("cApiCategoryLanguageCollection.idlang", $lang); $cApiCategoryArticleCollection->setWhere("cApiArticleLanguageCollection.idlang", $lang); $cApiCategoryArticleCollection->setWhere("cApiCategoryLanguageCollection.idcat", $idcat); $cApiCategoryArticleCollection->query(); $headlines = array(i18n("Start"), i18n("Title"), i18n("Created"), i18n("Modified"), i18n("Sort Order"), i18n("Online")); $fields = array("is_start", "title", "created", "lastmodified", "artsort", "online"); $content[] = ''; foreach ($headlines as $headline) { $content[] = ''; } $content[] = ''; $dateformat = getEffectiveSetting("backend", "timeformat", "Y-m-d H:i:s"); $odd = false; while ($cApiCategoryArticle = $cApiCategoryArticleCollection->next()) { $obj = $cApiCategoryArticleCollection->fetchObject("cApiArticleLanguageCollection"); $odd = !$odd; if ($odd) { $mcol = $cfg['color']['table_light']; } else { $mcol = $cfg['color']['table_dark']; } $content[] = ''; $martlink = ""; $idart = $obj->get("idart"); $_cecIterator = $_cecRegistry->getIterator("Contenido.Content.CreateArticleLink"); if ($_cecIterator->count() > 0) { while ($chainEntry = $_cecIterator->next()) { $artlink = $chainEntry->execute($idart, $idcat); if ($artlink != "") { $martlink = $artlink; } } } if ($martlink == "") { $martlink = "front_content.php?idart=$idart"; } $jslink = 'parent.parent.frames[\'left\'].frames[\'left_top\'].document.getElementById(\'selectedfile\').value= \''.$martlink.'\'; window.returnValue=\''.$martlink.'\'; window.close();'; foreach ($fields as $field) { switch ($field) { case "is_start": $value = isStartArticle($obj->get("idartlang"), $idcat, $lang); if ($value == true) { $value = ''; } else { $value = ''; } break; case "created": case "modified": $value = date($dateformat,strtotime($obj->get($field))); break; case "online": if ($obj->get("online") == true) { $value = ''; } else { $value = ''; } break; default: $value = $obj->get($field); break; } if ($field == "title") { $xwidth = 'width="100%"'; } else { $xwidth = 'width="1%"'; } $content[] = ''; } $content[] = ''; } $content[] = '
'.$headline.'
'.$value.'
'; $page->setContent(implode("", $content)); $page->render(); ?>