0) { for ($tmpContent=0; $tmpContent0; $i--) { if ($i == $intContentNiveau) { $n[$i] = $id; $intContentID = $id; } else { $n[$i] = getValue("SELECT contentParentID FROM " . ___tablePrefix . "content WHERE (contentID = '" . $intContentID . "')", $db); $intContentID = $n[$i]; } } $meta = getMetaTags("content", $id, $db); break; case 'news': $rewrite = str_replace(array("/", ".html"), '', rewriteTitle($rewrite)); $id = 3; $n = array(0,3,0); $meta = getMetaTags("nieuws", $id, $db); // bepaal de te tonen periode en evt. volgnummer van pagina $period = ''; if (!empty($rewrite)) { $year = toInt(findFirstChars($rewrite, 4)); $month = toInt(substr($rewrite, 4, 2)); $n_page = toIntDef(substr($rewrite, 6), 1); if (!empty($year) && !empty($month)) { if (getValue("SELECT COUNT(*) FROM " . ___tablePrefix . "nieuws WHERE (nieuwsDatumVanaf LIKE '" . $year . "-" . sprintf("%02d", $month) . "%' AND nieuwsHidden = '0')", $db) > 0) { $period = $year . '-' . sprintf("%02d", $month); } } } break; case 'work': $rewrite = str_replace(".html", "", findAfter($rewrite, "/")); $id = 4; $n = array(0,4,0); $meta = getMetaTags("content", $id, $db); if (empty($rewrite)) { // work overzicht $w = array(0,0,0); } else { // fix voor een einde op / eindigt if (substr($rewrite, -1) == "/") { $rewrite = substr($rewrite, 0, (strlen($rewrite)-1)); } // sla alle items uit de assortimentsmodule op, zodat je met rewriteTitle kunt matchen $arrAssortiment = array(); $sqlAssortiment1 = "SELECT assID, assTitel FROM " . ___tablePrefix . "assortiment WHERE (assHidden = '0' AND assNiveau = '1' AND assType = '0') ORDER BY assID ASC"; if (getRecordSet($sqlAssortiment1, $rsAssortiment1, $db)) { if (numRows($rsAssortiment1) > 0 ) { for ($tmpAssortiment1=0; $tmpAssortiment1 0 ) { for ($tmpAssortiment2=0; $tmpAssortiment2 0 ) { for ($tmpAssortiment3=0; $tmpAssortiment3SetMeta("title", $meta['title']); $page->SetMeta("description", $meta['description']); $page->SetMeta("keywords", $meta['keywords']); $page->SetMeta("author", $meta['author']); $page->SetDocType("html-strict"); $page->IncludeCSS("include/styles.css"); $page->IncludeCSS("custom/" . $type . ".css"); $page->IncludeCSS("custom/custom.css"); $page->IncludePlugin("mybic"); //$page->IncludePlugin("sifr"); $page->IncludePlugin('cufon'); echo $page->Header(false); ?> ' . "\n"; echo '' . "\n"; echo '
' . "\n"; echo '
' . "\n"; echo '
'; echo '' . "\n"; echo '' . "\n"; echo '
' . "\n"; echo '
' . "\n"; $canvas = file_get_contents("custom/" . $type . ".html"); echo replaceTags($canvas); echo '
' . "\n"; echo '
' . "\n"; echo '
'; echo '
' . "\n"; echo '' . "\n"; ?> Footer(); closeConnection($db); ?>