<%@ Page Language="C#" Buffer="true" CodeFile="nous_contacter.aspx.cs" Inherits="_nous_contacter" CodePage="65001" UICulture="fr" Culture="fr-FR" ValidateRequest="true" %> <%@ Import Namespace="ItlRuntime" %> <%@ Import Namespace="System.Collections.Generic" %> <%@ Import Namespace="System.Linq" %> <% EC.linkableClassMap = (Map) EC.newMap(new Map() , "ocsNewsEvent:news", new ClassLink("./page00013329.aspx?card=object", "linkTable.aspx?GID=00013329&card=object", "Actualité")); %><% string cmd = (string) ((string)EC.itl.getParameterValue("string", "cmd")); %> " /> Nous contacter
Trémentines

Nous contacter

<% OdfControl cC0000005c = OdfControlFactory.create("stringItem", "C0000005c", "civility", null); cC0000005c.setProperty("label", "Civilité"); cC0000005c.setProperty("width", "145"); cC0000005c.setProperty("missingreason", "Le champ est obligatoire."); cC0000005c.setProperty("title", "Civilité"); cC0000005c.setProperty("kind", "optional"); cC0000005c.setProperty("value", (SqlObject)EC.execCode(delegate(){SqlObject _t0 = new SqlObject("omc:stringItem", @"SELECT this.`_oid` AS this FROM omc_stringItem AS this WHERE (this.iso_sid <> '') AND (this.name = 'usr:civility:MLLE')", new Map(),false); return _t0;})); cC0000005c.setProperty("readonly", false); cC0000005c.setProperty("rendermode", "select"); cC0000005c.setProperty("listname", "usr:civility"); OdfControl cC0000005e = OdfControlFactory.create("text", "C0000005e", "lastname", null); cC0000005e.setProperty("label", "Nom"); cC0000005e.setProperty("width", "400"); cC0000005e.setProperty("missingreason", "Le champ est obligatoire."); cC0000005e.setProperty("title", "Nom"); cC0000005e.setProperty("kind", "required"); cC0000005e.setProperty("value", ""); cC0000005e.setProperty("readonly", false); OdfControl cC00000060 = OdfControlFactory.create("text", "C00000060", "firstname", null); cC00000060.setProperty("label", "Prénom"); cC00000060.setProperty("width", "400"); cC00000060.setProperty("missingreason", "Le champ est obligatoire."); cC00000060.setProperty("title", "Prénom"); cC00000060.setProperty("kind", "optional"); cC00000060.setProperty("value", ""); cC00000060.setProperty("readonly", false); OdfControl cC00000062 = OdfControlFactory.create("textArea", "C00000062", "address", null); cC00000062.setProperty("label", "Adresse"); cC00000062.setProperty("width", "400"); cC00000062.setProperty("height", "50"); cC00000062.setProperty("missingreason", "Le champ est obligatoire."); cC00000062.setProperty("title", "Adresse"); cC00000062.setProperty("kind", "optional"); cC00000062.setProperty("value", ""); cC00000062.setProperty("readonly", false); OdfControl cC00000064 = OdfControlFactory.create("text", "C00000064", "zipCode", null); cC00000064.setProperty("label", "Code postal"); cC00000064.setProperty("width", "400"); cC00000064.setProperty("missingreason", "Le champ est obligatoire."); cC00000064.setProperty("title", "Code postal"); cC00000064.setProperty("kind", "optional"); cC00000064.setProperty("value", ""); cC00000064.setProperty("readonly", false); OdfControl cC00000066 = OdfControlFactory.create("text", "C00000066", "city", null); cC00000066.setProperty("label", "Ville"); cC00000066.setProperty("width", "400"); cC00000066.setProperty("missingreason", "Le champ est obligatoire."); cC00000066.setProperty("title", "Ville"); cC00000066.setProperty("kind", "optional"); cC00000066.setProperty("value", ""); cC00000066.setProperty("readonly", false); OdfControl cC00000068 = OdfControlFactory.create("text", "C00000068", "phone", null); cC00000068.setProperty("label", "Téléphone"); cC00000068.setProperty("width", "400"); cC00000068.setProperty("missingreason", "Le champ est obligatoire."); cC00000068.setProperty("title", "Téléphone"); cC00000068.setProperty("kind", "optional"); cC00000068.setProperty("value", ""); cC00000068.setProperty("readonly", false); OdfControl cC0000006a = OdfControlFactory.create("text", "C0000006a", "email", null); cC0000006a.setProperty("label", "E-mail"); cC0000006a.setProperty("width", "400"); cC0000006a.setProperty("missingreason", "Le champ est obligatoire."); cC0000006a.setProperty("title", "E-mail"); cC0000006a.setProperty("kind", "required"); cC0000006a.setProperty("value", ""); cC0000006a.setProperty("readonly", false); OdfControl cC0000006c = OdfControlFactory.create("textArea", "C0000006c", "comments", null); cC0000006c.setProperty("label", "Commentaires"); cC0000006c.setProperty("width", "400"); cC0000006c.setProperty("height", "80"); cC0000006c.setProperty("missingreason", "Le champ est obligatoire."); cC0000006c.setProperty("title", "Commentaires"); cC0000006c.setProperty("kind", "required"); cC0000006c.setProperty("value", ""); cC0000006c.setProperty("readonly", false); OdfControl cC00002af2 = OdfControlFactory.create("captcha", "C00002af2", "captcha", null); cC00002af2.setProperty("label", "Tapez les caractères qui s\'affichent dans l\'image"); cC00002af2.setProperty("width", "80"); cC00002af2.setProperty("missingreason", "Vous devez remplir ce champ avec les lettres que vous voyez apparaître dans l\'image à la droite du contrôle."); cC00002af2.setProperty("title", "Veuiller remplir ce champ avec les lettres \nque vous voyez apparaître dans l\'image \nà la droite du contrôle.\n\nCe mécanisme interdit aux robots de se servir du formulaire."); cC00002af2.setProperty("captchareason", "Vous devez remplir ce champ avec les lettres que vous voyez apparaître dans l\'image à la droite du contrôle."); cC00002af2.setProperty("kind", "required"); cC00002af2.setProperty("readonly", false); %>
<% ItlForm form1 = new ItlForm("form1", EC.itl.getId(), "./nous_contacter.aspx", "G00010027_2"); form1.setProperty("name", "form00010027"); form1.setProperty("method", "post"); form1.setProperty("enctype", "multipart/form-data"); form1.setProperty("hasProcessing", true); if(form1.isFirstPost()) { if(form1.isValid()) { try { ItlMail mail4 = new ItlMail(); mail4.setProperty("to", "mairiedetrementines@wanadoo.fr"); mail4.setProperty("from", "mairiedetrementines@wanadoo.fr"); mail4.setProperty("subject", "Contact depuis le site internet."); mail4.setProperty("cc", ""); mail4.addToBody( @"

Une personne vient de remplir le formulaire de contact depuis le site internet de rementines

"); parity = (bool?)(ITL.gv["parity"] = true); string value = (string) (EC.itl.getRequestVar("civility", null)); mail4.addToBody( @" "); parity = (bool?)(ITL.gv["parity"] = false); mail4.addToBody( @" "); string value__1 = (string) (EC.itl.getRequestVar("lastname", null)); mail4.addToBody( @" "); parity = (bool?)(ITL.gv["parity"] = true); mail4.addToBody( @" "); string value__2 = (string) (EC.itl.getRequestVar("firstname", null)); mail4.addToBody( @" "); parity = (bool?)(ITL.gv["parity"] = false); mail4.addToBody( @" "); string value__3 = (string) (EC.itl.getRequestVar("address", null)); mail4.addToBody( @" "); parity = (bool?)(ITL.gv["parity"] = true); mail4.addToBody( @" "); string value__4 = (string) (EC.itl.getRequestVar("zipCode", null)); mail4.addToBody( @" "); parity = (bool?)(ITL.gv["parity"] = false); mail4.addToBody( @" "); string value__5 = (string) (EC.itl.getRequestVar("city", null)); mail4.addToBody( @" "); parity = (bool?)(ITL.gv["parity"] = true); mail4.addToBody( @" "); string value__6 = (string) (EC.itl.getRequestVar("phone", null)); mail4.addToBody( @" "); parity = (bool?)(ITL.gv["parity"] = false); mail4.addToBody( @" "); string value__7 = (string) (EC.itl.getRequestVar("email", null)); mail4.addToBody( @" "); parity = (bool?)(ITL.gv["parity"] = true); mail4.addToBody( @" "); string value__8 = (string) (EC.itl.getRequestVar("comments", null)); mail4.addToBody( @" "); parity = (bool?)(ITL.gv["parity"] = false); mail4.addToBody( @"
Propriété Valeur
Civilité "); if(ITL.isNull(value) || value == "") { mail4.addToBody( @" "); } else { SqlObject _t1 = new SqlObject("omc:stringItem", @"SELECT this.`_oid` AS this, this.label_fr AS this_p_label_fr FROM omc_stringItem AS this WHERE (this.iso_sid <> '') AND (this.`_oid` = #V_0&;)", new Map("#V_0&;|integer", ITL.i(value)),false); ITL.show((string)_t1.get("this_p_label_fr"), "string", "html", "string"); } mail4.addToBody( @"
Nom "); if(ITL.isNull(value__1) || value__1 == "") { mail4.addToBody( @" "); } else { ITL.show(value__1, "string", "html", "string"); } mail4.addToBody( @"
Prénom "); if(ITL.isNull(value__2) || value__2 == "") { mail4.addToBody( @" "); } else { ITL.show(value__2, "string", "html", "string"); } mail4.addToBody( @"
Adresse "); if(ITL.isNull(value__3) || value__3 == "") { mail4.addToBody( @" "); } else { ITL.show(value__3, "string", "memo", "string"); } mail4.addToBody( @"
Code postal "); if(ITL.isNull(value__4) || value__4 == "") { mail4.addToBody( @" "); } else { ITL.show(value__4, "string", "html", "string"); } mail4.addToBody( @"
Ville "); if(ITL.isNull(value__5) || value__5 == "") { mail4.addToBody( @" "); } else { ITL.show(value__5, "string", "html", "string"); } mail4.addToBody( @"
Téléphone "); if(ITL.isNull(value__6) || value__6 == "") { mail4.addToBody( @" "); } else { ITL.show(value__6, "string", "html", "string"); } mail4.addToBody( @"
E-mail "); if(ITL.isNull(value__7) || value__7 == "") { mail4.addToBody( @" "); } else { ITL.show(value__7, "string", "html", "string"); } mail4.addToBody( @"
Commentaires "); if(ITL.isNull(value__8) || value__8 == "") { mail4.addToBody( @" "); } else { ITL.show(value__8, "string", "memo", "string"); } mail4.addToBody( @"
"); if(!mail4.exec()) { throw new ItlException(mail4.getDiagnostics()); }%>

Votre demande a bien été enregistrée.
Nous y répondrons dans les plus brefs délais.


L'équipe municipale.

<% form1.hideContent(); } catch(ItlException e3) { string diag = (string) (e3.getDiagnostics()); %>

Impossible de sauvegarder vos données.
<% ITL.show(diag, "string", "html", "string"); %>

<% form1.fails(); } } } if(form1.canShow()) { form1.show(); %>

(*) Les champs marqués d'un astérisque sont obligatoires

Vos coordonnées
<% cC0000005c.setForm(form1); cC0000005c.show(); %>
<% cC0000005e.setForm(form1); cC0000005e.show(); %>
<% cC00000060.setForm(form1); cC00000060.show(); %>
<% cC00000062.setForm(form1); cC00000062.show(); %>
<% cC00000064.setForm(form1); cC00000064.show(); %>
<% cC00000066.setForm(form1); cC00000066.show(); %>
<% cC00000068.setForm(form1); cC00000068.show(); %>
<% cC0000006a.setForm(form1); cC0000006a.show(); %>
<% cC0000006c.setForm(form1); cC0000006c.show(); %>
<% cC00002af2.setForm(form1); cC00002af2.show(); %>

style="width:auto;"> <% if(true) { string buttonClass = (string) ("sdsSubmitButton"); %> type="submit" value="Envoyer" style="width:auto"/> <% } %>
<% form1.close();} %>
<% if(true) { %>


Données personnelles

Conformément à la loi Informatique et Libertés du 6 janvier 1978, vous bénéficiez d'un droit d'accès et de rectification aux données vous concernant. Vous pouvez demander, par simple lettre en mairie.
En aucun cas une demande ne peut être prise par téléphone.

<% } else { %><% } %>