'MainMenuHosting', 'button' => 'button_hosting_menu.png', 'button_sel' => 'button_hosting_menu_selected.png', 'alt' => 'Hosting', 'selected' => 0, 'submenu' => array ( array ( 'id' => 'HostingHome', 'button' => 'img/button_hosting_home.png', 'button_sel' => 'img/button_hosting_home_selected.png', 'alt' => 'Hosting Start Pagina', 'selected' => 0, 'submenu' => array() ), array ( 'id' => 'HostingProducten', 'button' => 'img/button_hosting_prod.png', 'button_sel' => 'img/button_hosting_prod_selected.png', 'alt' => 'Onze Hosting Producten', 'selected' => 0, 'submenu' => array () ), array ( 'id' => 'HostingHelpdesk', 'button' => 'img/button_hosting_helpdesk.png', 'button_sel' => 'img/button_hosting_helpdesk_selected.png', 'alt' => 'Instellingen, statistieken, onderhoud en mededelingen', 'selected' => 0, 'submenu' => array() ), array ( 'id' => 'HostingContact', 'button' => 'img/button_hosting_contact.png', 'button_sel' => 'img/button_hosting_contact_selected.png', 'Neem contact met ons op', 'selected' => 0, 'submenu' => array() ) ) ), array ( 'id' => 'MainMenuNetworking', 'button' => 'img/button_networking.png', 'button_sel' => 'img/button_networking_selected.png', 'alt' => 'Netwerken', 'selected' => 0, 'submenu' => array ( array ( 'id' => 'NetworkingHome', 'button' => 'img/button_networking_home.png', 'button_sel' => 'img/button_networking_home_selected.png', 'alt' => 'Netwerken Start Pagina', 'selected' => 0, 'submenu' => array() ), array ( 'id' => 'NetworkingProducts', 'button' => 'img/button_networking_prod.png', 'button_sel' => 'img/button_networking_prod_selected.png', 'alt' => 'Netwerk Producten', 'selected' => 0, 'submenu' => array() ) ) ), array ( 'id' => 'MainMenuSoftware', 'button' => 'img/button_software.png', 'button_sel' => 'img/button_software_selected.png', 'alt' => 'Software', 'selected' => 0, 'submenu' => array ( array ( 'id' => 'SoftwareHome', 'button' => 'img/button_software_home.png', 'button_sel' => 'img/button_software_home_selected.png', 'alt' => 'Software Start Pagina', 'selected' => 0, 'submenu' => array() ), array ( 'id' => 'SoftwareProducts', 'button' => 'img/button_software_prod.png', 'button_sel' => 'img/button_software_prod_selected.png', 'alt' => 'Software Producten', 'selected' => 0, 'submenu' => array() ) ) ), array ( 'id' => 'aboutReticulum', 'button' => 'img/button_about.png', 'button_sel' => 'img/button_about_selected.png', 'alt' => 'Over ons', 'selected' => 0, 'submenu' => array() ), array ( 'id' => 'MainContact', 'button' => 'img/button_contact.png', 'button' => 'img/button_contact_selected.png', 'alt' => 'Contact', 'selected' => 0, 'submenu' => array() ) ); /******************** Page specific data ************************/ //select data based on $_REQUEST['click'] value. if (isset($_REQUEST['click'])) { $action = $_REQUEST['click']; } else { $action = ''; } $submenu=''; switch ($action) { case 'MainMenuHosting': getHostingProductsPageData(); // $menu[0][selected]=1; // $submenu = $menu[0]['submenu']; break; case 'MainMenuNetworking': getNetworkingProductsPageData(); // $menu[1][selected]=1; // $submenu = $menu[1]['submenu']; break; case 'MainMenuSoftware': getSoftwareProductsPageData(); // $menu[2][selected]=1; // $submenu = $menu[2]['submenu']; break; case 'MainHelpdesk': case 'HostingHelpdesk': case 'helpdesk': getHelpdeskPageData(); $menu[3][selected]=1; break; case 'MainContact': case 'HostingContact': case 'contact': getContactPageData(); $menu[4][selected]=1; break; /* case 'HostingHome': getHostingHomePageData(); $menu[0][selected]=1; $submenu = $menu[0]['submenu']; break; *//* case 'HostingProducten': getHostingProductsPageData(); $menu[0][selected]=1; $submenu = $menu[0]['submenu']; break;*/ case 'news': getNewsPageData(); break; case 'maintenance': getMaintenancePageData(); break; case 'virtualhosting': getVirtualHostingPageData(); break; case 'dedicatedhosting': getDedicatedHostingPageData(); break; case 'consultancy': getConsultancyPageData(); break; case 'hostingTWA': getHostingTWAPageData(); break; /* case 'NetworkingHome': getNetworkingHomePageData(); $menu[1][selected]=1; $submenu = $menu[1]['submenu']; break; case 'NetworkingProducts': getNetworkingProductsPageData(); $menu[1][selected]=1; $submenu = $menu[1]['submenu']; break; case 'SoftwareHome': getSoftwareHomePageData(); $menu[2][selected]=1; $submenu = $menu[2]['submenu']; break; case 'SoftwareProducts': getSoftwareProductsPageData(); $menu[2][selected]=1; $submenu = $menu[2]['submenu']; break;*/ case 'backup': getSirTanPageData($_REQUEST['sub']); break; /* case 'sirtanoverview': getSirtanOverviewPageData(); break; */ case 'aboutReticulum': getAboutPageData(); break; case 'voorwaarden': getVoorwaardenPageData(); break; case 'disclaimer': getDisclaimerPageData(); break; case 'sitemap': getSiteMapPageData(); break; case 'order': getVHostingOrderPageData(); break; default: // print_r($action); getReticulumHomePageData(); break; } if (is_array($submenu)) { $showsub=1; } else $showsub=0; //set box data: getNewsBoxData(); getMaintenanceBoxData(); // enter the stuff into smarty: $sm->assign("titleImg", $titleImg); $sm->assign("pageTitle", $pageTitle); $sm->assign("pageStyle", $pageStyle); $sm->assign("cssFile", $cssFile); $sm->assign("jsFiles", $jsFiles); $sm->assign("jsCodes", $jsCodes); $sm->assign("bodyText", $bodyText); $sm->assign("menu", $menu); $sm->assign("news", $newsItem); $sm->assign("tnews", $totalNews); $sm->assign("maintenanceNotification", $maintenanceNotification); $sm->assign("totalMaintenanceNotifications", $totalMaintenanceNotifications); $sm->assign("showsub", $showsub); $sm->assign("submenu", $submenu); // render page: $sm->template_dir="."; $sm->display($templateFile); close_container(); ?>