08/03/2013, 21:52:13
le voici, merci de ton aide
Code :
[== XML ==]
<?xml version="1.0" encoding="utf-8"?>
<form id="1"
alias="contact">
<form_name><![CDATA[Contact Form]]></form_name>
<attribute key="predisplay_udt"><![CDATA[-1]]></attribute>
<attribute key="inline"><![CDATA[1]]></attribute>
<attribute key="submit_response"><![CDATA[<div style="text-align:center; font-size: 20px;"><p>Merci, <strong>{$Nom} {$Prenom}</strong>.</p>
<img src="image/greenok.png"/> <p>Votre message nous à bien été transmis, nous vous répondrons dans les plus brefs délais. </p></div>
<div style="text-align:center; font-size: 15px;">
<p>
<a href="http://concierge-privileges.fr/">Revenir à la page d'accueil</a>
</p> </div>
]]></attribute>
<attribute key="title_user_captcha"><![CDATA[Merci de bien vouloir vous soumettre à la vérification 'antispam'.]]></attribute>
<attribute key="unspecified"><![CDATA[non spécifiées]]></attribute>
<attribute key="use_captcha"><![CDATA[0]]></attribute>
<attribute key="input_button_safety"><![CDATA[0]]></attribute>
<attribute key="required_field_symbol"><![CDATA[*]]></attribute>
<attribute key="prev_button_text"><![CDATA[Retour...]]></attribute>
<attribute key="validate_udt"><![CDATA[-1]]></attribute>
<attribute key="captcha_wrong"><![CDATA[Le Captcha n'est pas correct, merci de réesayer.]]></attribute>
<attribute key="list_delimiter"><![CDATA[,]]></attribute>
<attribute key="predisplay_each_udt"><![CDATA[-1]]></attribute>
<attribute key="submit_action"><![CDATA[text]]></attribute>
<attribute key="next_button_text"><![CDATA[Continué...]]></attribute>
<attribute key="submit_javascript"><![CDATA[]]></attribute>
<attribute key="css_class"><![CDATA[formbuilderform]]></attribute>
<attribute key="redirect_page"><![CDATA[-1]]></attribute>
<attribute key="submit_button_text"><![CDATA[ENVOYER]]></attribute>
<attribute key="form_template"><![CDATA[{* TABLE FORM LAYOUT / Field titles on Left *}
{* next line sets number of columns for things like checkbox groups *}
{assign var="cols" value="3"}
{literal}
<script type="text/javascript">
function fbht(htid)
{
var fbhtc=document.getElementById(htid);
if (fbhtc)
{
if (fbhtc.style.display == 'none')
{
fbhtc.style.display = 'inline';
}
else
{
fbhtc.style.display = 'none';
}
}
}
</script>
{/literal}
{$fb_form_header}
{if $fb_form_done == 1}
{* This first section is for displaying submission errors *}
{if $fb_submission_error}
<div class="error_message">{$fb_submission_error}</div>
{if $fb_show_submission_errors}
<table class="error">
{foreach from=$fb_submission_error_list item=thisErr}
<tr><td>{$thisErr}</td></tr>
{/foreach}
</table>
{/if}
{/if}
{else}
{* this section is for displaying the form *}
{* we start with validation errors *}
{if $fb_form_has_validation_errors}
<div class="error_message">
<ul>
{foreach from=$fb_form_validation_errors item=thisErr}
<li>{$thisErr}</li>
{/foreach}
</ul>
</div>
{/if}
{if $captcha_error}
<div class="error_message">{$captcha_error}</div>
{/if}
{* and now the form itself *}
{$fb_form_start}
<div>{$fb_hidden}</div>
<table{if $css_class != ''} class="{$css_class}"{/if}>
{if $total_pages gt 1}<tr><td colspan="2">Contacteuuuh</td></tr>{/if}
{foreach from=$fields item=entry}
{if $entry->display == 1 &&
$entry->type != '-Fieldset Start' &&
$entry->type != '-Fieldset End' }
<tr>
{strip}
<td align="right" valign="top"
{if $entry->required == 1 || $entry->css_class != ''} class="
{if $entry->required == 1}
required
{/if}
{if $entry->required == 1 && $entry->css_class != ''} {/if}
{if $entry->css_class != ''}
{$entry->css_class}
{/if}
"
{/if}
>
{if $entry->hide_name == 0}
{$entry->name}
{if $entry->required_symbol != ''}
{$entry->required_symbol}
{/if}
{/if}
</td><td align="left" valign="top"{if $entry->css_class != ''} class="{$entry->css_class}"{/if}>
{if $entry->multiple_parts == 1}
<table>
<tr>
{section name=numloop loop=$entry->input}
<td>{$entry->input[numloop]->input} {$entry->input[numloop]->name}{if $entry->input[numloop]->op} {$entry->input[numloop]->op}{/if}</td>
{if not ($smarty.section.numloop.rownum mod $cols)}
{if not $smarty.section.numloop.last}
</tr><tr>
{/if}
{/if}
{if $smarty.section.numloop.last}
{math equation = "n - a % n" n=$cols a=$entry->input|@count assign="cells"}
{if $cells ne $cols}
{section name=pad loop=$cells}
<td> </td>
{/section}
{/if}
</tr>
{/if}
{/section}
</table>
{else}
{if $entry->smarty_eval == '1'}{eval var=$entry->input}{else}{$entry->input}{/if}
{/if}
{if $entry->valid == 0} <--- {$entry->error}{/if}
{if $entry->helptext != ''} <a href="javascript:fbht('{$entry->field_helptext_id}')"><img src="modules/FormBuilder/images/info-small.gif" alt="Help" /></a>
<span id="{$entry->field_helptext_id}" style="display:none" class="fbr_helptext">{$entry->helptext}</span>{/if}
</td></tr>
{/strip}
{/if}
{/foreach}
{if $has_captcha == 1}
<tr><td>{$graphic_captcha}</td><td>{$input_captcha}<br />{$title_captcha}</td></tr>
{/if}
<tr><td>{$prev}</td><td>{$submit}</td></tr>
</table>
{$fb_form_end}
{/if}
{$fb_form_footer}]]></attribute>
<field id="34"
type="FieldsetStart"
validation_type=""
order_by="1"
required="0"
hide_label="0"
display_in_submission="">
<field_name><![CDATA[fieldset on]]></field_name>
<options>
<option name="legend"><![CDATA[Contact]]></option>
<option name="field_alias"><![CDATA[]]></option>
<option name="css_class"><![CDATA[legendform]]></option>
<option name="helptext"><![CDATA[]]></option>
<option name="javascript"><![CDATA[]]></option>
<option name="field_logic"><![CDATA[]]></option>
<value><![CDATA[]]></value>
</options>
</field>
<field id="33"
type="RadioGroupField"
validation_type=""
order_by="2"
required="1"
hide_label="0"
display_in_submission="1">
<field_name><![CDATA[Un :]]></field_name>
<options>
<option name="button_name"><![CDATA[Particulier]]></option>
<option name="button_name"><![CDATA[Société]]></option>
<option name="button_name"><![CDATA[Partenaire]]></option>
<option name="button_checked"><![CDATA[]]></option>
<option name="button_checked"><![CDATA[]]></option>
<option name="button_checked"><![CDATA[]]></option>
<option name="button_is_set"><![CDATA[n]]></option>
<option name="button_is_set"><![CDATA[n]]></option>
<option name="button_is_set"><![CDATA[n]]></option>
<option name="field_alias"><![CDATA[Demande]]></option>
<option name="css_class"><![CDATA[Demandeform]]></option>
<option name="helptext"><![CDATA[]]></option>
<option name="javascript"><![CDATA[]]></option>
<option name="field_logic"><![CDATA[]]></option>
<value><![CDATA[]]></value>
</options>
</field>
<field id="32"
type="RadioGroupField"
validation_type=""
order_by="3"
required="1"
hide_label="0"
display_in_submission="1">
<field_name><![CDATA[Civilités : ]]></field_name>
<options>
<option name="button_name"><![CDATA[Mme.]]></option>
<option name="button_name"><![CDATA[Melle.]]></option>
<option name="button_name"><![CDATA[Mr.]]></option>
<option name="button_checked"><![CDATA[]]></option>
<option name="button_checked"><![CDATA[]]></option>
<option name="button_checked"><![CDATA[]]></option>
<option name="button_is_set"><![CDATA[n]]></option>
<option name="button_is_set"><![CDATA[n]]></option>
<option name="button_is_set"><![CDATA[n]]></option>
<option name="field_alias"><![CDATA[Civilites]]></option>
<option name="css_class"><![CDATA[civilitesform]]></option>
<option name="helptext"><![CDATA[]]></option>
<option name="javascript"><![CDATA[]]></option>
<option name="field_logic"><![CDATA[]]></option>
<value><![CDATA[]]></value>
</options>
</field>
<field id="2"
type="FromEmailNameField"
validation_type=""
order_by="4"
required="1"
hide_label="0"
display_in_submission="1">
<field_name><![CDATA[Nom : ]]></field_name>
<options>
<option name="css_class"><![CDATA[nomform]]></option>
<option name="headers_to_modify"><![CDATA[b]]></option>
<option name="field_alias"><![CDATA[Nom]]></option>
<option name="helptext"><![CDATA[]]></option>
<option name="javascript"><![CDATA[]]></option>
<option name="field_logic"><![CDATA[]]></option>
<option name="default"><![CDATA[]]></option>
<option name="html5"><![CDATA[0]]></option>
<option name="clear_default"><![CDATA[0]]></option>
<value><![CDATA[]]></value>
</options>
</field>
<field id="29"
type="FromEmailNameField"
validation_type=""
order_by="5"
required="1"
hide_label="0"
display_in_submission="1">
<field_name><![CDATA[Prénom : ]]></field_name>
<options>
<option name="headers_to_modify"><![CDATA[b]]></option>
<option name="field_alias"><![CDATA[Prenom]]></option>
<option name="css_class"><![CDATA[prenomform]]></option>
<option name="helptext"><![CDATA[]]></option>
<option name="javascript"><![CDATA[]]></option>
<option name="field_logic"><![CDATA[]]></option>
<option name="default"><![CDATA[]]></option>
<option name="html5"><![CDATA[0]]></option>
<option name="clear_default"><![CDATA[0]]></option>
<value><![CDATA[]]></value>
</options>
</field>
<field id="3"
type="DispositionFromEmailAddressField"
validation_type="none"
order_by="6"
required="1"
hide_label="0"
display_in_submission="1">
<field_name><![CDATA[Email :]]></field_name>
<options>
<option name="email_subject"><![CDATA[]]></option>
<option name="email_from_name"><![CDATA[Form Builder]]></option>
<option name="send_user_copy"><![CDATA[n]]></option>
<option name="send_user_label"><![CDATA[M'envoyer une copie]]></option>
<option name="field_alias"><![CDATA[email]]></option>
<option name="javascript"><![CDATA[]]></option>
<option name="html_email"><![CDATA[0]]></option>
<option name="email_template"><![CDATA[FormBuilder Submission
Form Name: {$sub_form_name}
Date of Submission: {$sub_date}
Your server: {$sub_host}
IP address of person using form: {$sub_source_ip}
URL of page containing form: {$sub_url}
FormBuilder version: {$fb_version}
Tab Character: {$TAB}
->
-------------------------------------------------
Your Name: {$fld_2}
Your Email Address: {$fld_3}
Subject: {$fld_5}
Message: {$foo}
]]></option>
<option name="email_encoding"><![CDATA[utf-8]]></option>
<option name="send_using"><![CDATA[to]]></option>
<option name="email_cc_address"><![CDATA[]]></option>
<option name="use_bcc"><![CDATA[0]]></option>
<option name="headers_to_modify"><![CDATA[f]]></option>
<option name="css_class"><![CDATA[emailform]]></option>
<option name="helptext"><![CDATA[]]></option>
<option name="field_logic"><![CDATA[]]></option>
<value><![CDATA[]]></value>
</options>
</field>
<field id="6"
type="TextAreaField"
validation_type="none"
order_by="7"
required="1"
hide_label="0"
display_in_submission="1">
<field_name><![CDATA[Message :]]></field_name>
<options>
<option name="rows"><![CDATA[5]]></option>
<option name="cols"><![CDATA[60]]></option>
<option name="css_class"><![CDATA[messageform]]></option>
<option name="field_alias"><![CDATA[message]]></option>
<option name="default"><![CDATA[Entrer votre message ici..]]></option>
<option name="clear_default"><![CDATA[1]]></option>
<option name="wysiwyg"><![CDATA[0]]></option>
<option name="length"><![CDATA[]]></option>
<option name="helptext"><![CDATA[]]></option>
<option name="field_logic"><![CDATA[]]></option>
<option name="html5"><![CDATA[0]]></option>
<value><![CDATA[]]></value>
</options>
</field>
<field id="30"
type="StaticTextField"
validation_type=""
order_by="8"
required="0"
hide_label="0"
display_in_submission="">
<field_name><![CDATA[Texte]]></field_name>
<options>
<option name="text"><![CDATA[Les champs suivis d'une * sont requis pour l'envoi du message.]]></option>
<option name="field_alias"><![CDATA[texte]]></option>
<option name="css_class"><![CDATA[textestatiqueform]]></option>
<option name="helptext"><![CDATA[]]></option>
<option name="javascript"><![CDATA[]]></option>
<option name="field_logic"><![CDATA[]]></option>
<value><![CDATA[]]></value>
</options>
</field>
<field id="7"
type="DispositionEmail"
validation_type=""
order_by="9"
required="0"
hide_label="0"
display_in_submission="">
<field_name><![CDATA[Envoyé à]]></field_name>
<options>
<option name="email_subject"><![CDATA[contact concierge-privileges.fr]]></option>
<option name="email_from_name"><![CDATA[]]></option>
<option name="email_from_address"><![CDATA[contact@concierge-privileges.fr]]></option>
<option name="destination_address"><![CDATA[contact@concierge-privileges.fr]]></option>
<option name="field_alias"><![CDATA[]]></option>
<option name="html_email"><![CDATA[1]]></option>
<option name="email_template"><![CDATA[<b>Date du message:</b> {$sub_date}<br />
<b>IP de l'expéditeur:</b> {$sub_source_ip}<br />
-----------------------------<br />
<b>De:</b> {$fld_33}<br />
<b>Civilités:</b> {$fld_32}<br />
<b>Nom:</b> {$Nom}<br />
<b>prénom:</b> {$Prenom}<br />
<b>Email:</b> {$Email}<br />
<b>Message:</b> {$message}]]></option>
<option name="email_encoding"><![CDATA[utf-8]]></option>
<option name="send_using"><![CDATA[to]]></option>
<option name="email_cc_address"><![CDATA[]]></option>
<option name="use_bcc"><![CDATA[0]]></option>
<value><![CDATA[]]></value>
</options>
</field>
<field id="35"
type="FieldsetEnd"
validation_type=""
order_by="10"
required="0"
hide_label="0"
display_in_submission="">
<field_name><![CDATA[fieldset off]]></field_name>
<options>
<option name="field_alias"><![CDATA[]]></option>
<option name="css_class"><![CDATA[]]></option>
<option name="helptext"><![CDATA[]]></option>
<option name="field_logic"><![CDATA[]]></option>
<value><![CDATA[]]></value>
</options>
</field>
</form>