Consulter nos petites annonces
- Immobilier
Immobilier
- Véhicules
Véhicules
- Amitiés / Rencontres
Amitiés / Rencontres
- Emploi / Formation
Emploi / Formation
- Vacances
Vacances
- Autres
Autres
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 ' '; echo ' ';
}
?>