query($sql2); $nt2 = $result2->fetch_assoc(); $user = fnc_getUsernameById ( $nt2['TID'], 'portal' ); $Importmodus = $_POST['ImmoScout']; $stellplkosten = 0; $HausKategorie = ''; $picpath = ''; $Ausstattung = ''; $Flaeche = ''; $Garten = ''; $HausT = ''; $Heizungsart = ''; $Aufzug = ''; $Parkplatz = ''; $Sonst = ''; $Einbaukueche = ''; $Kaufpreise = ''; $BalkTerr = ''; $Etage = ''; $Etagen = ''; $Keller = ''; $GaesteWC = ''; $Barrierefrei = ''; $AnzGarStell = ''; $AnzBad = ''; $AnzSchlaf = ''; $Befeuerungsart = ''; $Lage = ''; $Mietpreise = ''; $Waehrung = ' Waehrung="EUR"'."\n"; $Modernisierung = ''; $Energieausweis = ''; $Provision = ''; if ( !empty ( $nt2['Provision'] ) ) { $Provision = ' Provision="' . $nt2['Provision'] . "\"\n"; } if ( '1' == $nt2['ProvisionsPflichtig'] ) { $Provision .= ' Provisionspflichtig="true"'."\n"; } if ( !empty ( $nt2['ProvisionsHinweis'] ) ) { $Provision .= ' Provisionshinweis="' . $nt2['ProvisionsHinweis'] . "\"\n"; } $Adresse = ' ' . "\n"; $BefeuerungsArt .= " \n"; if (('1' == $nt2['Garage']) OR ('1' == $nt2['StellPl'])) { $Parkplatz = ' Parkplatz="true"'."\n"; } $MmATitel = 'TWE-Immobilien'; $MultimediaAnhang = ' '."\n"; $text .= ' <'.$Objekt."\n"; $text .= ' AnbieterObjektID="'.$nt2['ID'].'"'."\n"; $text .= ' Ueberschrift="'.$nt2['Kurz'].'"'."\n"; $text .= ' Importmodus="'.$Importmodus.'"'."\n"; $text .= $Flaeche; $text .= ' Zimmer="'.$nt2['Zimmer'].'"'; $text .= "\n"; $text .= ' Adressdruck="false"'."\n"; if ( !empty ( $nt2['Baujahr'] ) AND ( '0' != $nt2['Baujahr'] ) ) { $text .= ' Baujahr="'.$nt2['Baujahr'].'"'."\n"; } $text .= $Modernisierung; $text .= $BalkTerr; $text .= $Einbaukueche; $text .= $Etage; $text .= $Etagen; $text .= $OZustand; if ( !empty ( $nt2['Bezug'] ) ) { $text .= ' FreiAb="'.$nt2['Bezug'].'"'."\n"; } $text .= $Garten; $text .= $HausKategorie; $text .= $HausT; $text .= $Heizungsart; $text .= $Keller; $text .= $GaesteWC; $text .= $Barrierefrei; $text .= $AnzGarStell; $text .= $AnzBad; $text .= $AnzSchlaf; $text .= $Aufzug; $text .= $Parkplatz; $text .= $Provision; $text .= $Waehrung; $text .= ' >'."\n"; $text .= $Adresse; $text .= $Kontaktperson; $text .= $OBeschreib; $text .= $Lage; $text .= $Ausstattung; $text .= $Sonst; $text .= $MultimediaAnhang; $text .= $Mietpreise; $text .= $Kaufpreise; $text .= $BefeuerungsArt; $text .= $Energieausweis; $text .= ' '."\n"; $text .= ' '."\n"; $text .= ''; $text = utf8_encode($text); fwrite($datei, $text); fclose($datei); ?>