PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of António Lourenço  >  PHP Nested Menu Class  >  index.php  >  Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Example
Class: PHP Nested Menu Class
Generate nested menu of HTML links
Author: By
Last change:
Date: 7 years ago
Size: 1,606 bytes
 

Contents

Class file image Download
<?php
/*
 * Lou_Menu.class
 * *Lou_index file
 * @author António Lourenço
 * version 1.0
 * 9/10/2014
 */

   
require_once("Lou_menu.class.php");
   
$menu = new MENU();
   
//$menu->openHtmlTest(); // this exists just for test the class.
    

   
$menu->addMenuName(HOME);
   
$menu->addMenuImg("Lou_imagem.php?category=HOME");
     
$menu->addSubMenu(Home,"index.php?","_top");
$menu->buildMenu();
   
$menu->addMenuName(Noticias);
   
$menu->addMenuImg("Lou_imagem.php?category=NOTICIAS");
     
$menu->addSubMenu(Hardware,"index.php?","_top");
   
$menu->addSubMenu(Software,"index.php?","_top");
   
$menu->addSubMenu(Mobile,"index.php?","_top");
   
$menu->addSubMenu(Internet,"index.php?","_top");
   
$menu->addSubMenu(App,"index.php?","_top");
   
$menu->addSubMenu(Tecnologia,"index.php?","_top");
   
$menu->addSubMenu(Jogos,"index.php?","_top");
$menu->buildMenu();


$menu->addMenuName(LOGIN);
   
$menu->addMenuImg("Lou_imagem.php?category=LOGIN");
   
$menu->addSubMenu(login,"index.php?","_top");
   
$menu->addSubMenu(Registo,"index.php?","_top");
   
$menu->addSubMenu(EsqueceuSenha,"index.php?","_top");
$menu->buildMenu();
   
$menu->addMenuName(Contactos);
     
$menu->addMenuImg("Lou_imagem.php?category=CONTACTOS");
     
$menu->addSubMenu(Contactos,"index.php?","_top");
$menu->buildMenu();
   
/* --------------------------- */
    // Show all builded menu.
   
@$menu->showMenu($_GET['selected_menu']); // this parameter maintain menu on the opened one!
    /* --------------------------- */
    //@$menu->closeHtmlTest($_GET["argument"]);
 
?>
</fieldset>


For more information send a message to info at phpclasses dot org.