Subversion Repositories Applications.papyrus

Compare Revisions

Ignore whitespace Rev 447 → Rev 448

/trunk/papyrus/applettes/menu/menu.php
19,7 → 19,7
// | License along with this library; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
// +------------------------------------------------------------------------------------------------------+
// CVS : $Id: menu.php,v 1.20 2005-05-27 14:56:51 alex Exp $
// CVS : $Id: menu.php,v 1.21 2005-09-22 14:02:49 ddelon Exp $
/**
* Applette : menu
*
38,7 → 38,7
//Autres auteurs :
*@author Aucun
*@copyright Tela-Botanica 2000-2004
*@version $Revision: 1.20 $ $Date: 2005-05-27 14:56:51 $
*@version $Revision: 1.21 $ $Date: 2005-09-22 14:02:49 $
// +------------------------------------------------------------------------------------------------------+
*/
 
75,7 → 75,9
// Initialisation de variable.
$objet_pear_db = $_GEN_commun['pear_db'];
$id_site = $_GEN_commun['info_site']->gs_id_site;
$id_menu = $_GEN_commun['info_menu']->gm_id_menu;
if (isset($_GEN_commun['info_menu'])) {
$id_menu = $_GEN_commun['info_menu']->gm_id_menu;
}
$num_menu = $GLOBALS['_PAPYRUS_']['applette']['comptage'][$GLOBALS['_MENU_']['nom_fonction']];
$id_langue = $_GEN_commun['i18n'];
$i18n_url = '';// Evite d'écrire l'i18n dans l'url demandée.
300,18 → 302,19
(DB::isError($resultat_fils))
? die(BOG_afficherErreurSql(__FILE__, __LINE__, $resultat_fils->getMessage(), $requete_fils))
: '';
if ($resultat_fils->numRows() != 0 && $ligne->gm_id_menu == $GLOBALS['_GEN_commun']['info_menu']->gm_id_menu
|| GEN_etreAncetre($ligne->gm_id_menu, $GLOBALS['_GEN_commun']['info_menu']->gm_id_menu) || $menu_type == 'deroulant') {
$niveau_actuel++;
$corps .= afficherListeNiveauMultiple( $objet_pear_db, $id_site, $id_langue, $i18n_url, $niveau_depart,
$profondeur, $ligne->gm_id_menu, ($position + 3), $menu_type,
null, null, $_GEN_commun, $num_menu);
// On ramène $niveau_actuel un cran plus bas
$niveau_actuel--;
}
if (isset($_GEN_commun['info_menu'])) {
if ($resultat_fils->numRows() != 0 && $ligne->gm_id_menu == $GLOBALS['_GEN_commun']['info_menu']->gm_id_menu
|| GEN_etreAncetre($ligne->gm_id_menu, $GLOBALS['_GEN_commun']['info_menu']->gm_id_menu) || $menu_type == 'deroulant') {
$niveau_actuel++;
$corps .= afficherListeNiveauMultiple( $objet_pear_db, $id_site, $id_langue, $i18n_url, $niveau_depart,
$profondeur, $ligne->gm_id_menu, ($position + 3), $menu_type,
null, null, $_GEN_commun, $num_menu);
// On ramène $niveau_actuel un cran plus bas
$niveau_actuel--;
}
}
if ($niveau_actuel >= $niveau_depart && $niveau_actuel <= $profondeur) {
$corps .= str_repeat(' ', $indent_origine + ($indent_pas * ($position + 2))).'</li>'."\n";
}
388,6 → 391,9
/* +--Fin du code ----------------------------------------------------------------------------------------+
*
* $Log: not supported by cvs2svn $
* Revision 1.20 2005/05/27 14:56:51 alex
* correction de bug d'affichage des menus communs
*
* Revision 1.19 2005/05/27 10:23:00 jpm
* Modification du style des raccourcis.
*