| Line 38... |
Line 38... |
| 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 Alexandre GRANIER <alexandre@tela-botanica.org>
|
40 |
*@author Alexandre GRANIER <alexandre@tela-botanica.org>
|
| 41 |
*@author Laurent COUDOUNEAU <lc@gsite.org>
|
41 |
*@author Laurent COUDOUNEAU <lc@gsite.org>
|
| 42 |
*@copyright Tela-Botanica 2000-2004
|
42 |
*@copyright Tela-Botanica 2000-2004
|
| 43 |
*@version $Revision: 1.10 $ $Date: 2006-03-02 10:49:49 $
|
43 |
*@version $Revision: 1.11 $ $Date: 2006-03-15 23:35:25 $
|
| 44 |
// +------------------------------------------------------------------------------------------------------+
|
44 |
// +------------------------------------------------------------------------------------------------------+
|
| 45 |
//
|
45 |
//
|
| 46 |
// $Id: admin_site.php,v 1.10 2006-03-02 10:49:49 ddelon Exp $
|
46 |
// $Id: admin_site.php,v 1.11 2006-03-15 23:35:25 ddelon Exp $
|
| 47 |
// FICHIER : $RCSfile: admin_site.php,v $
|
47 |
// FICHIER : $RCSfile: admin_site.php,v $
|
| 48 |
// AUTEUR : $Author: ddelon $
|
48 |
// AUTEUR : $Author: ddelon $
|
| 49 |
// VERSION : $Revision: 1.10 $
|
49 |
// VERSION : $Revision: 1.11 $
|
| 50 |
// DATE : $Date: 2006-03-02 10:49:49 $
|
50 |
// DATE : $Date: 2006-03-15 23:35:25 $
|
| 51 |
// +------------------------------------------------------------------------------------------------------+
|
51 |
// +------------------------------------------------------------------------------------------------------+
|
| 52 |
**/
|
52 |
**/
|
| 53 |
// +------------------------------------------------------------------------------------------------------+
|
53 |
// +------------------------------------------------------------------------------------------------------+
|
| 54 |
// | ENTÊTE du PROGRAMME |
|
54 |
// | ENTÊTE du PROGRAMME |
|
| 55 |
// +------------------------------------------------------------------------------------------------------+
|
55 |
// +------------------------------------------------------------------------------------------------------+
|
| Line 68... |
Line 68... |
| 68 |
require_once ADSI_CHEMIN_LANGUE.'adsi_langue_'.ADSI_I18N_DEFAUT.'.inc.php';
|
68 |
require_once ADSI_CHEMIN_LANGUE.'adsi_langue_'.ADSI_I18N_DEFAUT.'.inc.php';
|
| 69 |
}
|
69 |
}
|
| Line 70... |
Line 70... |
| 70 |
|
70 |
|
| 71 |
/** Inclusion de la bibliothèque PEAR de conception de formulaire.*/
|
71 |
/** Inclusion de la bibliothèque PEAR de conception de formulaire.*/
|
| - |
|
72 |
require_once ADSI_CHEMIN_BIBLIOTHEQUE_PEAR.'HTML/QuickForm.php';
|
| - |
|
73 |
require_once ADSI_CHEMIN_BIBLIOTHEQUE_PEAR.'HTML/QuickForm/element.php';
|
| Line 72... |
Line 74... |
| 72 |
require_once ADSI_CHEMIN_BIBLIOTHEQUE_PEAR.'HTML/QuickForm.php';
|
74 |
|
| 73 |
|
75 |
|
| Line 74... |
Line 76... |
| 74 |
/** Inclusion de l'API de fonctions gérant les erreurs sql.*/
|
76 |
/** Inclusion de l'API de fonctions gérant les erreurs sql.*/
|
| Line 139... |
Line 141... |
| 139 |
$objet_pear_auth =& $GLOBALS['_GEN_commun']['pear_auth'];
|
141 |
$objet_pear_auth =& $GLOBALS['_GEN_commun']['pear_auth'];
|
| 140 |
// +----------------------------------------------------------------------------------------------+
|
142 |
// +----------------------------------------------------------------------------------------------+
|
| 141 |
// Gestion de l'URL pour revenir sur le menu courant.
|
143 |
// Gestion de l'URL pour revenir sur le menu courant.
|
| 142 |
$url = $GLOBALS['_GEN_commun']['url']->getUrl();
|
144 |
$url = $GLOBALS['_GEN_commun']['url']->getUrl();
|
| 143 |
// +----------------------------------------------------------------------------------------------+
|
145 |
// +----------------------------------------------------------------------------------------------+
|
| 144 |
// Gestion de la langue de l'interface.
|
- |
|
| 145 |
$id_langue = $GLOBALS['_GEN_commun']['url_i18n'];
|
- |
|
| 146 |
|
- |
|
| 147 |
if ($objet_pear_auth->getAuth()) {
|
146 |
if ($objet_pear_auth->getAuth()) {
|
| 148 |
// +----------------------------------------------------------------------------------------------+
|
147 |
// +----------------------------------------------------------------------------------------------+
|
| 149 |
// Initialisation des variables.
|
148 |
// Initialisation des variables.
|
| 150 |
$sortie_xhtml = '';// Le XHTML à renvoyer.// Ancien nom : $outputText
|
149 |
$sortie_xhtml = '';// Le XHTML à renvoyer.// Ancien nom : $outputText
|
| 151 |
$msg = '';
|
150 |
$msg = '';
|
| Line 250... |
Line 249... |
| 250 |
}
|
249 |
}
|
| 251 |
return $sortie_xhtml;
|
250 |
return $sortie_xhtml;
|
| 252 |
} else if (isset($_POST['form_sites_traduire'])) {
|
251 |
} else if (isset($_POST['form_sites_traduire'])) {
|
| 253 |
// Nous cherchons à traduire un site
|
252 |
// Nous cherchons à traduire un site
|
| 254 |
$message = ADMIN_validerFormListesSites($GLOBALS['_GEN_commun']['pear_db'], $_POST);
|
253 |
$message = ADMIN_validerFormListesSites($GLOBALS['_GEN_commun']['pear_db'], $_POST);
|
| 255 |
if (!empty($message)) {
|
254 |
if ((!empty($message))) {
|
| 256 |
// Les données ne sont pas valide. Nous retournons le formulaires avec les messages d'erreurs.
|
255 |
// Les données ne sont pas valide. Nous retournons le formulaires avec les messages d'erreurs.
|
| 257 |
$sortie_xhtml .= ADMIN_afficherFormListeSites($GLOBALS['_GEN_commun']['pear_db'], $url, $message);
|
256 |
$sortie_xhtml .= ADMIN_afficherFormListeSites($GLOBALS['_GEN_commun']['pear_db'], $url, $message);
|
| 258 |
} else {
|
257 |
} else {
|
| - |
|
258 |
$message = ADMIN_verifier_traduction_possible($GLOBALS['_GEN_commun']['pear_db'], $_POST);
|
| - |
|
259 |
if ((!empty($message))) {
|
| - |
|
260 |
// Les données ne sont pas valide. Nous retournons le formulaires avec les messages d'erreurs.
|
| - |
|
261 |
$sortie_xhtml .= ADMIN_afficherFormListeSites($GLOBALS['_GEN_commun']['pear_db'], $url, $message);
|
| - |
|
262 |
}
|
| - |
|
263 |
else {
|
| 259 |
// Les données sont valide. Nous affichons le formulaire de traduction
|
264 |
// Les données sont valide. Nous affichons le formulaire de traduction
|
| 260 |
$sortie_xhtml .= ADMIN_afficherFormSite($GLOBALS['_GEN_commun']['pear_db'], $url, $_POST, $message);
|
265 |
$sortie_xhtml .= ADMIN_afficherFormSite($GLOBALS['_GEN_commun']['pear_db'], $url, $_POST, $message);
|
| - |
|
266 |
}
|
| 261 |
}
|
267 |
}
|
| 262 |
return $sortie_xhtml;
|
268 |
return $sortie_xhtml;
|
| 263 |
} else if (isset($_POST['site_traduire'])) {
|
269 |
} else if (isset($_POST['site_traduire'])) {
|
| 264 |
// Nous cherchons à enregistrer la traduction d'un site
|
270 |
// Nous cherchons à enregistrer la traduction d'un site
|
| 265 |
$message = ADMIN_validerFormSite($GLOBALS['_GEN_commun']['pear_db'], $_POST);
|
271 |
$message = ADMIN_validerFormSite($GLOBALS['_GEN_commun']['pear_db'], $_POST);
|
| Line 305... |
Line 311... |
| 305 |
}
|
311 |
}
|
| 306 |
}//Fin de la fonction afficherContenuCorps().
|
312 |
}//Fin de la fonction afficherContenuCorps().
|
| Line 307... |
Line 313... |
| 307 |
|
313 |
|
| 308 |
/* +--Fin du code ---------------------------------------------------------------------------------------+
|
314 |
/* +--Fin du code ---------------------------------------------------------------------------------------+
|
| - |
|
315 |
* $Log: not supported by cvs2svn $
|
| - |
|
316 |
* Revision 1.10 2006/03/02 10:49:49 ddelon
|
| - |
|
317 |
* Fusion branche multilinguisme dans branche principale
|
| 309 |
* $Log: not supported by cvs2svn $
|
318 |
*
|
| 310 |
* Revision 1.9.2.2 2006/02/28 14:02:09 ddelon
|
319 |
* Revision 1.9.2.2 2006/02/28 14:02:09 ddelon
|
| 311 |
* Finition multilinguisme
|
320 |
* Finition multilinguisme
|
| 312 |
*
|
321 |
*
|
| 313 |
* Revision 1.9.2.1 2006/01/19 21:26:20 ddelon
|
322 |
* Revision 1.9.2.1 2006/01/19 21:26:20 ddelon
|