[ Index ] |
|
Code source de Dolibarr 2.0.1 |
1 <?php 2 /* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org> 3 * Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net> 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program; if not, write to the Free Software 17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 18 * 19 * $Id: esprit.php,v 1.14 2005/10/31 17:38:13 eldy Exp $ 20 * $Source: /cvsroot/dolibarr/dolibarr/htdocs/includes/menus/barre_top/esprit.php,v $ 21 */ 22 23 /** 24 \file htdocs/includes/menus/barre_top/esprit.php 25 \brief Gestionnaire du menu du haut spécialisé vente de CD/livres 26 \version $Revision: 1.14 $ 27 28 \remarks La construction d'un gestionnaire pour le menu du haut est simple: 29 \remarks Toutes les entrées de menu à faire apparaitre dans la barre du haut 30 \remarks doivent être affichées par <a class="tmenu" href="...?mainmenu=...">...</a> 31 \remarks On peut éventuellement ajouter l'attribut id="sel" dans la balise <a> 32 \remarks quand il s'agit de l'entrée du menu qui est sélectionnée. 33 */ 34 35 36 /** 37 \class MenuTop 38 \brief Classe permettant la gestion du menu du haut Esprit 39 */ 40 41 class MenuTop { 42 43 var $require_left=array(); // Si doit etre en phase avec un gestionnaire de menu gauche particulier 44 var $atarget=""; // Valeur du target a utiliser dans les liens 45 46 47 /** 48 * \brief Constructeur 49 * \param db Handler d'accès base de donnée 50 */ 51 function MenuTop($db) 52 { 53 $this->db=$db; 54 } 55 56 57 /** 58 * \brief Affiche le menu 59 */ 60 function showmenu() 61 { 62 global $conf,$langs; 63 $langs->load("commercial"); 64 $langs->load("other"); 65 66 print '<table class="tmenu"><tr class="tmenu">'; 67 68 // Entrée home 69 print '<td class="tmenu"><a class="tmenu" href="'.DOL_URL_ROOT.'/index.php?mainmenu=home&leftmenu="'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("Home").'</a></td>'; 70 71 // Autres entrées 72 print '<td class="menu"><a class="tmenu" href="'.DOL_URL_ROOT.'/boutique/livre/"'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("Books").'</a></td>'; 73 print '<td class="menu"><a class="tmenu" href="'.DOL_URL_ROOT.'/boutique/client/"'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("Customers").'</a></td>'; 74 print '<td class="menu"><a class="tmenu" href="'.DOL_URL_ROOT.'/product/critiques/"'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("Criticals").'</a></td>'; 75 print '<td class="menu"><a class="tmenu" href="'.DOL_URL_ROOT.'/product/categorie/"'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("Categories").'</a></td>'; 76 77 print '</tr></table>'; 78 } 79 80 } 81 82 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Mon Nov 26 12:29:37 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |