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.2 2004-06-21 07:37:30 alex Exp $
|
22 |
// CVS : $Id: identification.php,v 1.3 2004-06-28 10:18:48 alex 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.2 $ $Date: 2004-06-21 07:37:30 $
|
41 |
*@version $Revision: 1.3 $ $Date: 2004-06-28 10:18:48 $
|
42 |
// +------------------------------------------------------------------------------------------------------+
|
42 |
// +------------------------------------------------------------------------------------------------------+
|
43 |
*/
|
43 |
*/
|
Line 44... |
Line 44... |
44 |
|
44 |
|
45 |
// +------------------------------------------------------------------------------------------------------+
|
45 |
// +------------------------------------------------------------------------------------------------------+
|
Line 97... |
Line 97... |
97 |
if (! $objet_pear_auth->getAuth()) {
|
97 |
if (! $objet_pear_auth->getAuth()) {
|
98 |
// L'utilisateur n'est pas identifié:
|
98 |
// L'utilisateur n'est pas identifié:
|
99 |
$res = str_repeat(' ', 16).'<form id="form_connexion" action="'.$url.'" method="post">'."\n";
|
99 |
$res = str_repeat(' ', 16).'<form id="form_connexion" action="'.$url.'" method="post">'."\n";
|
100 |
$res .= str_repeat(' ', 16).'<fieldset>'."\n";
|
100 |
$res .= str_repeat(' ', 16).'<fieldset>'."\n";
|
101 |
$res .= str_repeat(' ', 20).'<legend>'.'Identification'.'</legend>'."\n";
|
101 |
$res .= str_repeat(' ', 20).'<legend>'.'Identification'.'</legend>'."\n";
|
102 |
$res .= str_repeat(' ', 20).'<p>'."\n";
|
102 |
$res .= str_repeat(' ', 20).''."\n";
|
103 |
$res .= str_repeat(' ', 24).'<label for="username">'.'Courriel :'.'</label>'."\n";
|
103 |
$res .= str_repeat(' ', 24).'<label for="username">'.'Courriel :'.'</label>'."\n";
|
104 |
$res .= str_repeat(' ', 24).'<input type="text" id="username" name="username" size="9" maxlength="80" tabindex="1" value="'.'courriel'.'" />'."\n";
|
104 |
$res .= str_repeat(' ', 24).'<input type="text" id="username" name="username" size="9" maxlength="80" tabindex="1" value="'.'courriel'.'" />'."\n";
|
105 |
$res .= str_repeat(' ', 20).'</p>'."\n";
|
105 |
$res .= str_repeat(' ', 20).''."\n";
|
106 |
$res .= str_repeat(' ', 20).'<p>'."\n";
|
106 |
$res .= str_repeat(' ', 20).''."\n";
|
107 |
$res .= str_repeat(' ', 24).'<label for="password">'.'Mot de passe :'.'</label>'."\n";
|
107 |
$res .= str_repeat(' ', 24).'<label for="password">'.'Mot de passe :'.'</label>'."\n";
|
108 |
$res .= str_repeat(' ', 24).'<input type="password" id="password" name="password" size="9" maxlength="80" tabindex="2" value="'.'mot de passe'.'" />'."\n";
|
108 |
$res .= str_repeat(' ', 24).'<input type="password" id="password" name="password" size="9" maxlength="80" tabindex="2" value="'.'mot de passe'.'" />'."\n";
|
109 |
$res .= str_repeat(' ', 20).'</p>'."\n";
|
109 |
$res .= str_repeat(' ', 20).''."\n";
|
110 |
$res .= str_repeat(' ', 20).'<p>'."\n";
|
110 |
$res .= str_repeat(' ', 20).''."\n";
|
111 |
$res .= str_repeat(' ', 24).'<input type="submit" id="connexion" name="connexion" tabindex="3" value="'.'ok'.'" />'."\n";
|
111 |
$res .= str_repeat(' ', 24).'<input type="submit" id="connexion" name="connexion" tabindex="3" value="'.'ok'.'" />'."\n";
|
112 |
$res .= str_repeat(' ', 20).'</p>'."\n";
|
112 |
$res .= str_repeat(' ', 20).''."\n";
|
113 |
$res .= str_repeat(' ', 16).'</fieldset>'."\n";
|
113 |
$res .= str_repeat(' ', 16).'</fieldset>'."\n";
|
114 |
$res .= str_repeat(' ', 16).'</form>';
|
114 |
$res .= str_repeat(' ', 16).'</form>';
|
115 |
} else {
|
115 |
} else {
|
116 |
// L'utilisateur est identifié. Nous affichons ses informations.
|
116 |
// L'utilisateur est identifié. Nous affichons ses informations.
|
117 |
// Amélioré la récupération des informations sur l'utilisateur.
|
117 |
// Amélioré la récupération des informations sur l'utilisateur.
|
Line 139... |
Line 139... |
139 |
|
139 |
|
140 |
|
140 |
|
141 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
141 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
- |
|
142 |
*
|
- |
|
143 |
* $Log: not supported by cvs2svn $
|
- |
|
144 |
* Revision 1.2 2004/06/21 07:37:30 alex
|
142 |
*
|
145 |
* Modification d'un label
|
143 |
* $Log: not supported by cvs2svn $
|
146 |
*
|
144 |
* Revision 1.1 2004/06/15 15:01:41 jpm
|
147 |
* Revision 1.1 2004/06/15 15:01:41 jpm
|
145 |
* Changement de nom et d'arborescence de Genesia en Papyrus.
|
148 |
* Changement de nom et d'arborescence de Genesia en Papyrus.
|
146 |
*
|
149 |
*
|