if ($form->isValid($_POST)) {
$url = 'https://workshop.fluidbook.com/ajax/demandeDevis?devis_form=' . base64_encode(serialize($_POST));
- fb($url);
- fb(file_get_contents($url));
+ $xml = simplexml_load_file($url);
+
+ $okmessage = array_pop($xml->xpath('//alert'));
+ if(null!==$okmessage){
+ $okmessage=(string)$okmessage->content;
+ }
+
+ $this->_datas->addReplace('#requestQuote', '<div id="confirmationQuote">' . $okmessage . '</div>');
} else {
$this->_datas->refreshForm($form); // Respond with validation errors
$this->_datas->addAction('eval', 'displayErrors()');
display: none;
}
+}
+
+#confirmationQuote {
+ background-color: #f3f3f3;
+ font-family: @opensans;
+ font-weight: 300;
+ color: @color-text;
+ font-size: 22px;
+ padding: 200px 120px;
+ text-align: center;
}
\ No newline at end of file