h2 class="pane-title"> Agenda /h2>

Consulter nos petites annonces

'GHI'); $temp = $client->PA_CoupsDeCoeur($param); $resultat = $temp->PA_CoupsDeCoeurResult; $resultat = preg_replace('/&/','&',$resultat); libxml_use_internal_errors(true); if($xml = simplexml_load_string($resultat)) { $result = $xml->xpath('//CoupDeCoeur/annonce'); } else { $result = ''; } ?>

Les coups de cœur de GHI

    xpath('@id'); $url = current($node->xpath('url')); $img_urlHD = current($node->xpath('img_urlHD')); $categorie = current($node->xpath('categorie')); $titre = current($node->xpath('titre')); $contenu = $contenu = current($node->xpath('contenu')); $attr1 = current($node->xpath('attribut1')); $attr2 = current($node->xpath('attribut2')); $attr3 = current($node->xpath('attribut3')); $attr4 = current($node->xpath('attribut4')); $attr5 = (int) current($node->xpath('attribut5')); if($categorie == 'AUTO') { $attr6 = (string) current($node->xpath('attribut6')); $full_text = '' . utf8_decode($attr1) . ' ' . utf8_decode($attr2) . ' / ' . number_format($attr5, 0, '.', "'") . ' km, ' . number_format($attr6, 2, '.', "'") . ' Fr. '; } if($categorie == 'IMMO') { $categorie = utf8_decode($titre); $pieces = (!empty($attr3) && $attr3 != '-') ? ($attr3 == 1) ? utf8_decode($attr3) . ' pièce' . ', ' : utf8_decode($attr3) . ' pièces' . ', ' : ''; $attr6 = (string) current($node->xpath('attribut6')); $full_text = '' . utf8_decode($attr2) . ' ' . utf8_decode($attr1) . ' - ' . $pieces . number_format($attr5, 2, '.', "'") . ' ' . utf8_decode($attr6); } if(!empty($attr5)) $attr5 = ' - ' . number_format($attr5, 2, '.', "'") . ' Frs'; else $attr5 = ''; if(empty($full_text)) $full_text = utf8_decode($titre) . $attr5; $img = $img_urlHD; echo '
  • '; echo '
    '; echo '
    '; echo ''; echo '

    ' . $full_text . '

    '; echo ''; echo '
    '; echo '
  • '; } ?>