PHP Classes

File: smarty_demo.php

Recommend this page to a friend!
  Classes of Sebastian D   PHP Menu class   smarty_demo.php   Download  
File: smarty_demo.php
Role: Example script
Content type: text/plain
Description: Example of usage with Smarty
Class: PHP Menu class
Create horizontal or vertical cascading menu
Author: By
Last change: update
Date: 21 years ago
Size: 683 bytes
 

Contents

Class file image Download
<?

/*
* Require a working Smarty Template Engine !
* For mor Info go to smarty.php.net
*
*******************************/


include("menu.class.php");

$menu = new menu();

$menu->add(1,'Start','','',3,20,80);
   
$menu->add('1_1','Beenden','','',0,20,80);
   
$menu->add('1_2','Einstellungen','','',0,20,80);
   
$menu->add('1_3','Programme','','',0,20,80);






//calculate NoOffFirstLineMenus
$menu->Init_NoOffFirstLineMenus();



//You can set the IMG location for the Arrows
//$menu->Set_ImgSrc('img/');


// you can set the Javascript location
//$menu->Set_JsSrc('js/');

$smarty->assign('menu',$menu);

$smarty->display('smarty_demo.tpl');

?>