Subversion Repositories Applications.papyrus

Rev

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

Rev 4 Rev 17
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.1 2004-06-15 15:01:41 jpm Exp $
22
// CVS : $Id: identification.php,v 1.2 2004-06-21 07:37:30 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 :
28
* - Variable globale de Génésia.
28
* - Variable globale de Génésia.
29
* - Pear Auth
29
* - Pear Auth
30
* - Pear Net_URL
30
* - Pear Net_URL
-
 
31
*
-
 
32
* A faire : remplacer le formulaire par un QuickForm
31
*
33
*
32
*@package Applette
34
*@package Applette
33
*@subpackage Identification
35
*@subpackage Identification
34
//Auteur original :
36
//Auteur original :
35
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
37
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
36
//Autres auteurs :
38
//Autres auteurs :
37
*@author        Aucun
39
*@author        Aucun
38
*@copyright     Tela-Botanica 2000-2004
40
*@copyright     Tela-Botanica 2000-2004
39
*@version       $Revision: 1.1 $ $Date: 2004-06-15 15:01:41 $
41
*@version       $Revision: 1.2 $ $Date: 2004-06-21 07:37:30 $
40
// +------------------------------------------------------------------------------------------------------+
42
// +------------------------------------------------------------------------------------------------------+
41
*/
43
*/
Line 42... Line 44...
42
 
44
 
43
// +------------------------------------------------------------------------------------------------------+
45
// +------------------------------------------------------------------------------------------------------+
Line 97... Line 99...
97
        $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";
98
        $res .= str_repeat(' ', 16).'<fieldset>'."\n";
100
        $res .= str_repeat(' ', 16).'<fieldset>'."\n";
99
        $res .= str_repeat(' ', 20).'<legend>'.'Identification'.'</legend>'."\n";
101
        $res .= str_repeat(' ', 20).'<legend>'.'Identification'.'</legend>'."\n";
100
        $res .= str_repeat(' ', 20).'<p>'."\n";
102
        $res .= str_repeat(' ', 20).'<p>'."\n";
101
        $res .= str_repeat(' ', 24).'<label for="username">'.'Courriel :'.'</label>'."\n";
103
        $res .= str_repeat(' ', 24).'<label for="username">'.'Courriel :'.'</label>'."\n";
102
        $res .= str_repeat(' ', 24).'<input type="text" id="username" name="username" size="15" 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";
103
        $res .= str_repeat(' ', 20).'</p>'."\n";
105
        $res .= str_repeat(' ', 20).'</p>'."\n";
104
        $res .= str_repeat(' ', 20).'<p>'."\n";
106
        $res .= str_repeat(' ', 20).'<p>'."\n";
105
        $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";
106
        $res .= str_repeat(' ', 24).'<input type="password" id="password" name="password" size="15" 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";
107
        $res .= str_repeat(' ', 20).'</p>'."\n";
109
        $res .= str_repeat(' ', 20).'</p>'."\n";
108
        $res .= str_repeat(' ', 20).'<p>'."\n";
110
        $res .= str_repeat(' ', 20).'<p>'."\n";
109
        $res .= str_repeat(' ', 24).'<input type="submit" id="connexion" name="connexion" tabindex="3" value="'.'s\'identifier'.'" />'."\n";
111
        $res .= str_repeat(' ', 24).'<input type="submit" id="connexion" name="connexion" tabindex="3" value="'.'ok'.'" />'."\n";
110
        $res .= str_repeat(' ', 20).'</p>'."\n";
112
        $res .= str_repeat(' ', 20).'</p>'."\n";
111
        $res .= str_repeat(' ', 16).'</fieldset>'."\n";
113
        $res .= str_repeat(' ', 16).'</fieldset>'."\n";
112
        $res .= str_repeat(' ', 16).'</form>';
114
        $res .= str_repeat(' ', 16).'</form>';
113
    } else {
115
    } else {
114
        // L'utilisateur est identifié. Nous affichons ses informations.
116
        // L'utilisateur est identifié. Nous affichons ses informations.
Line 120... Line 122...
120
        $res .= str_repeat(' ', 20).'<legend>'.'Identification'.'</legend>'."\n";
122
        $res .= str_repeat(' ', 20).'<legend>'.'Identification'.'</legend>'."\n";
121
        // Il faudrait mettre dans la base de données le prénom et le nom ou chercher comment définir ces champs en fonction
123
        // Il faudrait mettre dans la base de données le prénom et le nom ou chercher comment définir ces champs en fonction
122
        // de l'annuaire utilisé, si on veut les afficher après le message de bienvenue.
124
        // de l'annuaire utilisé, si on veut les afficher après le message de bienvenue.
123
        $res .= str_repeat(' ', 20).'<p>'.'Bienvenue!'.'</p>'."\n";
125
        $res .= str_repeat(' ', 20).'<p>'.'Bienvenue!'.'</p>'."\n";
124
        $res .= str_repeat(' ', 20).'<p>'."\n";
126
        $res .= str_repeat(' ', 20).'<p>'."\n";
125
        $res .= str_repeat(' ', 24).'<input type="submit" id="deconnexion" name="deconnexion" tabindex="1" value="'.'se déconnecter'.'" />'."\n";
127
        $res .= str_repeat(' ', 24).'<input type="submit" id="deconnexion" name="deconnexion" tabindex="1" value="'.'d&eacute;connexion'.'" />'."\n";
126
        $res .= str_repeat(' ', 20).'</p>'."\n";
128
        $res .= str_repeat(' ', 20).'</p>'."\n";
127
        $res .= str_repeat(' ', 16).'</fieldset>'."\n";
129
        $res .= str_repeat(' ', 16).'</fieldset>'."\n";
128
        $res .= str_repeat(' ', 16).'</form>';
130
        $res .= str_repeat(' ', 16).'</form>';
129
    }
131
    }
130
    return $res ;
132
    return $res ;
Line 137... Line 139...
137
 
139
 
138
 
140
 
139
/* +--Fin du code ----------------------------------------------------------------------------------------+
141
/* +--Fin du code ----------------------------------------------------------------------------------------+
-
 
142
*
-
 
143
* $Log: not supported by cvs2svn $
-
 
144
* Revision 1.1  2004/06/15 15:01:41  jpm
140
*
145
* Changement de nom et d'arborescence de Genesia en Papyrus.
141
* $Log: not supported by cvs2svn $
146
*
142
* Revision 1.5  2004/05/05 06:44:15  jpm
147
* Revision 1.5  2004/05/05 06:44:15  jpm
143
* Complément des commentaires indiquant les paquetages nécessaire à l'applette.
148
* Complément des commentaires indiquant les paquetages nécessaire à l'applette.
144
*
149
*