Les formulaires spip et thelia : Différence entre versions
De TheliaDoc
(Résumé automatique : blanchiment) |
(Annulation des modifications 1764 par Alainormandie (Discuter | Contributions)) |
||
Ligne 1 : | Ligne 1 : | ||
+ | [[Image:Logo_spip_thelia.png]] | ||
+ | [http://www.spip-contrib.net/Plugin-Thelia le plugin thelia-spip] | ||
+ | '''Attention ces boucles nécessitent l'installation du plugin spip-thelia''' | ||
+ | |||
+ | =='''Attention sous spip et thelia'''== | ||
+ | |||
+ | * '''Dans thelia''' | ||
+ | <pre> | ||
+ | creercompte.php? | ||
+ | nouveau.php? | ||
+ | compte_modifier.php? | ||
+ | compte_modifiererr.php? | ||
+ | connexion.php? | ||
+ | mdpoublie.php? | ||
+ | moncompte.php? | ||
+ | </pre> | ||
+ | * '''et renomé dans spip et thelia''' | ||
+ | <pre> | ||
+ | spip.php?page=creercompte | ||
+ | spip.php?page=nouveau | ||
+ | spip.php?page=compte_modifier | ||
+ | spip.php?page=compte_modifiererr | ||
+ | spip.php?page=connexion | ||
+ | spip.php?page=mdpoublie | ||
+ | spip.php?page=moncompte | ||
+ | </pre> | ||
+ | * '''par la boucle''' | ||
+ | <pre> | ||
+ | #URL_PAGE{creercompte} | ||
+ | #URL_PAGE{nouveau} | ||
+ | #URL_PAGE{compte_modifier} | ||
+ | #URL_PAGE{compte_modifiererr} | ||
+ | #URL_PAGE{connexion} | ||
+ | #URL_PAGE{mdpoublie} | ||
+ | #URL_PAGE{moncompte} | ||
+ | </pre> | ||
+ | |||
+ | =='''Formulaires nouveau compte spip et thelia (creercompte.php)'''== | ||
+ | |||
+ | [[Image:Creercompte.png]] | ||
+ | |||
+ | <pre> | ||
+ | <form action="#URL_PAGE{nouveau,lang=#LANG}" method="post" name="nouveau" id="nouveau"> | ||
+ | <input type="hidden" name="thelia_action" value="creercompte" /> | ||
+ | civilite* | ||
+ | <select name="raison" size="1" > | ||
+ | <option value="" selected="selected">choisissez</option> | ||
+ | <option value="1">madame</option> | ||
+ | <option value="2">mademoiselle</option> | ||
+ | <option value="3">monsieur</option> | ||
+ | </select> | ||
+ | nom* | ||
+ | <input type="text" name="nom" /> | ||
+ | prenom* | ||
+ | <input type="text" name="prenom" /> | ||
+ | adresse* | ||
+ | <input type="text" name="adresse1" /> | ||
+ | adresse_suite | ||
+ | <input type="text" name="adresse2" /> | ||
+ | complement_adresse | ||
+ | <input type="text" name="adresse3" /> | ||
+ | code_postal* | ||
+ | <input type="text" name="cpostal" /> | ||
+ | ville* | ||
+ | <input type="text" name="ville" /> | ||
+ | pays* | ||
+ | <select name="pays" size="1" > | ||
+ | <THELIA_pays type="PAYS" zdefinie="1" select="64"> | ||
+ | <option value="THELIA-ID" THELIA-SELECTED>THELIA-TITRE</option> | ||
+ | </THELIA_pays> | ||
+ | </select> | ||
+ | telephone_fixe* | ||
+ | <input type="text" name="telfixe" /> | ||
+ | telephone_portable | ||
+ | <input type="text" name="telport" /> | ||
+ | email* | ||
+ | <input type="text" name="email1" /> | ||
+ | confirmation_email* | ||
+ | <input type="text" name="email2" /> | ||
+ | mdp* (mdp_caracteres_minimum) | ||
+ | <input name="motdepasse1" type="password" /> | ||
+ | confirmation mdp* | ||
+ | <input name="motdepasse2" type="password" /> | ||
+ | * champs_obligatoires | ||
+ | <input type="submit" value="valider" /> | ||
+ | </form> | ||
+ | |||
+ | </pre> | ||
+ | |||
+ | =='''Formulaire identification spip et thelia'''== | ||
+ | |||
+ | Il peut être intéressant d'afficher telle ou telle information suivant si le client est '''identifié ou non.''' | ||
+ | |||
+ | Nous afficherons le lien « '''déconnexion''' » si le client est connecté et un formulaire d'identification dans le cas contraire. | ||
+ | |||
+ | '''Thelia est capable de gérer cela, de la façon suivante.''' | ||
+ | |||
+ | <pre> | ||
+ | <THELIA SI CONNECTE> | ||
+ | Code à afficher si connecté | ||
+ | </THELIA SI CONNECTE> | ||
+ | </pre> | ||
+ | |||
+ | <pre> | ||
+ | <THELIA SI NON CONNECTE> | ||
+ | Code à afficher si non connecté | ||
+ | </THELIA SI NON CONNECTE> | ||
+ | </pre> | ||
+ | |||
+ | <pre> | ||
+ | <THELIA SI NON CONNECTE> | ||
+ | <a href="#URL_PAGE{connexion}">se connecter</a> | ||
+ | <a href="#URL_PAGE{mdpoublie}">mdp oublie:></a> | ||
+ | </THELIA SI NON CONNECTE> | ||
+ | |||
+ | <THELIA SI CONNECTE> | ||
+ | <a href="#URL_PAGE{moncompte}">mon_compte</a> | ||
+ | <a href="#URL_PAGE{sommaire, thelia_action=deconnexion}">se deconnecter</a> | ||
+ | </THELIA SI CONNECTE> | ||
+ | </pre> | ||
+ | |||
+ | =='''Formulaire erreur spip et thelia (formulerr.php)'''== | ||
+ | |||
+ | [[Image:Formulerr.png]] | ||
+ | |||
+ | <pre> | ||
+ | <form action="#URL_PAGE{nouveau,lang=#LANG}" method="post" name="nouveau" id="nouveau"> | ||
+ | <input type="hidden" name="thelia_action" value="creercompte" /> | ||
+ | civilite THELIA-RAISON[(obligatoire)] | ||
+ | <select name="raison" size="1" > | ||
+ | <option value="" selected="selected">choisissez:></option> | ||
+ | <option value="1" THELIA-RAISON1>madame</option> | ||
+ | <option value="2" THELIA-RAISON2>mademoiselle</option> | ||
+ | <option value="3" THELIA-RAISON3>monsieur</option> | ||
+ | </select> | ||
+ | nom THELIA-NOM[(obligatoire)] | ||
+ | <input type="text" name="nom" value="THELIA-NOM" /> | ||
+ | prenom THELIA-PRENOM[(obligatoire)] | ||
+ | <input type="text" name="prenom" value="THELIA-PRENOM" /> | ||
+ | adresse THELIA-ADRESSE1[(obligatoire)] | ||
+ | <input type="text" name="adresse1" value="THELIA-ADRESSE1" /> | ||
+ | adresse_suite | ||
+ | <input type="text" name="adresse2" value="THELIA-ADRESSE2" /> | ||
+ | complement_adresse | ||
+ | <input type="text" name="adresse3" value="THELIA-ADRESSE3" /> | ||
+ | code postal THELIA-CPOSTAL[(obligatoire)] | ||
+ | <input type="text" name="cpostal" value="THELIA-CPOSTAL" /> | ||
+ | ville THELIA-VILLE[(obligatoire)] | ||
+ | <input type="text" name="ville" value="THELIA-VILLE" /> | ||
+ | pays THELIA-PAYS[(obligatoire:>)] | ||
+ | <select name="pays" size="1" > | ||
+ | <option value="" selected="selected">choisissez</option> | ||
+ | <THELIA_pays type="PAYS" zdefinie="1"> | ||
+ | <option value="THELIA-ID" THELIA-SELECTED>THELIA-TITRE</option> | ||
+ | </THELIA_pays> | ||
+ | </select> | ||
+ | telephone_fixe THELIA-TELFIXE[(obligatoire)] | ||
+ | <input type="text" name="telfixe" value="THELIA-TELFIXE" /> | ||
+ | telephone portable | ||
+ | <input type="text" name="telport" value="THELIA-TELPORT" /> | ||
+ | email THELIA-EMAIL[(Vérifiez votre E-Mail)]THELIA-EXISTE[(compte existe deja)] | ||
+ | <input type="text" value="THELIA-EMAIL" name="email1" /> | ||
+ | confirmation email | ||
+ | <input type="text" value="THELIA-EMAIL" name="email2" /> | ||
+ | mdp THELIA-MOTDEPASSE[(verifiez mdp)] | ||
+ | <input name="motdepasse1" type="password" /> | ||
+ | confirmation mdp | ||
+ | <input name="motdepasse2" type="password" /> | ||
+ | <input type="submit" value="valider" /> | ||
+ | </form> | ||
+ | </pre> | ||
+ | |||
+ | =='''Formulaire connexion spip et thelia (connexion.php)'''== | ||
+ | |||
+ | [[Image:Connexion.png]] | ||
+ | |||
+ | <pre> | ||
+ | <form action="#URL_PAGE{connexion,lang=#LANG}" method="post" name="connexion" id="connexion"> | ||
+ | <input type="hidden" name="thelia_action" value="connexion" /> | ||
+ | mon_email THELIA-ERRCONNEX[(err_emailmdp)] | ||
+ | <input name="email" type="text" /> | ||
+ | mon_mdp | ||
+ | <input name="motdepasse" type="password" /> | ||
+ | <input type="submit" value="valider" /> | ||
+ | </form> | ||
+ | |||
+ | nouveau_client | ||
+ | <form action="#URL_PAGE{nouveau,lang=#LANG}" method="post" name="nouveau" id="nouveau"> | ||
+ | <input type="hidden" name="thelia_action" value="creercompte" /> | ||
+ | civilite* | ||
+ | <select name="raison" size="1" > | ||
+ | <option value="" selected="selected">choisissez</option> | ||
+ | <option value="1">madame</option> | ||
+ | <option value="2">mademoiselle</option> | ||
+ | <option value="3">monsieur</option> | ||
+ | </select> | ||
+ | nom* | ||
+ | <input name="nom" type="text" /> | ||
+ | prenom* | ||
+ | <input name="prenom" type="text" /> | ||
+ | adresse* | ||
+ | <input name="adresse1" type="text" /> | ||
+ | adresse_suite | ||
+ | <input name="adresse2" type="text" /> | ||
+ | complement_adresse | ||
+ | <input name="adresse3" type="text" /> | ||
+ | code_postal* | ||
+ | <input name="cpostal" type="text" /> | ||
+ | ville* | ||
+ | <input name="ville" type="text" /> | ||
+ | pays* | ||
+ | <select name="pays" size="1" > | ||
+ | <THELIA_pays type="PAYS" zdefinie="1" select="64"> | ||
+ | <option value="THELIA-ID" THELIA-SELECTED>THELIA-TITRE</option> | ||
+ | </THELIA_pays> | ||
+ | </select> | ||
+ | telephone_fixe* | ||
+ | <input name="telfixe" type="text" /> | ||
+ | telephone_portable | ||
+ | <input name="telport" type="text" /> | ||
+ | email* | ||
+ | <input name="email1" type="text" /> | ||
+ | confirmation_email* | ||
+ | <input name="email2" type="text" /> | ||
+ | mdp* | ||
+ | <input name="motdepasse1" type="password" /> | ||
+ | confirmation_mdp* | ||
+ | <input name="motdepasse2" type="password" /> | ||
+ | * champs_obligatoires | ||
+ | <input type="submit" value="valider" /> | ||
+ | </form> | ||
+ | </pre> | ||
+ | |||
+ | --[[Utilisateur:Alainormandie|alainormandie]] 25 septembre 2008 à 04:44 (UTC) | ||
+ | |||
+ | * [[Les boucles spip et thelia]] | ||
+ | * [[Les formulaires]] |
Version actuelle en date du 8 février 2009 à 13:30
Erreur lors de la création de la miniature : Impossible d'enregistrer la vignette sur la destination
Attention ces boucles nécessitent l'installation du plugin spip-thelia
Sommaire
Attention sous spip et thelia
- Dans thelia
creercompte.php? nouveau.php? compte_modifier.php? compte_modifiererr.php? connexion.php? mdpoublie.php? moncompte.php?
- et renomé dans spip et thelia
spip.php?page=creercompte spip.php?page=nouveau spip.php?page=compte_modifier spip.php?page=compte_modifiererr spip.php?page=connexion spip.php?page=mdpoublie spip.php?page=moncompte
- par la boucle
#URL_PAGE{creercompte} #URL_PAGE{nouveau} #URL_PAGE{compte_modifier} #URL_PAGE{compte_modifiererr} #URL_PAGE{connexion} #URL_PAGE{mdpoublie} #URL_PAGE{moncompte}
Formulaires nouveau compte spip et thelia (creercompte.php)
Erreur lors de la création de la miniature : Impossible d'enregistrer la vignette sur la destination
<form action="#URL_PAGE{nouveau,lang=#LANG}" method="post" name="nouveau" id="nouveau"> <input type="hidden" name="thelia_action" value="creercompte" /> civilite* <select name="raison" size="1" > <option value="" selected="selected">choisissez</option> <option value="1">madame</option> <option value="2">mademoiselle</option> <option value="3">monsieur</option> </select> nom* <input type="text" name="nom" /> prenom* <input type="text" name="prenom" /> adresse* <input type="text" name="adresse1" /> adresse_suite <input type="text" name="adresse2" /> complement_adresse <input type="text" name="adresse3" /> code_postal* <input type="text" name="cpostal" /> ville* <input type="text" name="ville" /> pays* <select name="pays" size="1" > <THELIA_pays type="PAYS" zdefinie="1" select="64"> <option value="THELIA-ID" THELIA-SELECTED>THELIA-TITRE</option> </THELIA_pays> </select> telephone_fixe* <input type="text" name="telfixe" /> telephone_portable <input type="text" name="telport" /> email* <input type="text" name="email1" /> confirmation_email* <input type="text" name="email2" /> mdp* (mdp_caracteres_minimum) <input name="motdepasse1" type="password" /> confirmation mdp* <input name="motdepasse2" type="password" /> * champs_obligatoires <input type="submit" value="valider" /> </form>
Formulaire identification spip et thelia
Il peut être intéressant d'afficher telle ou telle information suivant si le client est identifié ou non.
Nous afficherons le lien « déconnexion » si le client est connecté et un formulaire d'identification dans le cas contraire.
Thelia est capable de gérer cela, de la façon suivante.
<THELIA SI CONNECTE> Code à afficher si connecté </THELIA SI CONNECTE>
<THELIA SI NON CONNECTE> Code à afficher si non connecté </THELIA SI NON CONNECTE>
<THELIA SI NON CONNECTE> <a href="#URL_PAGE{connexion}">se connecter</a> <a href="#URL_PAGE{mdpoublie}">mdp oublie:></a> </THELIA SI NON CONNECTE> <THELIA SI CONNECTE> <a href="#URL_PAGE{moncompte}">mon_compte</a> <a href="#URL_PAGE{sommaire, thelia_action=deconnexion}">se deconnecter</a> </THELIA SI CONNECTE>
Formulaire erreur spip et thelia (formulerr.php)
Erreur lors de la création de la miniature : Impossible d'enregistrer la vignette sur la destination
<form action="#URL_PAGE{nouveau,lang=#LANG}" method="post" name="nouveau" id="nouveau"> <input type="hidden" name="thelia_action" value="creercompte" /> civilite THELIA-RAISON[(obligatoire)] <select name="raison" size="1" > <option value="" selected="selected">choisissez:></option> <option value="1" THELIA-RAISON1>madame</option> <option value="2" THELIA-RAISON2>mademoiselle</option> <option value="3" THELIA-RAISON3>monsieur</option> </select> nom THELIA-NOM[(obligatoire)] <input type="text" name="nom" value="THELIA-NOM" /> prenom THELIA-PRENOM[(obligatoire)] <input type="text" name="prenom" value="THELIA-PRENOM" /> adresse THELIA-ADRESSE1[(obligatoire)] <input type="text" name="adresse1" value="THELIA-ADRESSE1" /> adresse_suite <input type="text" name="adresse2" value="THELIA-ADRESSE2" /> complement_adresse <input type="text" name="adresse3" value="THELIA-ADRESSE3" /> code postal THELIA-CPOSTAL[(obligatoire)] <input type="text" name="cpostal" value="THELIA-CPOSTAL" /> ville THELIA-VILLE[(obligatoire)] <input type="text" name="ville" value="THELIA-VILLE" /> pays THELIA-PAYS[(obligatoire:>)] <select name="pays" size="1" > <option value="" selected="selected">choisissez</option> <THELIA_pays type="PAYS" zdefinie="1"> <option value="THELIA-ID" THELIA-SELECTED>THELIA-TITRE</option> </THELIA_pays> </select> telephone_fixe THELIA-TELFIXE[(obligatoire)] <input type="text" name="telfixe" value="THELIA-TELFIXE" /> telephone portable <input type="text" name="telport" value="THELIA-TELPORT" /> email THELIA-EMAIL[(Vérifiez votre E-Mail)]THELIA-EXISTE[(compte existe deja)] <input type="text" value="THELIA-EMAIL" name="email1" /> confirmation email <input type="text" value="THELIA-EMAIL" name="email2" /> mdp THELIA-MOTDEPASSE[(verifiez mdp)] <input name="motdepasse1" type="password" /> confirmation mdp <input name="motdepasse2" type="password" /> <input type="submit" value="valider" /> </form>
Formulaire connexion spip et thelia (connexion.php)
Erreur lors de la création de la miniature : Impossible d'enregistrer la vignette sur la destination
<form action="#URL_PAGE{connexion,lang=#LANG}" method="post" name="connexion" id="connexion"> <input type="hidden" name="thelia_action" value="connexion" /> mon_email THELIA-ERRCONNEX[(err_emailmdp)] <input name="email" type="text" /> mon_mdp <input name="motdepasse" type="password" /> <input type="submit" value="valider" /> </form> nouveau_client <form action="#URL_PAGE{nouveau,lang=#LANG}" method="post" name="nouveau" id="nouveau"> <input type="hidden" name="thelia_action" value="creercompte" /> civilite* <select name="raison" size="1" > <option value="" selected="selected">choisissez</option> <option value="1">madame</option> <option value="2">mademoiselle</option> <option value="3">monsieur</option> </select> nom* <input name="nom" type="text" /> prenom* <input name="prenom" type="text" /> adresse* <input name="adresse1" type="text" /> adresse_suite <input name="adresse2" type="text" /> complement_adresse <input name="adresse3" type="text" /> code_postal* <input name="cpostal" type="text" /> ville* <input name="ville" type="text" /> pays* <select name="pays" size="1" > <THELIA_pays type="PAYS" zdefinie="1" select="64"> <option value="THELIA-ID" THELIA-SELECTED>THELIA-TITRE</option> </THELIA_pays> </select> telephone_fixe* <input name="telfixe" type="text" /> telephone_portable <input name="telport" type="text" /> email* <input name="email1" type="text" /> confirmation_email* <input name="email2" type="text" /> mdp* <input name="motdepasse1" type="password" /> confirmation_mdp* <input name="motdepasse2" type="password" /> * champs_obligatoires <input type="submit" value="valider" /> </form>
--alainormandie 25 septembre 2008 à 04:44 (UTC)