| 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: identification.php,v 1.13 2005-04-14 16:37:22 jpm Exp $
|
22 |
// CVS : $Id: identification.php,v 1.14 2005-05-19 14:00:58 jpm Exp $
|
| 23 |
/**
|
23 |
/**
|
| 24 |
* Applette : identification
|
24 |
* Applette : identification
|
| 25 |
*
|
25 |
*
|
| 26 |
* Génère un formulaire les champs nécessaires pour s'identifier.
|
26 |
* Génère un formulaire les champs nécessaires pour s'identifier.
|
| 27 |
* Nécessite :
|
27 |
* Nécessite :
|
| Line 36... |
Line 36... |
| 36 |
//Auteur original :
|
36 |
//Auteur original :
|
| 37 |
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org>
|
37 |
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org>
|
| 38 |
//Autres auteurs :
|
38 |
//Autres auteurs :
|
| 39 |
*@author Aucun
|
39 |
*@author Aucun
|
| 40 |
*@copyright Tela-Botanica 2000-2004
|
40 |
*@copyright Tela-Botanica 2000-2004
|
| 41 |
*@version $Revision: 1.13 $ $Date: 2005-04-14 16:37:22 $
|
41 |
*@version $Revision: 1.14 $ $Date: 2005-05-19 14:00:58 $
|
| 42 |
// +------------------------------------------------------------------------------------------------------+
|
42 |
// +------------------------------------------------------------------------------------------------------+
|
| 43 |
*/
|
43 |
*/
|
| Line 44... |
Line 44... |
| 44 |
|
44 |
|
| 45 |
// +------------------------------------------------------------------------------------------------------+
|
45 |
// +------------------------------------------------------------------------------------------------------+
|
| Line 139... |
Line 139... |
| 139 |
|
139 |
|
| 140 |
if (! $objet_pear_auth->getAuth()) {
|
140 |
if (! $objet_pear_auth->getAuth()) {
|
| 141 |
// L'utilisateur n'est pas identifié:
|
141 |
// L'utilisateur n'est pas identifié:
|
| 142 |
// Si l'url de la page d'inscription est stockée dans les paramêtres, nous l'affichons
|
142 |
// Si l'url de la page d'inscription est stockée dans les paramêtres, nous l'affichons
|
| 143 |
if (isset($GLOBALS['_GEN_commun']['info_auth_bdd']->url_inscription)) {
|
143 |
if (isset($GLOBALS['_GEN_commun']['info_auth_bdd']->url_inscription)) {
|
| 144 |
$retour .= '<div><a id="lien_inscription" href="'.$GLOBALS['_GEN_commun']['info_auth_bdd']->url_inscription.'">'.
|
144 |
$retour .= '<p><a id="lien_inscription" href="'.$GLOBALS['_GEN_commun']['info_auth_bdd']->url_inscription.'">'.
|
| 145 |
IDEN_LG_INSCRIPTION_URL.
|
145 |
IDEN_LG_INSCRIPTION_URL.
|
| 146 |
'</a></div>';
|
146 |
'</a></p>'."\n";
|
| 147 |
}
|
147 |
}
|
| 148 |
$retour .= str_repeat(' ', 16).'<form id="form_connexion" class="form_identification" action="'.$url.'" method="post">'."\n";
|
148 |
$retour .= str_repeat(' ', 16).'<form id="form_connexion" class="form_identification" action="'.$url.'" method="post">'."\n";
|
| 149 |
$retour .= str_repeat(' ', 16).'<fieldset>'."\n";
|
149 |
$retour .= str_repeat(' ', 16).'<fieldset>'."\n";
|
| 150 |
$retour .= str_repeat(' ', 20).'<legend>'.'Identification'.'</legend>'."\n";
|
150 |
$retour .= str_repeat(' ', 20).'<legend>'.'Identification'.'</legend>'."\n";
|
| Line 163... |
Line 163... |
| 163 |
$retour .= str_repeat(' ', 16).'</form>';
|
163 |
$retour .= str_repeat(' ', 16).'</form>';
|
| 164 |
} else {
|
164 |
} else {
|
| 165 |
// L'utilisateur est identifié. Nous affichons ses informations.
|
165 |
// L'utilisateur est identifié. Nous affichons ses informations.
|
| 166 |
// Affichage du prénom et nom d'une personne ou du nom de la structure en fonction des paramêtres
|
166 |
// Affichage du prénom et nom d'une personne ou du nom de la structure en fonction des paramêtres
|
| 167 |
// de l'annuaire utilisé
|
167 |
// de l'annuaire utilisé
|
| 168 |
// Si l'url de la page de modification de l'inscription est stockée dans les paramêtres, nous l'affichons
|
- |
|
| 169 |
if (isset($GLOBALS['_GEN_commun']['info_auth_bdd']->url_inscription_modif)) {
|
- |
|
| 170 |
$retour .= '<div><a id="lien_inscription_modif" href="'.$GLOBALS['_GEN_commun']['info_auth_bdd']->url_inscription_modif.'">'.
|
- |
|
| 171 |
IDEN_LG_INSCRIPTION_URL_MODIF.
|
- |
|
| 172 |
'</a></div>';
|
- |
|
| 173 |
}
|
- |
|
| 174 |
$retour .= str_repeat(' ', 16).'<p id="identification_info"><span id="identification_message">'.IDEN_LG_MESSAGE.'</span> ';
|
168 |
$retour .= str_repeat(' ', 16).'<p id="identification_info"><span id="identification_message">'.IDEN_LG_MESSAGE.'</span> ';
|
| 175 |
// Si les intitulés des champs nom et prénoms d'une personne ou le nom d'une structure sont indiqués nous les affichons
|
169 |
// Si les intitulés des champs nom et prénoms d'une personne ou le nom d'une structure sont indiqués nous les affichons
|
| 176 |
if (isset($GLOBALS['_GEN_commun']['info_auth_bdd']->chp_personne_prenom) && isset($GLOBALS['_GEN_commun']['info_auth_bdd']->chp_personne_nom)) {
|
170 |
if (isset($GLOBALS['_GEN_commun']['info_auth_bdd']->chp_personne_prenom) && isset($GLOBALS['_GEN_commun']['info_auth_bdd']->chp_personne_nom)) {
|
| 177 |
$retour .= '<span id="identification_prenom">'.
|
171 |
$retour .= '<span id="identification_prenom">'.
|
| 178 |
$objet_pear_auth->getAuthData($GLOBALS['_GEN_commun']['info_auth_bdd']->chp_personne_prenom).
|
172 |
$objet_pear_auth->getAuthData($GLOBALS['_GEN_commun']['info_auth_bdd']->chp_personne_prenom).
|
| Line 184... |
Line 178... |
| 184 |
$retour .= '<span id="identification_structure">'.
|
178 |
$retour .= '<span id="identification_structure">'.
|
| 185 |
$objet_pear_auth->getAuthData($GLOBALS['_GEN_commun']['info_auth_bdd']->chp_structure_nom).
|
179 |
$objet_pear_auth->getAuthData($GLOBALS['_GEN_commun']['info_auth_bdd']->chp_structure_nom).
|
| 186 |
'</span>';
|
180 |
'</span>';
|
| 187 |
}
|
181 |
}
|
| 188 |
$retour .= '</p>'."\n";
|
182 |
$retour .= '</p>'."\n";
|
| - |
|
183 |
$retour .= str_repeat(' ', 16).'<p id="iden_action">'."\n";
|
| - |
|
184 |
// Si l'url de la page de modification de l'inscription est stockée dans les paramêtres, nous l'affichons
|
| - |
|
185 |
if (isset($GLOBALS['_GEN_commun']['info_auth_bdd']->url_inscription_modif)) {
|
| - |
|
186 |
$retour .= str_repeat(' ', 20).'<a id="lien_inscription_modif" href="'.
|
| - |
|
187 |
$GLOBALS['_GEN_commun']['info_auth_bdd']->url_inscription_modif.'">'.
|
| - |
|
188 |
IDEN_LG_INSCRIPTION_URL_MODIF.
|
| - |
|
189 |
'</a>'."\n";
|
| 189 |
|
190 |
}
|
| 190 |
// Affichage du bouton de déconnexion
|
191 |
// Affichage du bouton de déconnexion
|
| 191 |
$retour .= str_repeat(' ', 16).'<p id="deconnexion">'."\n";
|
- |
|
| 192 |
$retour .= str_repeat(' ', 20).'<a href="'.$url.'&logout=1">'.'Déconnexion'.'</a>'."\n";
|
192 |
$retour .= str_repeat(' ', 20).'<a id="deconnexion" href="'.$url.'&logout=1">'.'Déconnexion'.'</a>'."\n";
|
| 193 |
$retour .= str_repeat(' ', 16).'</p>'."\n";
|
193 |
$retour .= str_repeat(' ', 16).'</p>'."\n";
|
| 194 |
}
|
194 |
}
|
| 195 |
return $retour;
|
195 |
return $retour;
|
| 196 |
}
|
196 |
}
|
| Line 202... |
Line 202... |
| 202 |
|
202 |
|
| 203 |
|
203 |
|
| 204 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
204 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
| - |
|
205 |
*
|
| - |
|
206 |
* $Log: not supported by cvs2svn $
|
| - |
|
207 |
* Revision 1.13 2005/04/14 16:37:22 jpm
|
| 205 |
*
|
208 |
* Ajout de la gestion de la modification de son inscription.
|
| 206 |
* $Log: not supported by cvs2svn $
|
209 |
*
|
| 207 |
* Revision 1.12 2005/03/25 14:40:51 jpm
|
210 |
* Revision 1.12 2005/03/25 14:40:51 jpm
|
| 208 |
* Prise en compte du paramêtre url_inscription permettant de faire figurer dans l'applette inscription un lien vers la page d'inscription.
|
211 |
* Prise en compte du paramêtre url_inscription permettant de faire figurer dans l'applette inscription un lien vers la page d'inscription.
|
| 209 |
*
|
212 |
*
|