"; $first_photo=get_foto_data("", 1); $photo=$first_photo[0]; $main_tekst.="\n"; $other_photos=get_foto_data("", 999,$photo['foto_id']); foreach($other_photos as $photo) { if (strtoupper(substr($photo['foto_plaatje_src'],0,4))!="HTTP") { $main_tekst.="\n"; } else { $main_tekst.="\n"; } } $main_tekst.="
\n\n"; break; case ('contact'): $subpagina=$pagina; include("sub/teksten.php"); //$main_tekst=parse_template_pagina($main_template,$pagina); $main_tekst=str_replace("__PHP_SELF__",$_SERVER['PHP_SELF'],$main_tekst); $main_tekst=str_replace("__pagina__",$pagina,$main_tekst); $main_tekst=str_replace("__subpagina__",$subpagina,$main_tekst); $main_tekst=str_replace("__contact_bericht__",$contact_bericht,$main_tekst); if ($contact_bericht<>""){$main_tekst.="\n


\n";} break; default: $subpagina=$pagina; include("sub/teksten.php"); $main_tekst=str_replace("__PHP_SELF__",$_SERVER['PHP_SELF'],$main_tekst); $main_tekst=str_replace("__pagina__",$pagina,$main_tekst); $main_tekst=str_replace("__subpagina__",$subpagina,$main_tekst); break; } $menu=""; $menu_small=""; $menu_array=array(); $db_query="SELECT * FROM ".$tabellen['teksten_data_tabel']." WHERE language='".mysqli_real_escape_string($db,$language)."' and parent<>'top' order by sorting,kopje"; $db_results=db_execute_query($db_query); while ($db_result=mysqli_fetch_assoc($db_results)) { if (substr($db_result['kopje'],0,1)<>'*'){$menu_array[$db_result['tekst_id']]=$db_result['kopje'];} } foreach($menu_array as $id=>$menu_item) { if (url_friendly($menu_item)==$pagina) { $menu.="".$menu_item.""; $menu_small.="".$menu_item."
\n"; } else { $menu.="".$menu_item.""; $menu_small.="".$menu_item."
\n"; } } $menu.="
  
"; $menu_small.="  
"; $extra_scripts_en_links=""; $extra_scripts_en_links_end=""; $roterend_plaatje=""; $scrollTop=0; if (!empty($_GET['scrollTop'])){$scrollTop=(int)$_GET['scrollTop'];} if (!empty($_POST['scrollTop'])){$scrollTop=(int)$_POST['scrollTop'];} //$scrollTop=99900; if (true) { $extra_scripts_en_links=' '; } if ($pagina=='*gallery' || $pagina=='gallery'||$pagina=='*gallerij' || $pagina=='gallerij') { $extra_scripts_en_links_end=" "; } if ($pagina=="home") { $extra_scripts_en_links.=' '; $roterend_plaatje=parse_template_pagina("template_default.htm","roterend_plaatje"); } $main_tekst_tmp=$main_tekst; $subpagina="*request"; include("sub/teksten.php"); $request_tekst=$main_tekst; $main_tekst=$main_tekst_tmp; $contact_bericht_request=""; if ("request-to-book"==$formulier) { if ($formulier_ok=='ja') { $contact_bericht_request="
".$contact_bericht."
\n"; } else { $contact_bericht_request="
".$contact_bericht."
\n"; } } $request_tekst=str_replace("__contact_bericht__",$contact_bericht_request,$request_tekst); $main_content=str_replace("__request__",$request_tekst,$main_content); if (empty($Name)){$Name=" your name";} if (empty($Naam)){$Naam=" uw naam";} if (empty($Remarks)){$Remarks=" questions and remarks";} if (empty($Opmerkingen)){$Opmerkingen=" vragen en opmerkingen";} if (empty($Emailaddress)){$Emailaddress=" your emailaddress";} if (empty($Emailadres)){$Emailadres=" uw emailadres";} if ($Emailaddress=="your emailaddress"){$Emailaddress==" your emailaddress";} if (empty($Emailadres)){$Emailadres=" uw emailadres";} if ($Emailadres=="uw emailadres"){$Emailadres=" uw emailadres";} if (empty($Gasten)){$Gasten=" aantal gasten";} if (empty($Guests)){$Guests=" number of guests";} if (empty(${'Check-in'})){${'Check-in'}=" check-in";} if (empty(${'Check-out'})){${'Check-out'}=" check-out";} foreach(array("Name","Naam","Remarks","Opmerkingen","Emailaddress","Emailadres","Check-in","Check-out","Guests","Gasten") as $ff) { $main_tekst=str_replace("__".$ff."__",$$ff,$main_tekst); $main_content=str_replace("__".$ff."__",$$ff,$main_content); } $main_content=str_replace("__PHP_SELF_INCL_HOST__","http://".$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'],$main_content); $main_content=str_replace("__main_tekst__",$main_tekst,$main_content); $main_content=str_replace("__menu__",$menu,$main_content); $main_content=str_replace("__scrollTop__",$scrollTop,$main_content); $main_content=str_replace("__menu_small__",$menu_small,$main_content); $main_content=str_replace("__pagina__",$pagina,$main_content); $main_content=str_replace("__titel_plaatje__",$titel_plaatje,$main_content); $main_content=str_replace("__imagepagina__",$imagepagina,$main_content); $main_content=str_replace("__css_inhoud__",$css_inhoud,$main_content); $main_content=str_replace("__language__",$language,$main_content); $main_content=str_replace("__language_slash__",$language_slash,$main_content); $main_content=str_replace("__".$language."_selected__","selected='true'",$main_content); $main_content=str_replace("__nl_selected__","",$main_content); $main_content=str_replace("__en_selected__","",$main_content); $main_content=str_replace("__id_selected__","",$main_content); $main_content=str_replace("__make_your_reservation__",$make_your_reservation,$main_content); $main_content=str_replace("__inhoud_inner_padding__",$inhoud_inner_padding,$main_content); $main_content=str_replace("__inhoud_plaatje_content__",$inhoud_plaatje_content,$main_content); $main_content=str_replace("__extra_scripts_en_links__",$extra_scripts_en_links,$main_content); $main_content=str_replace("__extra_scripts_en_links_end__",$extra_scripts_en_links_end,$main_content); $main_content=str_replace("__roterend_plaatje__",$roterend_plaatje,$main_content); if ($pagina=="home"){$main_content=str_replace("__streepje_home__","-home",$main_content);} $main_content=str_replace("__streepje_home__","",$main_content); foreach(array("title","description","author","keywords") as $tag) $main_content=str_replace("__".$tag."__",titles_en_tags($pagina,$tag),$main_content); echo $main_content; db_close(); ?>