Login   Register  
PHP Classes
elePHPant
Icontem

File: fClassHTML/example/menuFolderIcon/index.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Dario Mazzeo  >  fClassHTML  >  fClassHTML/example/menuFolderIcon/index.php  >  Download  
File: fClassHTML/example/menuFolderIcon/index.php
Role: Example script
Content type: text/plain
Description: Esempio di mený con icone
Class: fClassHTML
Display composite Web page elements
Author: By
Last change: Implementato il metodo setConversion.
Implemented setConversion method.
Date: 6 years ago
Size: 1,175 bytes
 

Contents

Class file image Download
<?php
//Esempio di pagina con mený a icone

// file richiesti
// richiede le classi sClassHTML
include (realpath(dirname(__FILE__).'../../../../sClassHTML/sClassHTML.php'));
include (
realpath(dirname(__FILE__).'../../../fClassHTML.php'));

// creazione pagina
$mypage = new sHtml("Benvenuto");

// aggiunta Css alla pagina
$mypage->addCss('../../css/menuFolder.css');

// contenitore menuCartella
$dati[]=array('titolo1''link1.php?id=1234''../../icons/link.gif''link1');
$dati[]=array('titolo2''link2.php''../../icons/link.gif''link2');
$dati[]=array('titolo3''link3.php''../../icons/link.gif''link3');
$dati[]=array('titolo4''link4.php''../../icons/link.gif''link4');
$contCartella = new menuFolderIcon("Titolo"$dati'menuFolder'false);
//$contCartella = new menuFolderIcon("Titolo", $dati);

// aggiunta di altri link
$dati2[]=array('titolo1''link1.php?id=5678''../../icons/link.gif''link1');
$dati2[]=array('titolo2''link2.php''../../icons/link.gif''link2');
$contCartella->addFields($dati2"_link2");

// aggiunta alla pagina
$mypage->addObj($contCartella);

// stampa pagina HTML
echo $mypage;
?>