query($sql2); $nt2 = $result2->fetch_assoc(); $user = fnc_getUsernameById ( $nt2['TID'], 'portal' ); $Importmodus = $_POST['ImmoScout']; $stellplkosten = 0; $picpath = ''; $Baujahr = ''; $Gesamtflaeche = ''; $Flaeche = ''; $Garten = ''; $HausT = ''; $Heizungsart = ''; $KategorieTyp = ''; $Nebenkosten = ''; $PreisParkflaeche = ''; $Einbaukueche = ''; $Keller = ''; $Befeuerungsart = ''; $Vermarktung = ''; $Waehrung = ' Waehrung="EUR"'."\n"; $VermietFlaeche = ''; if ( !empty ( $nt2['VermietbareFlaeche'] ) AND ( '0' != $nt2['VermietbareFlaeche'] ) ) { $VermietFlaeche = ' VermietbareFlaeche="' . $nt2['VermietbareFlaeche'] . '"'."\n"; } $MietpaIST = ''; if ( '0.00' != $nt2['MietEinnahmePaIst'] ) { $MietpaIST = ' MietEinnahmePaIst="' . $nt2['MietEinnahmePaIst'] . '"'."\n"; } $MietpaSOLL = ''; if ( '0.00' != $nt2['MietEinnahmePaSoll'] ) { $MietpaSOLL = ' MietEinnahmePaSoll="' . $nt2['MietEinnahmePaSoll'] . '"'."\n"; } $Modernisierung = ''; $Energieausweis = ''; $Provision = ''; $OBeschreib = ''; $Objektkategorie2 = ' Objektkategorie2="' . str_replace ( ' / ', '', str_replace ( 'ä', 'ae', str_replace ( 'ü', 'ue', $nt2['O_TYP'] ) ) ) . '"'."\n"; $Wege = ''; 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"; } if ( '0' != $nt2['FusswegOeNV'] ) { $Wege .= ' FusswegOeNV="' . $nt2['FusswegOeNV'] . '"'."\n"; } if ( '0' != $nt2['FahrBHF'] ) { $Wege .= ' FahrzeitBHf="' . $nt2['FahrBHF'] . '"'."\n"; } if ( '0' != $nt2['FahrBAB'] ) { $Wege .= ' FahrzeitBAB="' . $nt2['FahrBAB'] . '"'."\n"; } if ( '0' != $nt2['Fahrflug'] ) { $Wege .= ' FahrzeitFlughafen="' . $nt2['Fahrflug'] . '"'."\n"; } $Adresse = ' ' . "\n"; $BefeuerungsArt .= " \n"; $MmATitel = 'TWE-Immobilien'; $MultimediaAnhang = ' '."\n"; $text .= ' <'.$Objekt."\n"; $text .= ' AnbieterObjektID="'.$nt2['ID'].'"'."\n"; $text .= ' Ueberschrift="'.$nt2['Kurz'].'"'."\n"; $text .= ' Importmodus="'.$Importmodus.'"'."\n"; $text .= $Gesamtflaeche; $text .= $Flaeche; $text .= $KategorieTyp; $text .= $VermietFlaeche; $text .= $MietpaIST; $text .= $MietpaSOLL; $text .= ' Adressdruck="false"'."\n"; $text .= $Baujahr; $text .= $Objektkategorie2; $text .= $Einbaukueche; $text .= $Heizungsart; $text .= $Keller; $text .= $Provision; $text .= $Kaufpreis; $text .= $Wege; $text .= $Waehrung; $text .= ' >'."\n"; $text .= $Adresse; $text .= $Kontaktperson; $text .= $OBeschreib; $text .= $Ausstattung; $text .= $Sonst; $text .= $MultimediaAnhang; $text .= $BefeuerungsArt; $text .= $Energieausweis; $text .= ' '."\n"; $text .= ' '."\n"; $text .= ''; $text = utf8_encode($text); fwrite($datei, $text); fclose($datei); ?>