class Navigation {
var $level1;
var $level2;
var $level3;
var $level4;
var $items = array();
var $skins = array();
var $cssClassName;
var $primaryColor;
function Navigation() {
// set default skin
$this->skins[count($this->skins)] = new Skin();
$this->cssClassName = $this->skins[0]->cssClassName;
$this->primaryColor = $this->skins[0]->primaryColor;
}
function addLevel1($name = '', $url = '', $expand = 1) {
$this->items[] = new Item($name, $url, $expand);
}
function addLevel2($name = '', $url = '', $expand = 1) {
//$l1 = $this->items[count($this->items) - 1];
//$l1->items[count($l1->items)] = new Item($name, $url, $expand);
$this->items[count($this->items) - 1]->items[] = new Item($name, $url, $expand);
}
function addLevel3($name = '', $url = '', $expand = 1) {
//$l1 = $this->items[count($this->items) - 1];
//$l2 = $l1->items[count($l1->items) - 1];
//$l2->items[count($l2->items)] = new Item($name, $url, $expand);
//$l1 = $this->items[count($this->items) - 1];
//$l2 = $this->items[count($this->items) - 1]->items[count($this->items[count($this->items) - 1]->items) - 1];
$this->items[count($this->items) - 1]->items[count($this->items[count($this->items) - 1]->items) - 1]->items[] = new Item($name, $url, $expand);
//$this->items[count($this->items) - 1]->items[]
}
function addLevel4($name = '', $url = '', $expand = 1) {
//$l1 = $this->items[count($this->items) - 1];
//$l2 = $l1->items[count($l1->items) - 1];
//$l3 = $l2->items[count($l2->items) - 1];
//$l3->items[count($l3->items)] = new Item($name, $url, $expand);
$this->items[count($this->items) - 1]->items[count($this->items[count($this->items) - 1]->items) - 1]->items[count($this->items[count($this->items) - 1]->items[count($this->items[count($this->items) - 1]->items) - 1]->items) - 1]->items[] = new Item($name, $url, $expand);
}
function createNav1() {
$str = '';
$str .= '
' . "\n";
for ($i=0; $iitems); $i++) {
// main items
$item = $this->items[$i];
$isActive1 = false;
if ($item->expand) {
$str .= '- ' . "\n";
} else {
$str .= '
- ' . "\n";
}
if (strtolower($this->level1) == strtolower($item->name)) {
$str .= '' . $item->name . '' . "\n";
$isActive1 = true;
} else {
$str .= '' . $item->name . '' . "\n";
}
// sub items
// echo count($item->items);
if (count($this->items[$i]->items) != 0) {
$str .= '
';
for ($j=0; $jitems[$i]->items); $j++) {
$item = $this->items[$i]->items[$j];
$isActive2 = false;
if ($item->expand) {
$str .= '- ';
} else {
$str .= '
- ';
}
if ((strtolower($this->level2) == strtolower($item->name)) && ($isActive1)) {
$str .= '' . $item->name . '' . "\n";
$isActive2 = true;
} else {
$str .= '' . $item->name . '' . "\n";
}
// sub sub items
if (count($this->items[$i]->items[$j]->items) != 0) {
$str .= '
';
for ($k=0; $kitems[$i]->items[$j]->items); $k++) {
$item = $this->items[$i]->items[$j]->items[$k];
$str .= '- ';
if ((strtolower($this->level3) == strtolower($item->name)) && ($isActive2)) {
$str .= '' . $item->name . '' . "\n";
} else {
$str .= '' . $item->name . '' . "\n";
}
$str .= '
';
}
$str .= '
';
}
$str .= ' ';
}
$str .= '
';
}
$str .= ' ' . "\n";
}
$str .= '
';
echo $str;
}
function createNav2() {
$str = '';
for ($i=0; $iitems); $i++) {
// main items
$item = $this->items[$i];
$isActive1 = false;
if (strtolower($this->level1) == strtolower($item->name)) {
$isActive1 = true;
}
// sub items
if (count($this->items[$i]->items != 0) && ($isActive1)) {
$str .= '';
for ($j=0; $jitems[$i]->items); $j++) {
$item = $this->items[$i]->items[$j];
$isActive2 = false;
$str .= '- ';
if ((strtolower($this->level2) == strtolower($item->name)) && ($isActive1)) {
$str .= '' . $item->name . '' . "\n";
$isActive2 = true;
} else {
$str .= '' . $item->name . '' . "\n";
}
// sub sub items
if (count($this->items[$i]->items[$j]->items != 0) && ($isActive2)) {
$str .= '
';
for ($k=0; $kitems[$i]->items[$j]->items); $k++) {
$item = $this->items[$i]->items[$j]->items[$k];
$isActive3 = false;
$str .= '- ';
if (strtolower($this->level3) == strtolower($item->name)) {
$str .= '' . $item->name . '' . "\n";
$isActive3 = true;
} else {
$str .= '' . $item->name . '' . "\n";
}
// sub sub sub items
if (count($this->items[$i]->items[$j]->items[$k]->items != 0) && ($isActive3)) {
$str .= '
';
for ($l=0; $litems[$i]->items[$j]->items[$k]->items); $l++) {
$item = $this->items[$i]->items[$j]->items[$k]->items[$l];
$str .= '- ';
if (strtolower($this->level4) == strtolower($item->name)) {
$str .= '' . $item->name . '' . "\n";
} else {
$str .= '' . $item->name . '' . "\n";
}
$str .= '
';
}
$str .= '
';
}
$str .= ' ';
}
$str .= '
';
}
$str .= ' ';
}
$str .= '
';
}
}
echo $str;
}
function createTitle() {
$str = '';
if ($this->level1 != '') $str .= ' - ' . $this->level1;
if ($this->level2 != '') $str .= ' - ' . $this->level2;
if ($this->level3 != '') $str .= ' - ' . $this->level3;
if ($this->level4 != '') $str .= ' - ' . $this->level4;
return $str;
}
function addSkin($cssClassName, $primaryColor) {
$this->skins[count($this->skins)] = new Skin($cssClassName, $primaryColor);
}
function setSkin($nr = 0) {
if (($nr >= count($this->skins)) || ($nr < 0)) $nr = 0;
$this->cssClassName = $this->skins[$nr]->cssClassName;
$this->primaryColor = $this->skins[$nr]->primaryColor;
}
}
class Item {
var $name;
var $url;
var $expand;
var $items = array();
function Item($name, $url = '#', $expand = 1) {
$this->name = $name;
$this->url = $url;
$this->expand = $expand;
}
}
class Skin {
var $cssClassName;
var $primaryColor;
function Skin($cssClassName = '', $primaryColor = 'D70000') {
$this->cssClassName = $cssClassName;
$this->primaryColor = $primaryColor;
}
}
#create main instance
$nav = new Navigation();
#define skins and colors
$nav->addSkin('skin1', '90BF00'); // 1: groen
$nav->addSkin('skin2', '53A3DE'); // 2: blauw
$nav->addSkin('skin3', '993399'); // 3: paars
$nav->addSkin('skin4', '0382a2'); // 4: turquoise
$nav->addSkin('skin5', 'e2337d'); // 5: roze
$nav->addSkin('skin6', 'ffb400'); // 6: geel
$nav->addSkin('skin7', '191390'); // 7: donkerblauw
$nav->addSkin('skin8', '8b8b8b'); // 8: grijs
?>
/*
Dit is de hele navigatie van de site. Hierin worden de namen, links en volgorde gedefinieerd.
Ook kan worden bepaald of een submenu wel of niet uitgeklapt dient te worden.
Enkele aandachtspunten:
- de 0 of 1 op het eind van elke regel bepaalt of een eventueel submenu uitklapt (1 = ja, 0 = nee)
- indien er een apostrophe in de naam gebruikt dient te worden, dan dient hiervoor een backslash \ geplaatst te worden:
programma's -> programma\'s
*/
$nav->addLevel1('home', '/index.php', 1);
$nav->addLevel1('diensten', '/diensten/index.php', 1);
$nav->addLevel2('Database analyse', '/diensten/database_analyse/index.php', 1);
$nav->addLevel2('**Dashboard', '/diensten/dashboard/index.php', 0);
$nav->addLevel3('simulatie', '/diensten/dashboard/simulatie/index.php', 1);
$nav->addLevel2('CRM en Loyaliteitprogramma', '/diensten/crm_en_loyaliteit/index.php', 1);
$nav->addLevel2('Marktbewerkingsplan', '/diensten/marktbewerkingsplan/index.php', 1);
$nav->addLevel2('Onderzoeken', '/diensten/onderzoeken/index.php', 1);
$nav->addLevel2('Trainingen en workshops', '/diensten/trainingen_en_workshops/index.php', 0);
$nav->addLevel3('The ClientFactory Program','/diensten/trainingen_en_workshops/TheClientFactory/index.php', 1);
$nav->addLevel3('The sale machine', '/diensten/trainingen_en_workshops/Thesalemachine/index.php', 1);
$nav->addLevel2('Interim-management', '/diensten/interim/index.php', 1);
$nav->addLevel1('Software', '/software/index.php', 1);
$nav->addLevel2('Succesvol Marketing Plan', '/software/successful_marketing_plan/index.php', 0);
$nav->addLevel3('voorbeeld schermen', '/software/successful_marketing_plan/applicatie/index.php', 1);
$nav->addLevel2('Succesvol e-commerce plan', '/software/Successful_e_commerce_plan/index.php', 1);
$nav->addLevel2('Succesvol Beursplan', '/software/Successful_Beursplan/index.php', 1);
$nav->addLevel2('Succesvol klanttevredenheidsonderzoek', '/software/Successful_klanttevredenheidsonderzoek/index.php', 1);
$nav->addLevel2('Succesvol CRM Plan', '/software/Successful_CRM Plan/index.php', 1);
$nav->addLevel2('Succesvol verkoopdialoog', '/software/Successful_verkoopdialoog/index.php', 1);
$nav->addLevel1('Downloads', '/downloads/index.php', 1);
$nav->addLevel2('Artikelen', '/downloads/artikelen/index.php', 1);
$nav->addLevel3('Strategisch Marketing Grid', '/downloads/artikelen/klantsegmentatie/index.php', 1);
$nav->addLevel2('Case studies', '/downloads/case_studies/index.php', 1);
$nav->addLevel2('Whitepapers', '/downloads/whitepapers/index.php', 1);
$nav->addLevel2('Boeken', '/downloads/Boeken/index.php', 1);
$nav->addLevel1('Over ons', '/michiel_van_mens/index.php', 1);
$nav->addLevel2('Who is who', '/michiel_van_mens/who_is_who/index.php', 1);
$nav->addLevel2('Lezingen', '/michiel_van_mens/spreekbeurten/index.php', 1);
$nav->addLevel2('Vacatures', '/michiel_van_mens/Vacatures/index.php', 1);
$nav->addLevel1('Werk', '/Werk/index.php', 1);
$nav->addLevel2('Amsterdam Rai', '/Werk/RAI/index.php', 1);
$nav->addLevel2('Nederlands Rode kruis', '/Werk/NRK/index.php', 1);
$nav->addLevel2('Achmea Inkomens Verzekeringen', '/Werk/AIZ/index.php', 1);
$nav->addLevel2('Cito-groep', '/Werk/Cito/index.php', 1);
$nav->addLevel2('Opdrachtgevers', '/Werk/opdrachtgevers/index.php', 1);
$nav->addLevel1('Boeken', '/boeken/index.php');
$nav->addLevel2('The real world in real time', '/boeken/real_world/index.php', 1);
$nav->addLevel2('Klantenkaarten en klantprogramma\'s', '/boeken/klantenkaarten/index.php', 1);
$nav->addLevel2('Klanttevredenheid en loyaliteit', '/boeken/klanttevredenheid/index.php', 1);
$nav->addLevel2('Het managen van klanteninteractie', '/boeken/managen_klanteninteractie/index.php', 1);
$nav->addLevel2('Operationele marketing', '/boeken/operationele_marketing/index.php', 0);
$nav->addLevel3('Inhoudsopgave', '/boeken/operationele_marketing/inhoudsopgave/index.php', 1);
$nav->addLevel3('Simulatie', '/boeken/operationele_marketing/simulatie/index.php', 1);
$nav->addLevel1('Contact', '/contact/index.php', 1);
$nav->addLevel1('English', '/English/index.php', 1);
$nav->addLevel2('About Michiel van Mens', '/English/Michiel van Mens/index.php', 1);
$nav->addLevel2('Operational Marketing', '/English/Operational Marketing/index.php', 1);
$nav->addLevel2('Download first two chapters', '/English/Download first two chapters/index.php', 1);
$nav->addLevel2('Software Programs', '/English/Software Programs/index.php', 1);
$nav->addLevel3('screens', '/English/Software Programs/schermen/index.php', 1);
$nav->addLevel2('Books written by Michiel van Mens', '/English/Books written by Michiel van Mens/index.php', 1);
$nav->addLevel2('Workshops & Training Program', '/English/Workshops & Training/index.php', 1);
$nav->addLevel2('Lectures & Instructions', '/English/Lectures & Instructions/index.php', 1);
$nav->addLevel2('Consultancy', '/English/Consultancy/index.php', 1);
?>