<?php
/*
Example of use of Menu
@author Seyyed Mehdi Safavy
eCreate Aug 2007
LGPL
*/
require_once ("FlexMenuMaker.Class.php");
$menu= Array (
"Home" => array ("Name"=>"Home","Title"=>"Go To Home Page In New Window","Link"=>"index.php","Tag"=>"background='menutop.jpg'","Target"=>0),
"News" => array ("Name"=>"News","Title"=>"Latest News","Link"=>"news.php?cat=1","Tag"=>"background='bottom_label.gif'","Target"=>1),
"Users" => array ("Name"=>"User Login","Title"=>"For Members to Login","Link"=>"Login.php","Tag"=>"background='bottom_label.gif'","Target"=>1),
"Products" => array ("Name"=>"Products","Title"=>"Visit Our Products","Link"=>"Products.php","Tag"=>"background='bottom_label.gif'","Target"=>1),
"About" => array ("Name"=>"About Us","Title"=>"Know More About Safavi!.","Link"=>"About.html","Tag"=>"background='bottom_label.gif'","Target"=>0)
);
$R_Menu=New Menu;
$R_Menu->align=3;//menu position in page
$R_Menu->ItemAlign="center";
$R_Menu->menu_type=2;
$R_Menu->dir="ltr";
$R_Menu->width="300";
$R_Menu->show($menu);
echo "<BR><BR><BR><center>Menu Two By a Little Change</center>";
$R_Menu->width="100";
$R_Menu->menu_type=1;
$R_Menu->show($menu);
?>
|