function seConnecter(annuler, seConnecter, motDePasse, accesSecu, connexion){
var html =
'
' +
' ' +
'
' +
' ' +
' ' +
' ' +
' ' +
'
';
new $.flavr({
title : connexion,
iconPath : '/web/js/flavr/images/icons/',
closeOverlay : true,
closeEsc : true,
icon : 'cadenas.png',
content : accesSecu,
dialog : 'form',
titleSubmit : seConnecter,
titleCancel : annuler,
form : { content: html, action: 'home.do', method: 'post'},
onSubmit : function( $container, $form ){
var str = document.getElementById('login').value+"*"+document.getElementById('password').value;
var MD5str = MD5(str);
document.getElementById('hash').value=MD5str;
}
});
}
function changerMdP(){
var html =
' ' +
' ' +
' ' +
'
';
new $.flavr({
title : 'Mot de passe oublié',
iconPath : '/web/js/flavr/images/icons/',
closeOverlay : true,
closeEsc : true,
icon : 'cadenas.png',
content : 'Pour indiquer un nouveau mot de passe, entrez votre email',
dialog : 'form',
titleSubmit : 'Soumettre',
titleCancel : 'Annuler',
form : { content: html, action: 'reinitMdp.do', method: 'post'}
});
}