Modif gestionnaires menu pour accepter des tables dans le libellé menu gauche

This commit is contained in:
Laurent Destailleur 2008-01-26 17:39:45 +00:00
parent 195ac7f8c4
commit dccf9a2cc2
5 changed files with 25 additions and 17 deletions

View File

@ -1,5 +1,6 @@
<?php <?php
/* Copyright (C) 2007 Patrick Raguin <patrick.raguin@gmail.com> /* Copyright (C) 2007 Patrick Raguin <patrick.raguin@gmail.com>
* Copyright (C) 2007-2008 Laurent Destailleur <eldy@users.sourceforge.net>
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
@ -14,14 +15,12 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* $Id$
*/ */
/** /**
\file htdocs/includes/menus/barre_left/auguria_backoffice.php \file htdocs/includes/menus/barre_left/auguria_backoffice.php
\brief Gestionnaire du menu du gauche Auguria \brief Gestionnaire du menu du gauche Auguria
\version $Revision$ \version $Id$
\remarks La construction d'un gestionnaire pour le menu de gauche est simple: \remarks La construction d'un gestionnaire pour le menu de gauche est simple:
\remarks A l'aide d'un objet $newmenu=new Menu() et des méthode add et add_submenu, \remarks A l'aide d'un objet $newmenu=new Menu() et des méthode add et add_submenu,

View File

@ -1,5 +1,6 @@
<?php <?php
/* Copyright (C) 2007 Patrick Raguin <patrick.raguin@gmail.com> /* Copyright (C) 2007 Patrick Raguin <patrick.raguin@gmail.com>
* Copyright (C) 2007-2008 Laurent Destailleur <eldy@users.sourceforge.net>
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
@ -14,14 +15,12 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* $Id$
*/ */
/** /**
\file htdocs/includes/menus/barre_left/auguria_frontoffice.php \file htdocs/includes/menus/barre_left/auguria_frontoffice.php
\brief Gestionnaire du menu du gauche Auguria \brief Gestionnaire du menu du gauche Auguria
\version $Revision$ \version $Id$
\remarks La construction d'un gestionnaire pour le menu de gauche est simple: \remarks La construction d'un gestionnaire pour le menu de gauche est simple:
\remarks A l'aide d'un objet $newmenu=new Menu() et des méthode add et add_submenu, \remarks A l'aide d'un objet $newmenu=new Menu() et des méthode add et add_submenu,

View File

@ -14,14 +14,12 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* $Id$
*/ */
/** /**
\file htdocs/includes/menus/barre_left/eldy_backoffice.php \file htdocs/includes/menus/barre_left/eldy_backoffice.php
\brief Gestionnaire du menu du gauche Eldy \brief Gestionnaire du menu du gauche Eldy
\version $Revision$ \version $Id$
\remarks La construction d'un gestionnaire pour le menu de gauche est simple: \remarks La construction d'un gestionnaire pour le menu de gauche est simple:
\remarks A l'aide d'un objet $newmenu=new Menu() et des méthode add et add_submenu, \remarks A l'aide d'un objet $newmenu=new Menu() et des méthode add et add_submenu,
@ -902,7 +900,11 @@ class MenuLeft {
{ {
if ($this->menu_array[$i]['enabled']) if ($this->menu_array[$i]['enabled'])
{ {
print '<a class="vsmenu" href="'.$this->menu_array[$i]['url'].'"'.($this->menu_array[$i]['target']?' target="'.$this->menu_array[$i]['target'].'"':'').'>'.$this->menu_array[$i]['titre'].'</a><br>'; print '<a class="vsmenu" href="'.$this->menu_array[$i]['url'].'"'.($this->menu_array[$i]['target']?' target="'.$this->menu_array[$i]['target'].'"':'').'>';
print $this->menu_array[$i]['titre'];
print '</a>';
// If title is not pure text and contains a table, no carriage return added
if (! strstr($this->menu_array[$i]['titre'],'<table')) print '<br>';
} }
else else
{ {

View File

@ -872,7 +872,11 @@ class MenuLeft {
{ {
if ($this->menu_array[$i]['enabled']) if ($this->menu_array[$i]['enabled'])
{ {
print '<a class="vsmenu" href="'.$this->menu_array[$i]['url'].'"'.($this->menu_array[$i]['target']?' target="'.$this->menu_array[$i]['target'].'"':'').'>'.$this->menu_array[$i]['titre'].'</a><br>'; print '<a class="vsmenu" href="'.$this->menu_array[$i]['url'].'"'.($this->menu_array[$i]['target']?' target="'.$this->menu_array[$i]['target'].'"':'').'>';
print $this->menu_array[$i]['titre'];
print '</a>';
// If title is not pure text and contains a table, no carriage return added
if (! strstr($this->menu_array[$i]['titre'],'<table')) print '<br>';
} }
else else
{ {

View File

@ -14,13 +14,11 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* $Id$
*/ */
/** \file htdocs/includes/menus/barre_left/rodolphe.php /** \file htdocs/includes/menus/barre_left/rodolphe.php
\brief Gestionnaire par défaut du menu de gauche \brief Gestionnaire par défaut du menu de gauche
\version $Revision$ \version $Id$
\remarks La construction d'un gestionnaire pour le menu de gauche est simple: \remarks La construction d'un gestionnaire pour le menu de gauche est simple:
\remarks A l'aide d'un objet $newmenu=new Menu() et des méthode add et add_submenu, \remarks A l'aide d'un objet $newmenu=new Menu() et des méthode add et add_submenu,
@ -77,13 +75,19 @@ class MenuLeft {
} }
if ($this->menu_array[$i]['level']==0) { if ($this->menu_array[$i]['level']==0) {
print '<a class="vmenu" href="'.$this->menu_array[$i]['url'].'">'.$this->menu_array[$i]['titre'].'</a><br>'; print '<a class="vmenu" href="'.$this->menu_array[$i]['url'].'">'.$this->menu_array[$i]['titre'].'</a>';
// If title is not pure text and contains a table, no carriage return added
if (! strstr($this->menu_array[$i]['titre'],'<table')) print '<br>';
} }
if ($this->menu_array[$i]['level']==1) { if ($this->menu_array[$i]['level']==1) {
print '<a class="vsmenu" href="'.$this->menu_array[$i]['url'].'">'.$this->menu_array[$i]['titre'].'</a><br>'; print '<a class="vsmenu" href="'.$this->menu_array[$i]['url'].'">'.$this->menu_array[$i]['titre'].'</a>';
// If title is not pure text and contains a table, no carriage return added
if (! strstr($this->menu_array[$i]['titre'],'<table')) print '<br>';
} }
if ($this->menu_array[$i]['level']==2) { if ($this->menu_array[$i]['level']==2) {
print '&nbsp; &nbsp; <a class="vsmenu" href="'.$this->menu_array[$i]['url'].'">'.$this->menu_array[$i]['titre'].'</a><br>'; print '&nbsp; &nbsp; <a class="vsmenu" href="'.$this->menu_array[$i]['url'].'">'.$this->menu_array[$i]['titre'].'</a>';
// If title is not pure text and contains a table, no carriage return added
if (! strstr($this->menu_array[$i]['titre'],'<table')) print '<br>';
} }
if ($i == (sizeof($this->menu_array)-1) || $this->menu_array[$i+1]['level']==0) { if ($i == (sizeof($this->menu_array)-1) || $this->menu_array[$i+1]['level']==0) {