Login   Register  
PHP Classes
elePHPant
Icontem

File: index.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Sergio Avila  >  StyleMenu  >  index.php  >  Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Init File
Class: StyleMenu
Menus with Style
Author: By
Last change: delete include( INCLUDE_PATH.'functions.inc' );
Date: 12 years ago
Size: 1,345 bytes
 

Contents

Class file image Download
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<html>
<head>
  <title>EVotoXXL Web</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  <meta name="GENERATOR" content="Quanta Plus">
  <link rel="Stylesheet" href="style.css" type="text/css">
</head>
<body>

<!--
 PHP Classes    : Table Menu, Block Menu, Item Menu
 Version        : 0.1 - rev. 0
 Author         : Sergio Avila
 E-mail         : sergio@evoto.org
 Descripcion    : Ejemplo de uso de clases con PHP
-->

<?php
        define
'HOME_PAGE''index.php' );
        
define'DOCUMENT_ROOT''./' );
        
define'CLASS_PATH'DOCUMENT_ROOT.'' );
        
define'INCLUDE_PATH'DOCUMENT_ROOT.'' );
        
define'IMAGES_PATH'DOCUMENT_ROOT.'' );

        
define'DECOR_ITEM_DEFAULT'IMAGES_PATH.'arrowblue.gif' );

        require_once( 
CLASS_PATH.'item_menu.php' );
        require_once( 
CLASS_PATH.'block_menu.php' );
        require_once( 
CLASS_PATH.'table_menu.php' );

        include( 
INCLUDE_PATH.'menus.inc' );

        print 
$menu_1->build_block_menu();
        print 
$menu_2->build_block_menu();
        print 
$menu_3->build_block_menu();

        print 
$menu_1->build_table_menu();
        print 
$menu_2->build_table_menu();
        print 
$menu_3->build_table_menu();

?>

</body>
</html>