Login   Register  
PHP Classes
elePHPant
Icontem

File: smarty_demo.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Sebastian D  >  menu.class.php  >  smarty_demo.php  >  Download  
File: smarty_demo.php
Role: Example script
Content type: text/plain
Description: Example of usage with Smarty
Class: menu.class.php
Create horizontal or vertical cascading menu
Author: By
Last change: update
Date: 10 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');

?>