$maxpics) $idnext=1; $idsubnext=$idsub+1; if ($idsubnext>$cat1) $idsubnext=1; } ?> Mark de Weijer "" & $id<>"cat3") print("background='openingspagina.jpg'"); if ($idsub<>"" & $id=="cat1") print("background='cat1/2D-".$idsub."-detail.jpg'"); if ($idpic=="" & $idsub<>"" & $id=="cat2") print("background='".$id."/".$idsub."/".$idsub."-1-detail.jpg'"); if ($idpic<>"" & $idsub<>"" & $id=="cat2") print("background='".$id."/".$idsub."/".$idsub."-".$idpic."-detail.jpg'"); if ($idsub<>"" & $id=="cat4") print("background='".$id."/".$idsub."/".$idsub."-detail.jpg'"); // end background image ?> leftmargin="0" marginwidth="0" topmargin="0" marginheight="0">


mark de weijer
info@markdeweijer.nl
2D
"); if ($id<>"cat1") print ("2D
"); if ($id=="cat2" AND $id<>"cat1") print ($begin."3D
"); if ($id<>"cat2" AND $id<>"cat1") print ("3D
"); if ($id=="cat4" AND $id<>"cat1" AND $id<>"cat2") print ($begin."projecten
"); if ($id<>"cat4" AND $id<>"cat1" AND $id<>"cat2") print ("projecten
"); if ($id=="cat3" AND $id<>"cat1" AND $id<>"cat2" AND $id<>"cat4") print ($begin."informatie
"); if ($id<>"cat3" AND $id<>"cat1" AND $id<>"cat2" AND $id<>"cat4") print ("informatie
"); // this is the table for the projects // we need a special table for the texts (width only 200) and one for all the rest going over the whole width if ($id=='cat3') print("
"); if ($id<>'cat3') print("
"); // some calculations @$idtemp = $$id; @$idtemp2 = $id."name"; @$idtemp3 = $id."amount"; @$idname = $$idtemp2; @$idamount = $$idtemp3; // // section for 2D; makes the menu with the thumbnails and loads the big picture if selected // if ($id=="cat1"){ // close button to close the 2D menu print ("   sluit 2D

"); // table for the thumbnails and for the big pictures print ("
"); // 01 table for the thumbnail menu print (""); for($a=1;$a<=$cat1;$a++) { print (""); if ($a+1<=$cat1) print (""); if ($a+1>$cat1) print (""); $a++; } print("
"); // end table for the thumbnails // 02 little space between the thumkbnail menu and the big picture print("
    "); // 03 load the big picture if a thumbnail is selected if ($idsub<>"" & $id=="cat1") { print ("

"); // load the text info for the picture $temp="cat1text".$idsub; $texttemp = split("#" , $$temp); for ($ii = 0; $ii
".$texttemp[$ii].""); print("
"); } print("
"); } // end 2d stuff // // section for for projects and 3D and info // if ($id<>"" & $id<>"cat1"){ // make submenu print ("
"); for($a=0;$a<(count($idtemp));$a++){ if ($a==4 or $a==8 or $a==12 or $a==16 or $a==20) print ("   "); if ($idsub<>$idtemp[$a]) print ("  ".$idname[$a]."
"); // if the submenu is selected, make it grey and add a 'sluit project' link if ($idsub==$idtemp[$a]) { print ("  ".$idname[$a]."
"); } } print ("
"); if (($id=='cat4' OR $id=='cat2') && $idsub<>"") print ("

   sluit project

"); for($a=0;$a<(count($idtemp));$a++){ // make a table and load small pictures if a subselection is chosen and the main selection is not info. if ($idsub<>"" AND $idsub==$idtemp[$a] AND $id<>"cat3"){ // table for the thumbnails table and the big picture print ("
"); // 01 table for the thumbnails pictures (2 rows and 200 pixels wide) print (""); // this is a trick to make two rows if ($b+1<=$idamount[$a]) print (""); $b++; } // check if there is text availble for the project and load the text. Text runs over 2 coloms. Add 2 br at the end of the text print("
"); for($b=1;$b<=$idamount[$a];$b++) { print ("
"); if ($b+1>$idamount[$a]) print ("
"); if (file_exists($id."/".$idtemp[$a]."/".$idtemp[$a].".txt")) { require ($id."/".$idtemp[$a]."/".$idtemp[$a].".txt"); print ("

"); } print("
"); // end of the table for the thumbnails and the pictures // 02 little space between the thumbnails and the big picture print("
    "); // 03a 3D big picture and text (this section has also the possibilitie for 2 texts) if ($idsub<>"" & $id=="cat2" & $idpic<>""){ print ("
"); $temp="cat2_".(substr($idsub,0,1))."text".$idpic; $texttemp = split("#" , $$temp); print ("
"); for ($ii = 0; $ii".$texttemp[$ii]."
"); print ("
"); $temp="cat2_".(substr($idsub,0,1))."text".$idpic."b"; $texttemp = split("#" , $$temp); for ($ii = 0; $ii".$texttemp[$ii]."
"); print("
"); } // 03b projecten, big picture and text (this section has also the possibility for 2 texts) if ($idsub<>"" & $id=="cat4" & $idpic<>"") { // HERE WE HAD A LINK, THIS I REMOVES //print ("
"); print ("
"); // this is check to see if there is the number is less or more than 10. If there is more than 19 projects this needs to be changed //if (substr($idsub,1,1) <> "0" && substr($idsub,1,1) <> "1" && substr($idsub,1,1) <> "2") $temp="cat4text".substr($idsub,0,1); //if (substr($idsub,1,1) == "0" or substr($idsub,1,1) == "1" or substr($idsub,1,1) == "2") $temp="cat4text".substr($idsub,0,2); $temp="cat4text".substr($idsub,0,2); // hack for posdsibilitie to make a special text here $temp2="cat4text".substr($idsub,0,1)."_".$idpic; if ($$temp2<>"") $temp=$temp2; $texttemp = split("#" , $$temp); print ("
"); for ($ii = 0; $ii".$texttemp[$ii]."
"); print ("
"); $temp="cat4text".substr($idsub,0,1)."b"; $texttemp = split("#" , $$temp); for ($ii = 0; $ii".$texttemp[$ii]."
"); print("
"); } print("
"); // end for the project table } // end for the submenu loop } // end if for submenu print("
"); // load the tekst if information (cat3) is selected // make a second cell for the text; next the subemenu if ($idsub<>"" & $id=="cat3") { print("
"); require ($id."/".$idsub.".php"); print("
"); } } ?>
"cat2" AND $id=="cat1") print ("3D
"); if ($id<>"cat4" AND $id=="cat1" OR $id=="cat2") print ("projecten
"); if ($id<>"cat3" AND $id=="cat1" OR $id=="cat2" OR $id=="cat4") print ("informatie
"); ?>