Subversion Repositories Applications.papyrus

Compare Revisions

Ignore whitespace Rev 1828 → Rev 1829

/branches/livraison_aha/papyrus/applettes/identification/squelettes/identification.tpl.html
1,8 → 1,8
<?php if ($loggue) : ?>
<p id="identification_info">
<span id="identification_message"><?=IDEN_LG_MESSAGE;?></span>
<p id="identification_info<?=$id_xhtml;?>">
<span id="identification_message<?=$id_xhtml;?>"><?=IDEN_LG_MESSAGE;?></span>
<?php if ($url_page_inscription) : ?>
<a href="<?=$url_page_inscription;?>" id="voir_inscription" title="Voir mon inscription">
<a href="<?=$url_page_inscription;?>" id="voir_inscription<?=$id_xhtml;?>" title="Voir mon inscription">
<?=$chp_personne_prenom; ?>&nbsp;<?=$chp_personne_nom; ?>&nbsp;<?=$chp_structure; ?>
</a>
<?php else : ?>
9,38 → 9,38
<?=$chp_personne_prenom; ?>&nbsp;<?=$chp_personne_nom; ?>&nbsp;<?=$chp_structure; ?>
<?php endif; ?>
</p>
<p id="iden_action">
<p id="iden_action<?=$id_xhtml;?>">
<?php if ($url_page_modif_inscription) : ?>
<a id="lien_inscription_modif" href="<?=$url_page_modif_inscription; ?>">
<a id="lien_inscription_modif<?=$id_xhtml;?>" href="<?=$url_page_modif_inscription; ?>">
<?=IDEN_LG_INSCRIPTION_URL_MODIF;?>
</a>
<?php endif; ?>
<a id="deconnexion" href="<?=$url_deconnect;?>"><?=IDEN_LG_DECONNEXION;?></a>
<a id="deconnexion<?=$id_xhtml;?>" href="<?=$url_deconnect;?>"><?=IDEN_LG_DECONNEXION;?></a>
</p>
<?php else : ?>
<form id="form_connexion" class="form_identification" action="<?=$url;?>" method="post">
<form id="form_connexion<?=$id_xhtml;?>" class="form_identification" action="<?=$url;?>" method="post">
<?php if ($url_erreur) : ?>
<span class="erreur"><?=IDEN_ECHEC_AUTH;?><a id="lien_inscription" href="<?=$url_erreur;?>"><?=IDEN_ICI;?></a></span>
<span class="erreur"><?=IDEN_ECHEC_AUTH;?><a id="lien_inscription<?=$id_xhtml;?>" href="<?=$url_erreur;?>"><?=IDEN_ICI;?></a></span>
<?php endif ;?>
<fieldset>
<legend><?=IDEN_LG_FORM_LEGEND;?></legend>
<label for="username"><?=IDEN_LG_FORM_LABEL_COURRIEL;?></label>
<input type="text" id="username" name="username" maxlength="80" tabindex="1" value="<?=IDEN_LG_FORM_VALUE_COURRIEL;?>" />
<input type="text" id="username<?=$id_xhtml;?>" name="username" maxlength="80" tabindex="1" value="<?=IDEN_LG_FORM_VALUE_COURRIEL;?>" />
<label for="password"><?=IDEN_LG_FORM_LABEL_MDP;?></label>
<input type="password" id="password" name="password" maxlength="80" tabindex="2" value="<?=IDEN_LG_FORM_VALUE_MDP;?>" />
<input type="password" id="password<?=$id_xhtml;?>" name="password" maxlength="80" tabindex="2" value="<?=IDEN_LG_FORM_VALUE_MDP;?>" />
<input type="submit" id="connexion" name="connexion" tabindex="4" value="<?=IDEN_LG_FORM_VALUE_SUBMIT;?>" />
<input type="submit" id="connexion<?=$id_xhtml;?>" name="connexion" tabindex="4" value="<?=IDEN_LG_FORM_VALUE_SUBMIT;?>" />
<?php if (IDEN_AUTH_SESSION_DUREE != 0) : ?>
<input type="checkbox" id="persistant" name="persistant" tabindex="3" value="o" />
<label id="persistant_label" for="persistant">Mémoriser mon compte</label>
<input type="checkbox" id="persistant<?=$id_xhtml;?>" name="persistant" tabindex="3" value="o" />
<label id="persistant_label<?=$id_xhtml;?>" for="persistant">Mémoriser mon compte</label>
<?php endif ;?>
<?php if ($url_page_inscription || $url_inscription_aide) : ?>
<p id="inscription_info">
<p id="inscription_info<?=$id_xhtml;?>">
<?php if ($url_page_inscription) : ?>
<a id="lien_inscription" href="<?=$url_page_inscription;?>"><?=IDEN_LG_INSCRIPTION_URL;?></a>
<a id="lien_inscription<?=$id_xhtml;?>" href="<?=$url_page_inscription;?>"><?=IDEN_LG_INSCRIPTION_URL;?></a>
<?php endif ;?>
<?php if ($url_inscription_aide) : ?>
<a id="inscription_aide" href="<?=$url_inscription_aide;?>"><?=IDEN_LG_INSCRIPTION_AIDE;?></a>
<a id="inscription_aide<?=$id_xhtml;?>" href="<?=$url_inscription_aide;?>"><?=IDEN_LG_INSCRIPTION_AIDE;?></a>
<?php endif; ?>
</p>
<?php endif; ?>
/branches/livraison_aha/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.35.2.1 2007-11-27 11:25:30 jp_milcent Exp $
// CVS : $Id: identification.php,v 1.35.2.2 2008-04-18 14:14:55 jp_milcent Exp $
/**
* Applette : identification
*
38,7 → 38,7
//Autres auteurs :
*@author Aucun
*@copyright Tela-Botanica 2000-2004
*@version $Revision: 1.35.2.1 $ $Date: 2007-11-27 11:25:30 $
*@version $Revision: 1.35.2.2 $ $Date: 2008-04-18 14:14:55 $
// +------------------------------------------------------------------------------------------------------+
*/
 
82,6 → 82,7
setcookie($cookie_persistant_nom, '', time()-3600, '/');
//$GLOBALS['_GEN_commun']['pear_auth']->start();
} else {
if (isset($_REQUEST['connexion'])) {
// Si un formulaire nous renvoie en POST une variable "connexion", nous logons l'utilisateur.
// Nous vérifions que l'utilisateur est coché "Mémoriser mon compte"
140,6 → 141,10
}
// Initialisation de variable.
$retour = '';
$id_xhtml = '';
if ( $GLOBALS['_PAPYRUS_']['applette']['comptage']['afficherFormIdentification'] > 1) {
$id_xhtml = $GLOBALS['_PAPYRUS_']['applette']['comptage']['afficherFormIdentification'];
}
$objet_pear_auth =& $_GEN_commun['pear_auth'];
$objet_pear_db =& $_GEN_commun['pear_db'];
$InfoAuthBdd =& $_GEN_commun['info_auth_bdd'];
198,7 → 203,7
if ($objet_pear_auth->getAuth()) { $loggue = true; } else { $loggue = false; }
ob_start();
include_once $options['template'];
include $options['template'];
$retour = ob_get_contents();
// Arrete et detruit le buffer
ob_end_clean();
215,6 → 220,9
/* +--Fin du code ----------------------------------------------------------------------------------------+
*
* $Log: not supported by cvs2svn $
* Revision 1.35.2.1 2007-11-27 11:25:30 jp_milcent
* Correction bogue : non affichage de l'url d'erreur de saisie du login.
*
* Revision 1.35 2007-10-11 14:14:22 florian
* amelioration du template de l'applette inscription
*