array('liadd'=>null, 'href'=>'istanze.php', 'title'=>'Istanze', 'selected'=>false, 'submenu'=> array( 'aggiungi'=>array('liadd'=>null, 'href'=>'editinst?m=new', 'title'=>'Aggiungi', 'selected'=>false, 'submenu'=>null), ) ), 'blacklist'=>array('liadd'=>null, 'href'=>'#', 'title'=>'Blacklist', 'selected'=>false, 'submenu'=>null), 'magari'=>array('liadd'=>null, 'href'=>'#', 'title'=>'Chissà', 'selected'=>false, 'submenu'=>null), 'forse'=>array('liadd'=>null, 'href'=>'#', 'title'=>'Forse', 'selected'=>false, 'submenu'=>null) ); /*
  • Guide
  • Instances
  • About us
  • Language
  • */ $menuout=''; function buildmenu($menu) { global $menuout; foreach ($menu as $key=>$arr) { $menuout.=''.$arr['title'].''; else $menuout.=$arr['title']; if (!is_null($arr['submenu'])) { // qui bisognerebbe aggiungere che a seconda del "livello" imposta class giusta: ula, oppure ulb per livello > 1 $menuout.=N.''.N; } $menuout.=''.N; } } ?>