Subversion Repositories Applications.papyrus

Rev

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

Rev 304 Rev 308
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.9 2005-03-15 14:17:46 jpm Exp $
22
// CVS : $Id: identification.php,v 1.10 2005-03-15 14:47:14 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.9 $ $Date: 2005-03-15 14:17:46 $
41
*@version       $Revision: 1.10 $ $Date: 2005-03-15 14:47:14 $
42
// +------------------------------------------------------------------------------------------------------+
42
// +------------------------------------------------------------------------------------------------------+
43
*/
43
*/
Line 44... Line 44...
44
 
44
 
45
// +------------------------------------------------------------------------------------------------------+
45
// +------------------------------------------------------------------------------------------------------+
Line 153... Line 153...
153
        $retour .= str_repeat(' ', 24).'<input type="submit" id="connexion" name="connexion" tabindex="3" value="'.'ok'.'" />'."\n";
153
        $retour .= str_repeat(' ', 24).'<input type="submit" id="connexion" name="connexion" tabindex="3" value="'.'ok'.'" />'."\n";
154
        $retour .= str_repeat(' ', 20).''."\n";
154
        $retour .= str_repeat(' ', 20).''."\n";
155
        $retour .= str_repeat(' ', 16).'</fieldset>'."\n";
155
        $retour .= str_repeat(' ', 16).'</fieldset>'."\n";
156
        $retour .= str_repeat(' ', 16).'</form>';
156
        $retour .= str_repeat(' ', 16).'</form>';
157
    } else {
157
    } else {
158
        // L'utilisateur est identifié. Nous affichons ses informations.
158
        // L'utilisateur est identifié. Nous affichons ses informations.
159
        $retour  = str_repeat(' ', 16).'<form id="form_deconnexion" class="form_identification" action="'.$url.'&amp;logout=1" method="post">'."\n";
-
 
160
        $retour .= str_repeat(' ', 16).'<fieldset>'."\n";
-
 
161
        $retour .= str_repeat(' ', 20).'<legend>'.'Identification'.'</legend>'."\n";
-
 
162
        
-
 
163
        // Affichage du prénom et nom d'une personne ou du nom de la structure en fonction des paramêtres 
159
        // Affichage du prénom et nom d'une personne ou du nom de la structure en fonction des paramêtres 
164
        // de l'annuaire utilisé
160
        // de l'annuaire utilisé
165
        $retour .= str_repeat(' ', 20).'<p><span id="identification_message">'.IDEN_LANG_MESSAGE.'</span> ';
161
        $retour = str_repeat(' ', 16).'<p id="identification_info"><span id="identification_message">'.IDEN_LANG_MESSAGE.'</span> ';
166
        if (isset($GLOBALS['_GEN_commun']['info_auth_bdd']->chp_personne_prenom) && isset($GLOBALS['_GEN_commun']['info_auth_bdd']->chp_personne_nom)) {
162
        if (isset($GLOBALS['_GEN_commun']['info_auth_bdd']->chp_personne_prenom) && isset($GLOBALS['_GEN_commun']['info_auth_bdd']->chp_personne_nom)) {
167
            $retour .=  '<span id="identification_prenom">'.
163
            $retour .=  '<span id="identification_prenom">'.
168
                        $objet_pear_auth->getAuthData($GLOBALS['_GEN_commun']['info_auth_bdd']->chp_personne_prenom).
164
                        $objet_pear_auth->getAuthData($GLOBALS['_GEN_commun']['info_auth_bdd']->chp_personne_prenom).
169
                        '</span> '.
165
                        '</span> '.
170
                        '<span id="identification_nom">'.
166
                        '<span id="identification_nom">'.
Line 176... Line 172...
176
                        '</span>';
172
                        '</span>';
177
        }
173
        }
178
        $retour .= '</p>'."\n";
174
        $retour .= '</p>'."\n";
Line 179... Line 175...
179
        
175
        
180
        // Affichage du bouton de déconnexion
176
        // Affichage du bouton de déconnexion
181
        $retour .= str_repeat(' ', 20).'<p>'."\n";
177
        $retour .= str_repeat(' ', 16).'<p id="deconnexion">'."\n";
182
        $retour .= str_repeat(' ', 24).'<input type="submit" id="deconnexion" name="deconnexion" tabindex="1" value="'.'d&eacute;connexion'.'" />'."\n";
178
        $retour .= str_repeat(' ', 20).'<a href="'.$url.'&amp;logout=1" />'.'Déconnexion'.'</a>'."\n";
183
        $retour .= str_repeat(' ', 20).'</p>'."\n";
-
 
184
        $retour .= str_repeat(' ', 16).'</fieldset>'."\n";
-
 
185
        $retour .= str_repeat(' ', 16).'</form>';
179
        $retour .= str_repeat(' ', 16).'</p>'."\n";
186
    }
180
    }
187
    return $retour;
181
    return $retour;
Line 188... Line 182...
188
}
182
}
Line 194... Line 188...
194
 
188
 
195
 
189
 
196
/* +--Fin du code ----------------------------------------------------------------------------------------+
190
/* +--Fin du code ----------------------------------------------------------------------------------------+
-
 
191
*
-
 
192
* $Log: not supported by cvs2svn $
-
 
193
* Revision 1.9  2005/03/15 14:17:46  jpm
-
 
194
* Ajout d'un fichier de config et de traduction.
197
*
195
* Début gestion des constantes de langue.
198
* $Log: not supported by cvs2svn $
196
*
199
* Revision 1.8  2005/03/10 12:50:44  alex
197
* Revision 1.8  2005/03/10 12:50:44  alex
200
* remplacement de & par  &amp;
198
* remplacement de & par  &amp;
201
*
199
*