Subversion Repositories Applications.papyrus

Rev

Rev 1336 | Rev 2076 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1336 Rev 1342
Line 19... Line 19...
19
// | You should have received a copy of the GNU Lesser General Public                                     |
19
// | You should have received a copy of the GNU Lesser General Public                                     |
20
// | License along with this library; if not, write to the Free Software                                  |
20
// | License along with this library; if not, write to the Free Software                                  |
21
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
21
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
22
// |                                                                                                      |
22
// |                                                                                                      |
23
// +------------------------------------------------------------------------------------------------------+
23
// +------------------------------------------------------------------------------------------------------+
24
// CVS : $Id: pap_initialise_info.inc.php,v 1.30 2007-04-19 15:34:35 neiluj Exp $
24
// CVS : $Id: pap_initialise_info.inc.php,v 1.31 2007-04-19 16:54:52 ddelon Exp $
25
/**
25
/**
26
*Initialisation de Papyrus : vérification et récupération de paramètres généraux.
26
*Initialisation de Papyrus : vérification et récupération de paramètres généraux.
27
*
27
*
28
* La page contient le code initialisant l'exécution du rendu d'une page par Papyrus.
28
* La page contient le code initialisant l'exécution du rendu d'une page par Papyrus.
29
* Nous y trouvons la recherche des informations disponibles sur :
29
* Nous y trouvons la recherche des informations disponibles sur :
Line 39... Line 39...
39
*@author            Jean-Pascal MILCENT <jpm@tela-botanica.org>
39
*@author            Jean-Pascal MILCENT <jpm@tela-botanica.org>
40
//Autres auteurs :
40
//Autres auteurs :
41
*@author            Alexandre GRANIER <alex@tela-botanica.org>
41
*@author            Alexandre GRANIER <alex@tela-botanica.org>
42
*@author            Laurent COUDOUNEAU <laurent.coudouneau@ema.fr>
42
*@author            Laurent COUDOUNEAU <laurent.coudouneau@ema.fr>
43
*@copyright         Tela-Botanica 2000-2004
43
*@copyright         Tela-Botanica 2000-2004
44
*@version           $Revision: 1.30 $ $Date: 2007-04-19 15:34:35 $
44
*@version           $Revision: 1.31 $ $Date: 2007-04-19 16:54:52 $
45
// +------------------------------------------------------------------------------------------------------+
45
// +------------------------------------------------------------------------------------------------------+
46
*/
46
*/
Line 47... Line 47...
47
 
47
 
48
// +------------------------------------------------------------------------------------------------------+
48
// +------------------------------------------------------------------------------------------------------+
Line 329... Line 329...
329
// Gestion des traductions
329
// Gestion des traductions
Line 330... Line 330...
330
 
330
 
331
// Si le résultat de la négociation de l'internationalisation donne une langue différente
331
// Si le résultat de la négociation de l'internationalisation donne une langue différente
Line 332... Line 332...
332
//  de celle du site principal, nous récupérons les éventuelles valeurs traduite pour le site.
332
//  de celle du site principal, nous récupérons les éventuelles valeurs traduite pour le site.
-
 
333
 
-
 
334
$id_langue = $GLOBALS['_GEN_commun']['i18n'];
-
 
335
 
-
 
336
if (isset($id_langue) && ($id_langue!='')) {
-
 
337
       $langue_test=$id_langue;
-
 
338
} else {
-
 
339
       $langue_test=GEN_I18N_ID_DEFAUT;
-
 
340
}
333
 
341
 
334
if ($_GEN_commun['i18n'] != $_GEN_commun['info_site']->gs_ce_i18n) {
342
if ($langue_test!=GEN_I18N_ID_DEFAUT) {
335
    // Récupération des informations sur la traduction du site
343
    // Récupération des informations sur la traduction du site
336
    $requete =  'SELECT * '.
344
    $requete =  'SELECT * '.
-
 
345
                'FROM gen_site '.
-
 
346
                'WHERE gs_ce_i18n = "'.$langue_test.'" '.
337
                'FROM gen_site '.
347
                'AND gs_code_num = "'.$_GEN_commun['info_site']->gs_code_num.'"';
338
                'WHERE gs_ce_i18n = "'.$_GEN_commun['i18n'].'"'; 
348
                
Line 339... Line 349...
339
//                'WHERE gs_ce_i18n = "'.$_GEN_commun['i18n'].'" '.
349
//                'WHERE gs_ce_i18n = "'.$_GEN_commun['i18n'].'" '.
340
//                'AND gs_code_alpha = "'.$_GEN_commun['info_site']->gs_code_alpha.'"';
350
//                'AND gs_code_alpha = "'.$_GEN_commun['info_site']->gs_code_alpha.'"';
Line 351... Line 361...
351
}
361
}
Line 352... Line 362...
352
 
362
 
353
// Si le résultat de la négociation de l'internationalisation donne une langue différente
363
// Si le résultat de la négociation de l'internationalisation donne une langue différente
Line 354... Line 364...
354
//  de celle du menu, nous récupérons les éventuelles valeurs traduite pour le menu.
364
//  de celle du menu, nous récupérons les éventuelles valeurs traduite pour le menu.
355
 
365
 
356
if ((isset($_GEN_commun['info_menu'])) && ($_GEN_commun['i18n'] != $_GEN_commun['info_menu']->gm_ce_i18n)) {
366
if ($langue_test!=GEN_I18N_ID_DEFAUT) {
357
    // Récupération des informations sur la traduction du menu
367
    // Récupération des informations sur la traduction du menu
358
    $requete =  'SELECT * '.
368
    $requete =  'SELECT * '.
-
 
369
                'FROM gen_menu '.
359
                'FROM gen_menu '.
370
                'WHERE gm_ce_i18n = "'.$langue_test.'" '.
360
                'WHERE gm_ce_i18n = "'.$_GEN_commun['i18n'].'" ;';
371
                'AND gm_code_num = "'.$_GEN_commun['info_menu']->gm_code_num.'"';
Line 361... Line 372...
361
//                'WHERE gm_ce_i18n = "'.$_GEN_commun['i18n'].'" '.
372
//                'WHERE gm_ce_i18n = "'.$_GEN_commun['i18n'].'" '.
362
//                'AND gm_code_alpha = "'.$_GEN_commun['info_menu']->gm_code_alpha.'"';
373
//                'AND gm_code_alpha = "'.$_GEN_commun['info_menu']->gm_code_alpha.'"';
Line 484... Line 495...
484
    $_GEN_commun['url']->addQueryString(GEN_URL_CLE_FORMAT, $_GEN_commun['url_format']);
495
    $_GEN_commun['url']->addQueryString(GEN_URL_CLE_FORMAT, $_GEN_commun['url_format']);
485
}
496
}
Line 486... Line 497...
486
 
497
 
487
/* +--Fin du code ---------------------------------------------------------------------------------------+
498
/* +--Fin du code ---------------------------------------------------------------------------------------+
-
 
499
* $Log: not supported by cvs2svn $
-
 
500
* Revision 1.30  2007/04/19 15:34:35  neiluj
-
 
501
* préparration release (livraison) "Narmer" - v0.25
488
* $Log: not supported by cvs2svn $
502
*
489
* Revision 1.29  2007/04/13 09:41:09  neiluj
503
* Revision 1.29  2007/04/13 09:41:09  neiluj
490
* réparration cvs
504
* réparration cvs
491
*
505
*
492
* Revision 1.28  2006/12/01 15:41:21  ddelon
506
* Revision 1.28  2006/12/01 15:41:21  ddelon