Line 17... |
Line 17... |
17 |
// | |
|
17 |
// | |
|
18 |
// | You should have received a copy of the GNU Lesser General Public |
|
18 |
// | You should have received a copy of the GNU Lesser General Public |
|
19 |
// | License along with this library; if not, write to the Free Software |
|
19 |
// | License along with this library; if not, write to the Free Software |
|
20 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
20 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
21 |
// +------------------------------------------------------------------------------------------------------+
|
21 |
// +------------------------------------------------------------------------------------------------------+
|
22 |
// CVS : $Id: vous_etes_ici.php,v 1.8 2005-09-26 20:18:27 ddelon Exp $
|
22 |
// CVS : $Id: vous_etes_ici.php,v 1.9 2006-03-02 10:49:49 ddelon Exp $
|
23 |
/**
|
23 |
/**
|
24 |
* Applette : Vous Etes Ici
|
24 |
* Applette : Vous Etes Ici
|
25 |
*
|
25 |
*
|
26 |
* Affiche les liens contenant la suite des menus visités pour arriver
|
26 |
* Affiche les liens contenant la suite des menus visités pour arriver
|
27 |
* au menu courant visioné par l'utilisateur.
|
27 |
* au menu courant visioné par l'utilisateur.
|
Line 37... |
Line 37... |
37 |
//Auteur original :
|
37 |
//Auteur original :
|
38 |
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org>
|
38 |
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org>
|
39 |
//Autres auteurs :
|
39 |
//Autres auteurs :
|
40 |
*@author Aucun
|
40 |
*@author Aucun
|
41 |
*@copyright Tela-Botanica 2000-2004
|
41 |
*@copyright Tela-Botanica 2000-2004
|
42 |
*@version $Revision: 1.8 $ $Date: 2005-09-26 20:18:27 $
|
42 |
*@version $Revision: 1.9 $ $Date: 2006-03-02 10:49:49 $
|
43 |
// +------------------------------------------------------------------------------------------------------+
|
43 |
// +------------------------------------------------------------------------------------------------------+
|
44 |
*/
|
44 |
*/
|
Line 45... |
Line 45... |
45 |
|
45 |
|
46 |
// +------------------------------------------------------------------------------------------------------+
|
46 |
// +------------------------------------------------------------------------------------------------------+
|
Line 96... |
Line 96... |
96 |
return $vei;
|
96 |
return $vei;
|
97 |
}
|
97 |
}
|
Line 98... |
Line 98... |
98 |
|
98 |
|
99 |
// Début contruction du vei
|
99 |
// Début contruction du vei
|
100 |
$menu_pere_id = GEN_lireIdentifiantMenuPere($menu_courant_id, $objet_pear_db);
|
100 |
$menu_pere_id = GEN_lireIdentifiantMenuPere($menu_courant_id, $objet_pear_db);
|
- |
|
101 |
// Récupération des infos sur sur l'entrée du menu à afficher
|
- |
|
102 |
|
- |
|
103 |
// GEN_I18N_ID_DEFAUT;
|
- |
|
104 |
|
- |
|
105 |
|
- |
|
106 |
$id_langue = $GLOBALS['_GEN_commun']['i18n'];
|
- |
|
107 |
|
- |
|
108 |
if (isset($id_langue) && ($id_langue!='')) {
|
- |
|
109 |
$langue_test=$id_langue;
|
- |
|
110 |
} else {
|
- |
|
111 |
$langue_test=GEN_I18N_ID_DEFAUT;
|
- |
|
112 |
}
|
- |
|
113 |
|
- |
|
114 |
$requete_traduction = 'SELECT gmr_id_menu_02, gm_ce_i18n '.
|
- |
|
115 |
'FROM gen_menu_relation, gen_menu '.
|
- |
|
116 |
'WHERE '.$menu_courant_id.' = gmr_id_menu_01 ' .
|
- |
|
117 |
'AND gmr_id_menu_02 = gm_id_menu '.
|
- |
|
118 |
'AND gmr_id_valeur = 2 '.// 2 = "avoir traduction"
|
- |
|
119 |
'AND gm_ce_i18n = "'.$langue_test.'" ';
|
- |
|
120 |
$resultat_traduction = $objet_pear_db->query($requete_traduction);
|
- |
|
121 |
(DB::isError($resultat_traduction)) ? die(BOG_afficherErreurSql(__FILE__, __LINE__, $resultat_traduction->getMessage(), $requete_traduction))
|
- |
|
122 |
: '';
|
- |
|
123 |
|
- |
|
124 |
if ($resultat_traduction->numRows() > 0) {
|
- |
|
125 |
$ligne_resultat_traduction=$resultat_traduction->fetchRow(DB_FETCHMODE_ASSOC);
|
- |
|
126 |
$menu_courant_id=$ligne_resultat_traduction['gmr_id_menu_02'];
|
- |
|
127 |
}
|
101 |
// Récupération des infos sur sur l'entrée du menu à afficher
|
128 |
|
102 |
$menu_info = GEN_lireInfoMenu($objet_pear_db, $menu_courant_id, DB_FETCHMODE_ASSOC);
|
129 |
$menu_info = GEN_lireInfoMenu($objet_pear_db, $menu_courant_id, DB_FETCHMODE_ASSOC);
|
103 |
// Préparation d'une entrée dans la liste du menu
|
130 |
// Préparation d'une entrée dans la liste du menu
|
104 |
$menu_nom = htmlentities($menu_info['gm_nom']);
|
131 |
$menu_nom = htmlentities($menu_info['gm_nom']);
|
105 |
$menu_hreflang = htmlentities($menu_info['gm_ce_i18n']);
|
132 |
$menu_hreflang = htmlentities($menu_info['gm_ce_i18n']);
|
Line 160... |
Line 187... |
160 |
|
187 |
|
161 |
|
188 |
|
162 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
189 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
- |
|
190 |
*
|
- |
|
191 |
* $Log: not supported by cvs2svn $
|
- |
|
192 |
* Revision 1.8.2.1 2006/02/28 14:02:10 ddelon
|
- |
|
193 |
* Finition multilinguisme
|
- |
|
194 |
*
|
- |
|
195 |
* Revision 1.8 2005/09/26 20:18:27 ddelon
|
163 |
*
|
196 |
* Appli projet : php5 et generalisation
|
164 |
* $Log: not supported by cvs2svn $
|
197 |
*
|
165 |
* Revision 1.7 2005/09/23 14:21:18 florian
|
198 |
* Revision 1.7 2005/09/23 14:21:18 florian
|
166 |
* compatibilité XHTML
|
199 |
* compatibilité XHTML
|
167 |
*
|
200 |
*
|