<?xml version='1.0' encoding='UTF-8'?><uidget><metadata><name>Contact</name><api_version>1.0</api_version><size height='200' width='340' /><server>local://ContactCptServer</server><blog en='53' /><deprecated /></metadata><view><content>&lt;div class=&quot;form&quot;&gt;
	&lt;div class=&quot;result&quot;&gt;&lt;/div&gt;
	&lt;table&gt;
		&lt;tr class=&apos;uicf_f uicf_f_n&apos;&gt;&lt;td&gt;Nom&lt;span class=&quot;uicf_or&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;input type=&quot;text&quot; class=&quot;uicf_tf&quot; name=&quot;name&quot; value=&quot;&quot;/&gt;&lt;/td&gt;&lt;/tr&gt;
		&lt;tr class=&apos;uicf_f uicf_f_c&apos;&gt;&lt;td&gt;Société&lt;span class=&quot;uicf_or&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;input type=&quot;text&quot; class=&quot;uicf_tf&quot; name=&quot;company&quot; value=&quot;&quot;/&gt;&lt;/td&gt;&lt;/tr&gt;
		&lt;tr class=&apos;uicf_f uicf_f_f&apos;&gt;&lt;td&gt;Prénom&lt;span class=&quot;uicf_or&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;input type=&quot;text&quot; class=&quot;uicf_tf&quot; name=&quot;firstname&quot; value=&quot;&quot;/&gt;&lt;/td&gt;&lt;/tr&gt;
		&lt;tr class=&apos;uicf_f uicf_f_a&apos;&gt;&lt;td&gt;Adresse&lt;span class=&quot;uicf_or&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;input type=&quot;text&quot; class=&quot;uicf_tf&quot; name=&quot;address&quot; value=&quot;&quot;/&gt;&lt;/td&gt;&lt;/tr&gt;
		&lt;tr class=&apos;uicf_f uicf_f_z&apos;&gt;&lt;td&gt;Code postal&lt;span class=&quot;uicf_or&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;input type=&quot;text&quot; class=&quot;uicf_tf&quot; name=&quot;zip&quot; value=&quot;&quot;/&gt;&lt;/td&gt;&lt;/tr&gt;
		&lt;tr class=&apos;uicf_f uicf_f_t&apos;&gt;&lt;td&gt;Ville&lt;span class=&quot;uicf_or&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;input type=&quot;text&quot; class=&quot;uicf_tf&quot; name=&quot;city&quot; value=&quot;&quot;/&gt;&lt;/td&gt;&lt;/tr&gt;
		&lt;tr class=&apos;uicf_f uicf_f_p&apos;&gt;&lt;td&gt;Téléphone&lt;span class=&quot;uicf_or&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;input type=&quot;text&quot; class=&quot;uicf_tf&quot; name=&quot;phone&quot; value=&quot;&quot;/&gt;&lt;/td&gt;&lt;/tr&gt;
		&lt;tr class=&apos;uicf_f uicf_f_s&apos;&gt;&lt;td&gt;Sujet&lt;span class=&quot;uicf_or&quot;&gt;&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;input type=&quot;text&quot; class=&quot;uicf_tf&quot; name=&quot;subject&quot; value=&quot;&quot;/&gt;&lt;/td&gt;&lt;/tr&gt;
		&lt;tr&gt;&lt;td class=&apos;uicf_f&apos;&gt;Email&lt;span class=&quot;uicf_or&quot;&gt;*&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;input type=&quot;text&quot; class=&quot;uicf_tf&quot; name=&quot;email&quot; value=&quot;&quot;/&gt;&lt;/td&gt;&lt;/tr&gt;
		&lt;tr&gt;&lt;td class=&apos;uicf_f&apos;&gt;Message&lt;span class=&quot;uicf_or&quot;&gt;*&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;textarea name=&quot;text&quot;&gt;&lt;/textarea&gt;&lt;/td&gt;&lt;/tr&gt;
		&lt;tr class=&apos;uicf_f  uicf_f_at&apos;&gt;&lt;td&gt;Pièces jointes&lt;span class=&quot;uicf_or&quot;&gt;*&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span class=file_list&gt;&lt;/span&gt; &lt;a href=&quot;#&quot;&gt;Ajouter&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
		&lt;tr&gt;&lt;td class=&apos;uicf_f&apos;&gt;Recopiez ce code&lt;span class=&quot;uicf_or&quot;&gt;*&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;div uitype=&quot;captcha&quot; name=&quot;captcha&quot;&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
		&lt;tr&gt;&lt;td class=&quot;uicf_or&quot;&gt;* Champ obligatoire&lt;/td&gt;
		&lt;td style=&quot;text-align:center&quot;&gt;
			&lt;input class=&quot;uicf_b_c&quot; type=&quot;submit&quot; value=&quot;Annuler&quot;/&gt;
			&lt;input class=&quot;uicf_b_s&quot; type=&quot;submit&quot; value=&quot;Envoyer l&apos;email&quot; /&gt;
			&lt;img src=&quot;/assets/loadingAnimation.gif&quot; class=&quot;loading&quot;&gt;
		&lt;/td&gt;&lt;/tr&gt;
	&lt;/table&gt;
&lt;/div&gt;
</content><properties><select default='&apos;r&apos;' display='Requis|Facultatif|Masqué' name='name' title='Nom' values='r|o|h' /><select default='&apos;h&apos;' display='Requis|Facultatif|Masqué' name='company' title='Société' values='r|o|h' /><select default='&apos;h&apos;' display='Requis|Facultatif|Masqué' name='firstname' title='Prénom' values='r|o|h' /><select default='&apos;o&apos;' display='Requis|Facultatif|Masqué' name='address' title='Adresse' values='r|o|h' /><select default='&apos;h&apos;' display='Requis|Facultatif|Masqué' name='zip' title='Code postal' values='r|o|h' /><select default='&apos;h&apos;' display='Requis|Facultatif|Masqué' name='city' title='Ville' values='r|o|h' /><select default='&apos;o&apos;' display='Requis|Facultatif|Masqué' name='phone' title='Téléphone' values='r|o|h' /><select default='&apos;r&apos;' display='Requis|Facultatif|Masqué' name='subject' title='Sujet' values='r|o|h' /><select default='&apos;h&apos;' display='Requis|Facultatif|Masqué' name='attachments' title='Pièces jointes' values='r|o|h' /></properties></view><script>UI_List.UI_Contact={initialize:function(t){this.cpt=t
;t.setOptions([&quot;locked&quot;,&quot;footer&quot;,&quot;sticky&quot;])},
onDisplay:function(t){this.node=t
;this.size_getter_el=$(&quot;&lt;div&gt;&lt;/div&gt;&quot;).appendTo(t)[0]
;this.afields=[&quot;name&quot;,&quot;firstname&quot;,&quot;company&quot;,&quot;address&quot;,&quot;zip&quot;,&quot;city&quot;,&quot;phone&quot;,&quot;subject&quot;,&quot;attachments&quot;]
;this.hfields={name:$(&quot;.uicf_f_n&quot;,this.node),
company:$(&quot;.uicf_f_c&quot;,this.node),
firstname:$(&quot;.uicf_f_f&quot;,this.node),
address:$(&quot;.uicf_f_a&quot;,this.node),zip:$(&quot;.uicf_f_z&quot;,this.node),
city:$(&quot;.uicf_f_t&quot;,this.node),phone:$(&quot;.uicf_f_p&quot;,this.node),
subject:$(&quot;.uicf_f_s&quot;,this.node),
attachments:$(&quot;.uicf_f_at&quot;,this.node)}
;var e=$(&quot;.form&quot;,t),n=e.find(&quot;.loading&quot;).hide(),i=e.find(&quot;.result&quot;).hide(),a=e.find(&quot;.uicf_b_c&quot;),s=e.find(&quot;.uicf_b_s&quot;),o=&quot;&lt;div class=&apos;close&apos;&gt;Fermer&lt;/div&gt;&quot;,c=this
;this.attachments=[]
;$(&quot;a&quot;,this.hfields.attachments).click(function(){
var t=$(&quot;&lt;input type=file style=&apos;display:none&apos; name=&apos;attachments[]&apos; multiple=1&gt;&quot;).appendTo(e)
;t[0].click();t.change(function(){
$.each(this.files,function(t,e){
var n=$(&quot;&lt;span&gt;&quot;).appendTo($(&quot;.file_list&quot;,c.hfields.attachments))
;$(&quot;&lt;span class=filename&gt;&quot;).text(e.name+&quot; (&quot;+Math.round(e.size/1024/1024*10)/10+&quot;M)&quot;).appendTo(n)
;var i=$(&quot;&lt;span class=percent&gt; 0%&lt;/span&gt;&quot;).appendTo(n)
;$(&quot;&lt;span class=&apos;file_remove fonticon&apos;&gt;&quot;).html($.fn.fonticon(&quot;remove&quot;)).click(function(){
c.attachments.slice().each(function(t){if(t[1]==e){
c.attachments.remove(t);t[0].abort();n.remove()}})}).appendTo(n)
;$(&quot;&lt;span class=comma&gt;&quot;).text(&quot;, &quot;).appendTo(n)
;var a=new FormData;a.append(&quot;attachment&quot;,e)
;c.attachments.push([$.ajax({url:&quot;/cpt_contact/upload&quot;,
type:&quot;POST&quot;,dataType:&quot;json&quot;,cache:!1,data:a,timeout:0,
processData:!1,contentType:!1,autoretry:!1,noretry:!0,
filename:e.name,progressUpload:function(t){
i.text(&quot; &quot;+Math.round(t.loaded/t.total*99)+&quot;%&quot;)},
success:function(){i.html(&quot; &quot;);c.updateCptSize()}}),e])})
;$(&quot;.comma:last&quot;,c.hfields.attachments).remove()
;c.updateCptSize()});return!1});s.bind(&quot;click&quot;,function(){
i.hide().unbind(&quot;click&quot;);a.hide();s.hide();n.show();var t={
request:&quot;send_mail&quot;,content:{}},h=$.Deferred().resolve()
;t.attachments=[];var d=[];c.attachments.each(function(e){
h=h.then(function(){return e[0]},function(){return e[0]
}).then(function(n){
t.attachments.push([e[1].name,e[1].size,n.url])},function(t,e){
d.push(&quot;Erreur lors de l&apos;envoi d&apos;une pi\xe8ce jointe &quot;+this.filename+&quot; (&quot;+e+&quot;)&quot;)
;return d})});h.then(function(){
e.find(&quot;:text,textarea&quot;).each(function(e,n){
t.content[n.name]=n.value});return c.cpt.ask(t)
}).then(function(){n.hide();a.show()
;i.show().html(&quot;&lt;div&gt;&lt;b&gt;Message envoy\xe9 !&lt;/b&gt;&lt;br/&gt;&lt;br/&gt;&lt;/div&gt;&quot;).removeClass(&quot;uicf_nok&quot;).addClass(&quot;uicf_ok&quot;)
},function(t){n.hide();s.show();a.show()
;i.show().html(&quot;&lt;div&gt;&lt;b&gt;&lt;u&gt;Message non envoy\xe9 :&lt;/u&gt;&lt;/b&gt;&lt;br/&gt; - &quot;+t.join(&quot;&lt;br/&gt; - &quot;)+&quot;&lt;/div&gt;&quot;+o).removeClass(&quot;uicf_ok&quot;).addClass(&quot;uicf_nok&quot;).one(&quot;click&quot;,function(){
i.hide()})})});a.bind(&quot;click&quot;,function(){
confirm(&quot;Voulez-vous remettre \xe0 z\xe9ro le formulaire ?&quot;)&amp;&amp;e.find(&quot;:text,textarea&quot;).each(function(t,e){
$(e).val(&quot;&quot;)});return!1});this.onPropertyChanged(this.afields)
;c=this;sigCtl.connect(&quot;Theme.changed&quot;,function(){
c.updateCptSize()});this.updateCptSize()},
onPropertyChanged:function(t){var e=this;t.each(function(t){
e.afields.include(t)&amp;&amp;(&quot;o&quot;==e.cpt.data[t]?e.hfields[t].show().find(&quot;.uicf_or&quot;).empty():&quot;r&quot;==e.cpt.data[t]?e.hfields[t].show().find(&quot;.uicf_or&quot;).html(&quot;*&quot;):e.hfields[t].hide())
});this.updateCptSize()},updateCptSize:function(){
this.cpt.setSize({h:1e4});this.cpt.setSize({
h:this.size_getter_el.offsetTop,w:this.cpt.W()&gt;280?null:280})},
onShow:function(){this.updateCptSize()},onResizeStop:function(){
this.updateCptSize()},onFontFamilyUpdate:function(){
this.updateCptSize()}};</script><style>div.UI_Contact textarea{height:100px}
div.UI_Contact input.uicf_tf{width:97%}
div.UI_Contact table{width:100%}
div.UI_Contact .result{left:5%;position:absolute;top:20%;width:90%;z-index:10}
div.UI_Contact .result div{padding:5px 5px 5px 40px}
div.UI_Contact .result .close{text-decoration:underline;cursor:pointer;margin-top:10px;text-align:center;padding:0 0 5px}
div.UI_Contact .uicf_ok{background:#DBE6DE url(/assets/icons/status_success.png) no-repeat scroll 5px 5px;border:1px solid #C6D7CF}
div.UI_Contact .uicf_nok{background:#FFFFD9 url(/assets/icons/status_warning.png) no-repeat scroll 5px 5px;border:1px solid #A7A772}
div.UI_Contact .uicf_f{font-weight:700}
div.UI_Contact input.uicf_tf,div.UI_Contact textarea{width:calc(100% - 8px)}</style></uidget>