Subversion Repositories Applications.papyrus

Compare Revisions

Ignore whitespace Rev 314 → Rev 315

/trunk/papyrus/applettes/identification/identification.php
19,7 → 19,7
// | License along with this library; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
// +------------------------------------------------------------------------------------------------------+
// CVS : $Id: identification.php,v 1.11 2005-03-17 15:52:17 jpm Exp $
// CVS : $Id: identification.php,v 1.12 2005-03-25 14:40:51 jpm Exp $
/**
* Applette : identification
*
38,7 → 38,7
//Autres auteurs :
*@author Aucun
*@copyright Tela-Botanica 2000-2004
*@version $Revision: 1.11 $ $Date: 2005-03-17 15:52:17 $
*@version $Revision: 1.12 $ $Date: 2005-03-25 14:40:51 $
// +------------------------------------------------------------------------------------------------------+
*/
 
119,7 → 119,8
*/
function afficherFormIdentification($tab_arguments, &$_GEN_commun)
{
// Initialisation de variable.
// Initialisation de variable.
$retour = '';
$objet_pear_auth =& $GLOBALS['_GEN_commun']['pear_auth'];
$objet_pear_db =& $GLOBALS['_GEN_commun']['pear_db'];
$url = $GLOBALS['_GEN_commun']['url']->getURL();
137,8 → 138,14
}
if (! $objet_pear_auth->getAuth()) {
// L'utilisateur n'est pas identifié:
$retour = str_repeat(' ', 16).'<form id="form_connexion" class="form_identification" action="'.$url.'" method="post">'."\n";
// L'utilisateur n'est pas identifié:
// Si l'url de la page d'inscription est stockée dans les paramêtres, nous l'affichons
if (isset($GLOBALS['_GEN_commun']['info_auth_bdd']->url_inscription)) {
$retour .= '<div><a id="lien_inscription" href="'.$GLOBALS['_GEN_commun']['info_auth_bdd']->url_inscription.'">'.
IDEN_LG_INSCRIPTION_URL.
'</a></div>';
}
$retour .= str_repeat(' ', 16).'<form id="form_connexion" class="form_identification" action="'.$url.'" method="post">'."\n";
$retour .= str_repeat(' ', 16).'<fieldset>'."\n";
$retour .= str_repeat(' ', 20).'<legend>'.'Identification'.'</legend>'."\n";
$retour .= str_repeat(' ', 20).''."\n";
158,7 → 165,8
// L'utilisateur est identifié. Nous affichons ses informations.
// Affichage du prénom et nom d'une personne ou du nom de la structure en fonction des paramêtres
// de l'annuaire utilisé
$retour = str_repeat(' ', 16).'<p id="identification_info"><span id="identification_message">'.IDEN_LANG_MESSAGE.'</span> ';
$retour = str_repeat(' ', 16).'<p id="identification_info"><span id="identification_message">'.IDEN_LG_MESSAGE.'</span> ';
// 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
if (isset($GLOBALS['_GEN_commun']['info_auth_bdd']->chp_personne_prenom) && isset($GLOBALS['_GEN_commun']['info_auth_bdd']->chp_personne_nom)) {
$retour .= '<span id="identification_prenom">'.
$objet_pear_auth->getAuthData($GLOBALS['_GEN_commun']['info_auth_bdd']->chp_personne_prenom).
190,6 → 198,9
/* +--Fin du code ----------------------------------------------------------------------------------------+
*
* $Log: not supported by cvs2svn $
* Revision 1.11 2005/03/17 15:52:17 jpm
* Suppression d'un / causant un bogue.
*
* Revision 1.10 2005/03/15 14:47:14 jpm
* Utilisation d'un lien à la place d'un formulaire pour la déconnexion.
*