CONTACT/Demande de contact
Demande de contact
<% var cC0017a8d9 = odfControlFactory.create("stringItem", "C0017a8d9", "civilite", null); cC0017a8d9.setProperty("label", "Civilité"); cC0017a8d9.setProperty("width", "100"); cC0017a8d9.setProperty("missingreason", "Le champ est obligatoire."); cC0017a8d9.setProperty("kind", "optional"); cC0017a8d9.setProperty("value", (function(){var _t0 = new SqlObject("omc:stringItem", ( "SELECT " + "this.`_oid` AS this \n" + "FROM omc_stringItem AS this \n" + "WHERE \n" + "(this.iso_sid <> '') \n" + "AND (this.name = 'usr:civility:MR')\n"), {},false); return _t0;}())); cC0017a8d9.setProperty("readonly", false); cC0017a8d9.setProperty("rendermode", "select"); cC0017a8d9.setProperty("defaultlabel", "Non spécifié"); cC0017a8d9.setProperty("columns", "2"); cC0017a8d9.setProperty("listname", "usr:civility"); var cC0017a8db = odfControlFactory.create("text", "C0017a8db", "Nom-prenom", null); cC0017a8db.setProperty("label", "Nom prénom"); cC0017a8db.setProperty("width", "400"); cC0017a8db.setProperty("missingreason", "Le champ est obligatoire."); cC0017a8db.setProperty("kind", "required"); cC0017a8db.setProperty("readonly", false); var cC0017a8dd = odfControlFactory.create("text", "C0017a8dd", "Societe-pharmacie", null); cC0017a8dd.setProperty("label", "Société/Pharmacie"); cC0017a8dd.setProperty("width", "400"); cC0017a8dd.setProperty("missingreason", "Le champ est obligatoire."); cC0017a8dd.setProperty("kind", "optional"); cC0017a8dd.setProperty("readonly", false); var cC0017a8df = odfControlFactory.create("text", "C0017a8df", "Fonction", null); cC0017a8df.setProperty("label", "Fonction"); cC0017a8df.setProperty("width", "400"); cC0017a8df.setProperty("missingreason", "Le champ est obligatoire."); cC0017a8df.setProperty("kind", "optional"); cC0017a8df.setProperty("value", null); cC0017a8df.setProperty("readonly", false); var cC0017a8e3 = odfControlFactory.create("textArea", "C0017a8e3", "Adresse", null); cC0017a8e3.setProperty("label", "Adresse"); cC0017a8e3.setProperty("width", "400"); cC0017a8e3.setProperty("height", "80"); cC0017a8e3.setProperty("missingreason", "Le champ est obligatoire."); cC0017a8e3.setProperty("kind", "optional"); cC0017a8e3.setProperty("value", null); cC0017a8e3.setProperty("readonly", false); var cC0017a8e5 = odfControlFactory.create("select", "C0017a8e5", "Pays", null); cC0017a8e5.setProperty("label", "Pays"); cC0017a8e5.setProperty("width", "150"); cC0017a8e5.setProperty("missingreason", "Le champ est obligatoire."); cC0017a8e5.setProperty("kind", "optional"); cC0017a8e5.setProperty("value", "France"); cC0017a8e5.setProperty("readonly", false); cC0017a8e5.addOptions([{"value":"","text":"Non spécifié","properties":{}},{"value":"France","text":"France","properties":{}},{"value":"Belgique","text":"Belgique","properties":{}},{"value":"Luxembourg","text":"Luxembourg","properties":{}},{"value":"Suisse","text":"Suisse","properties":{}},{"value":"Monaco","text":"Monaco","properties":{}},{"value":"Andorre","text":"Andorre","properties":{}},{"value":"Grande-Bretagne","text":"Grande-Bretagne","properties":{}},{"value":"Allemagne","text":"Allemagne","properties":{}},{"value":"Italie","text":"Italie","properties":{}},{"value":"Espagne","text":"Espagne","properties":{}}]); var cC0017a8f7 = odfControlFactory.create("text", "C0017a8f7", "E-mail", null); cC0017a8f7.setProperty("label", "E-mail"); cC0017a8f7.setProperty("width", "400"); cC0017a8f7.setProperty("missingreason", "Le champ est obligatoire."); cC0017a8f7.setProperty("kind", "required"); cC0017a8f7.setProperty("readonly", false); var cC0017a8f9 = odfControlFactory.create("text", "C0017a8f9", "Telephone", null); cC0017a8f9.setProperty("label", "Telephone"); cC0017a8f9.setProperty("width", "400"); cC0017a8f9.setProperty("missingreason", "Le champ est obligatoire."); cC0017a8f9.setProperty("kind", "optional"); cC0017a8f9.setProperty("value", null); cC0017a8f9.setProperty("readonly", false); var cC0017a8fb = odfControlFactory.create("textArea", "C0017a8fb", "Message", null); cC0017a8fb.setProperty("label", "Message"); cC0017a8fb.setProperty("width", "400"); cC0017a8fb.setProperty("height", "80"); cC0017a8fb.setProperty("missingreason", "Le champ est obligatoire."); cC0017a8fb.setProperty("kind", "optional"); cC0017a8fb.setProperty("value", null); cC0017a8fb.setProperty("readonly", false); var debug = false; var action = "sendMail"; %>Une personne vient de remplir le formulaire de contact.
\n" + "| Propriété | \n" + "Valeur | \n" + "
|---|---|
| \n" + " Civilité\n" + " | \n" + "\n" + " \n")); if(isNull(value) || value == "") { mail4.addToBody(" "); } else { var _t1 = new SqlObject("omc:stringItem", ( "SELECT " + "this.`_oid` AS this, \n" + "this.label_fr AS this_p_label_fr \n" + "FROM omc_stringItem AS this \n" + "WHERE \n" + "(this.iso_sid <> '') \n" + "AND (this.`_oid` = #V_0&;)\n"), {"#V_0&;|integer":_i_S_n(value)},false); _show(_t1.get("this_p_label_fr"), "string", "html", "string"); } mail4.addToBody(( "" + " | \n" + "
| \n" + " Nom prénom\n" + " | \n" + "\n" + " \n")); if(isNull(value) || value == "") { mail4.addToBody(" "); } else { _show(value, "string", "html", "string"); } mail4.addToBody(( "" + " | \n" + "
| \n" + " Société/Pharmacie\n" + " | \n" + "\n" + " \n")); if(isNull(value) || value == "") { mail4.addToBody(" "); } else { _show(value, "string", "html", "string"); } mail4.addToBody(( "" + " | \n" + "
| \n" + " Fonction\n" + " | \n" + "\n" + " \n")); if(isNull(value) || value == "") { mail4.addToBody(" "); } else { _show(value, "string", "html", "string"); } mail4.addToBody(( "" + " | \n" + "
| \n" + " Adresse\n" + " | \n" + "\n" + " \n")); if(isNull(value) || value == "") { mail4.addToBody(" "); } else { _show(value, "string", "memo", "string"); } mail4.addToBody(( "" + " | \n" + "
| \n" + " Pays\n" + " | \n" + "\n" + " \n")); if(isNull(value) || value == "") { mail4.addToBody(" "); } else { _show(value, "string", "html", "string"); } mail4.addToBody(( "" + " | \n" + "
| \n" + " E-mail\n" + " | \n" + "\n" + " \n")); if(isNull(value) || value == "") { mail4.addToBody(" "); } else { _show(value, "string", "html", "string"); } mail4.addToBody(( "" + " | \n" + "
| \n" + " Telephone\n" + " | \n" + "\n" + " \n")); if(isNull(value) || value == "") { mail4.addToBody(" "); } else { _show(value, "string", "html", "string"); } mail4.addToBody(( "" + " | \n" + "
| \n" + " Message\n" + " | \n" + "\n" + " \n")); if(isNull(value) || value == "") { mail4.addToBody(" "); } else { _show(value, "string", "memo", "string"); } mail4.addToBody(( "" + " | \n" + "
Votre formulaire a bien été traité. Merci.
<% form1.hideContent(); } catch(e3) { if(e3.isItlError) { var diag = e3.getDiagnostics(); %>
Impossible de sauvegarder vos données.
<%
_show(diag, "string", "html", "string");
%>
<%
cC0017a8d9.setForm(form1);
cC0017a8d9.show();
%> | |
<%
cC0017a8db.setForm(form1);
cC0017a8db.show();
%> | |
<%
cC0017a8dd.setForm(form1);
cC0017a8dd.show();
%> | |
<%
cC0017a8df.setForm(form1);
cC0017a8df.show();
%> | |
<%
cC0017a8e3.setForm(form1);
cC0017a8e3.show();
%> | |
<%
cC0017a8e5.setForm(form1);
cC0017a8e5.show();
%> | |
<%
cC0017a8f7.setForm(form1);
cC0017a8f7.show();
%> | |
<%
cC0017a8f9.setForm(form1);
cC0017a8f9.show();
%> | |
<%
cC0017a8fb.setForm(form1);
cC0017a8fb.show();
%> | |
