1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
|
<?php
// on crée un premier noeud bien
$newBien = $doc->createElement('bien');
// on crée les enfants du noeud bien
$newSuivi = $doc->createElement('suivi',$suiviPar);
$newRef = $doc->createElement('reference',$ref);
$newNumMandat = $doc->createElement('mandat',$numMandat);
$newStatut = $doc->createElement('statut',$statut);
$newPubWeb = $doc->createElement('pubWeb',$pubWeb);
$newCouleur = $doc->createElement('couleur',$couleur);
$newTypeBien = $doc->createElement('typeDeBien',$typeBien);
$newDestination = $doc->createElement('destination',$destination);
if ($destination=="vente"){
if ($nbPieces!="") {$new_nbPieces = $doc->createElement('nombreDePieces',$nbPieces);};
if ($nbChambres!="") {$new_nbChambres = $doc->createElement('nombreDeChambres',$nbChambres);};
$new_surface = $doc->createElement('surface',$surface);
$new_surfaceTerrain = $doc->createElement('surfaceTerrain',$surfaceTerrain);
$new_etage = $doc->createElement('etage',$etage);
$new_etageTot = $doc->createElement('nombreEtageTotal',$etageTot);
$new_prixFraisVendeurCompris = $doc->createElement('PrixFraisVendeurCompris',$prixFraisVendeurCompris);
$new_fraisVendeur = $doc->createElement('FraisVendeur',$fraisVendeur);
$new_pourcentFraisVendeur = $doc->createElement('pourcentFraisVendeur',$pourcentFraisVendeur);
$new_fraisAcheteur = $doc->createElement('FraisAcheteur',$fraisAcheteur);
$new_pourcentFraisAcheteur = $doc->createElement('pourcentFraisAcheteur',$pourcentFraisAcheteur);
$new_prixVente = $doc->createElement('PrixVente',$prixVente);
$new_fraisNotaire = $doc->createElement('FraisNotaire',$fraisNotaire);
$new_resteVendeur = $doc->createElement('ResteVendeur',$resteVendeur);
$new_tousFraisCompris = $doc->createElement('tousFraisCompris',$tousFraisCompris);
} elseif ($destination=="location") {
};
// on affecte ses enfant au premier noeud bien
$newBien->appendChild($newSuivi);
$newBien->appendChild($newRef);
$newBien->appendChild($newNumMandat);
$newBien->appendChild($newStatut);
$newBien->appendChild($newPubWeb);
$newBien->appendChild($newCouleur);
$newBien->appendChild($newTypeBien);
$newBien->appendChild($newDestination);
if ($destination=="vente"){
if ($nbPieces!="") {$newBien->appendChild($new_nbPieces);};
if ($nbChambres!="") {$newBien->appendChild($new_nbChambres);};
$newBien->appendChild($new_surface);
$newBien->appendChild($new_surfaceTerrain);
$newBien->appendChild($new_etage);
$newBien->appendChild($new_etageTot);
$newBien->appendChild($new_prixFraisVendeurCompris);
$newBien->appendChild($new_fraisVendeur);
$newBien->appendChild($new_pourcentFraisVendeur);
$newBien->appendChild($new_fraisAcheteur);
$newBien->appendChild($new_pourcentFraisAcheteur);
$newBien->appendChild($new_prixVente);
$newBien->appendChild($new_fraisNotaire);
$newBien->appendChild($new_resteVendeur);
$newBien->appendChild($new_tousFraisCompris);
} elseif ($destination=="location") {
};
?> |
Partager