3v4l.org

run code in 300+ PHP versions simultaneously
<!-- Hier Anzeige der Objekte --> <script type="text/javascript"> $(function() { $("#articles-holder>div").flowsort({ items: [ <? $num_rows = $AnzahlGefundenerObj; $i = 0; while ( !$rs->eof ) { $i++; list( $DSN, $MEMBER, $KENNUNG, $KOLLEGE_KENNUNG, $KURZEXPOSE, $OBJEKTART, $EART, $HEADLINE, $KAUFPREIS, $MIETE, $NUTZFLAECHE, $GRUNDFLAECHE, $WOHNFLAECHE, $ORT, $ZIMMER, $PROVINT ) = $rs->fields; if (empty($DSN)) { $DSN = '1'; } if (empty($MEMBER)) { $MEMBER = '1'; } if (empty($KENNUNG)) { $KENNUNG = '1'; } if (empty($KOLLEGE_KENNUNG)) { $KOLLEGE_KENNUNG = '1'; } if (empty($KURZEXPOSE)) { $KURZEXPOSE = '1'; } if (empty($OBJEKTART)) { $OBJEKTART = '1'; } if (empty($EART)) { $EART = '1'; } if (empty($HEADLINE)) { $HEADLINE = '1'; } else { utf8_encode($HEADLINE); } if (empty($KAUFPREIS)) { $KAUFPREIS = '1'; } if (empty($MIETE)) { $MIETE = '1'; } if (empty($NUTZFLAECHE)) { $NUTZFLAECHE = '1'; } if (empty($GRUNDFLAECHE)) { $GRUNDFLAECHE = '1'; } if (empty($WOHNFLAECHE)) { $WOHNFLAECHE = '1'; } if (empty($ORT)) { $ORT = '1'; } if (empty($ZIMMER)) { $ZIMMER = '1'; } if (empty($PROVINT)) { $PROVINT = '1'; } ?> <? $PicAbfrage = "select distinct DSN, URL, BESCHREIBUNG, TYP from $table_pic"; $PicAbfrage .= " where DSN like '$DSN' and TYP = 1 and TYPE = 0"; $rsPic = $oCon->openrecordset($PicAbfrage); if ( $rsPic->recordcount > 0 ) // es wurden Sätze gefunden { list($PIC_DSN, $PIC_URL, $PIC_BESCHREIBUNG, $PIC_TYP) = $rsPic->fields; $PIC_FILE = basename($PIC_URL); $PIC_PFAD = substr($PIC_URL, 0, strrpos($PIC_URL, '/')); $PIC_FILE = rawurlencode($PIC_FILE); // skiba $NewPfad = "../ff_webserver/pic.obj" ."/" .$PIC_FILE; // skiba ende $NewPfad = strtolower($NewPfad); } // if (Bild ist verügbar) else { $NewPfad = "files/skiba_pics-basis/leerbild.jpg"; } //else (kein Bild verfügbar) $rsPic->close(); ?> <? echo "{\"Id\":".$KENNUNG.",\"Title\":\"".utf8_encode($HEADLINE)."\",\n"; echo "\"ZIMMER\":".$ZIMMER.",\"WOHNFLAECHE\":".$WOHNFLAECHE.",\n"; echo "\"ORT\":\"".utf8_encode($ORT)."\",\n"; echo "\"OBJEKTART\":\"".utf8_encode($OBJEKTART)."\",\n"; echo "\"Preis\":".$KAUFPREIS.",\n"; echo "\"DSN\":\"".$DSN."\",\n"; echo "\"GEODATEN\":\"".$KOLLEGE_KENNUNG."\",\n"; echo "\"BILDDATEI\":\"".$NewPfad."\",\n"; if ( $i != ( $num_rows ) ) { echo "},\n"; } else { echo "}\n"; } $rs->movenext(); } //while eof() $rs->MoveFirst(); ?> ], containerClass: "singleobject-container-size-test", classes: ["singleobject-small", "singleobject-large"], render: function() { var html = $.tmpl(document.getElementById("object-template").innerHTML, this); return html; }, getClass: function(index) { return index < 6 ? "singleobject-large" : "singleobject-small"; } }); }); $(function() { var sortOrder = null; $("input[name=sortorder]").bind("change", function() { if(sortOrder !== null) { $("#articles-holder>div").removeClass("sort-order-" + sortOrder); } if($(this).val() !== "") { sortOrder = $(this).val(); if(sortOrder == 'Preis' || sortOrder == 'OBJEKTART' || sortOrder == 'ZIMMER' || sortOrder == 'WOHNFLAECHE' ) { $("#articles-holder>div").flowsort("sortDsc", sortOrder).addClass("sort-order-" + sortOrder); } else { $("#articles-holder>div").flowsort("sort", sortOrder).addClass("sort-order-" + sortOrder); } } }); }); $(function() { var image = $("input[name=display-image]:checked").val(); $("#articles-holder>div").addClass("image-" + image); $("input[name=display-image]").bind("change", function() { var oldImage = image; image = $(this).val(); $("#articles-holder>div").removeClass("image-" + oldImage).addClass("image-" + image); }); }); </script> <script type="text/html" id="object-template"> <article class="singleobject"> <hgroup> <a href="de/kurzexpose.html?DSN=${DSN}&F_EART=kauf"> <img class="Bildanzeige" src="${BILDDATEI}" alt="${Title}" title="${Title}"> </a> <h1>${Title}</h1> <h2>${ORT}<br> ${ZIMMER} Zimmer, ${WOHNFLAECHE} m&sup2;</h2> <h2>${OBJEKTART}</h2> <h2 class="price-tag">${formatPreis(Preis)} €</h2> </hgroup> <a href="de/kurzexpose.html?DSN=${DSN}&F_EART=kauf">Mehr &rsaquo;<span class="startlink">&nbsp;</span></a> </article> </script> <a name="top"></a> <div style="z-index:9999; position:absolute; right:10px; top:150px;"> <a href="http://www.immobilien-skiba.de/de/haus-kaufen.html?F_OBJEKTART=2&F_EART=kauf#uebersicht"><img src="files/skiba_pics-basis/link-uebersicht.png" alt="Zur Übersicht aller aktuellen Angebote" title="Zur Übersicht aller aktuellen Angebote" style="border:none; z-index:9999;" class="nonprint"></a> </div> <div class="ce_text block" style="margin-top:-25px; z-index:9999;"> <table width="940" border="0" cellspacing="0" cellpadding="0" style="z-index:9999;"> <tr> <td style="width:700px;"> <p>Bei der Suche nach einem neuen Zuhause spielt der Standort eine entscheidende Rolle. Diese Karte zeigt Ihnen das Gebiet, in dem Immobilien Skiba überwiegend tätig ist. Markiert sind die Standorte der Immobilien, für die wir aktuell einen neuen Eigentümer suchen. Klicken Sie auf das Symbol um zu der Vorstellung des Angebotes zu gelangen.</p> </td> <td style="text-align:right; vertical-align:top;">&nbsp; </td> </tr> </table> </div> <!-- Navi-Sortierung --> <div class="main-background-wrap"> <!--[if IE 8]> <style type="text/css"> .illustratedMap div.map-tooltip img { width: auto; } .illustratedMap div.map-tooltip { margin-top:-252px; margin-left:-118px; } </style> <![endif]--> <div class="contentarea"> <div id="map_canvas" style="width:940px; height:860px; background-image: url(files/skiba_pics-basis/map_940x860.png); background-repeat:no-repeat; background-position:center; padding:0; margin:00; z-index:1000;"> <!-- Hier Anzeige der Kartenobjekte --> <div id="list-map"> <div class="illustratedMap"> <? $num_rows = $AnzahlGefundenerObj; $i = 0; while ( !$rs->eof ) { $i++; list( $DSN, $MEMBER, $KENNUNG, $KOLLEGE_KENNUNG, $KURZEXPOSE, $OBJEKTART, $EART, $HEADLINE, $KAUFPREIS, $MIETE, $NUTZFLAECHE, $GRUNDFLAECHE, $WOHNFLAECHE, $ORT, $ZIMMER, $PROVINT ) = $rs->fields; if (empty($KOLLEGE_KENNUNG)) { $KOLLEGE_KENNUNG = '50.0, 7.0'; } ?> <? $marker_array = $KOLLEGE_KENNUNG; /* echo "marker_array:".$marker_array.",\n"; */ list($lat, $lng) = explode(", ", $marker_array); /* echo "lat:".$lat.",\n"; echo "lng:".$lng.",\n"; */ $var1 = 50.381332 - $lat; $var2 = $lng - 6.935098; /* echo "var1:".$var1.",\n"; echo "var2:".$var2.",\n"; */ $varx = $var1 * 3460; $vary = $var2 * 2210; /* echo "varx:".$varx.",\n"; echo "vary:".$vary.",\n"; */ $posx = $varx + 465; $posy = $vary + 403; /* echo "posx:".$posx.",\n"; echo "posy:".$posy.",\n"; */ $PicAbfrage = "select distinct DSN, URL, BESCHREIBUNG, TYP from $table_pic"; $PicAbfrage .= " where DSN like '$DSN' and TYP = 1 and TYPE = 0"; $rsPic = $oCon->openrecordset($PicAbfrage); if ( $rsPic->recordcount > 0 ) // es wurden Sätze gefunden { list($PIC_DSN, $PIC_URL, $PIC_BESCHREIBUNG, $PIC_TYP) = $rsPic->fields; $PIC_FILE = basename($PIC_URL); $PIC_PFAD = substr($PIC_URL, 0, strrpos($PIC_URL, '/')); $PIC_FILE = rawurlencode($PIC_FILE); // skiba $NewPfad = "../ff_webserver/pic.obj" ."/" .$PIC_FILE; // skiba ende $NewPfad = strtolower($NewPfad); } // if (Bild ist verügbar) else { $NewPfad = "files/skiba_pics-basis/leerbild.jpg"; } //else (kein Bild verfügbar) $rsPic->close(); echo "\n<div style=\"position:absolute; top:"; echo $posx; echo "px; left:"; echo $posy; echo "px; display: none;\" id=\"mapTooltip".$DSN."\" class=\"map-tooltip\">"; echo "\n<img src=\"".$NewPfad."\" alt=\"".utf8_encode($HEADLINE)."\" title=\"".utf8_encode($HEADLINE)."\">"; echo "\n<h2>Objektnr.:".$KENNUNG."</h2>"; echo "\n<h2 class=\"firstHeading\">".utf8_encode($ORT)."</h2>"; echo "\n<h2 class=\"tooltip-price\">".$KAUFPREIS." €</h2>"; echo "\n<p class=\"adresse-small\">Die genaue Anschrift teilen wir Ihnen <br>auf Anfrage gerne mit.</p>"; echo "\n<a href=\"de/kurzexpose.html?DSN=".$DSN."&F_EART=kauf\">Mehr</a>"; echo "</div>\n"; echo "<div id=\"markie\" style=\"position: absolute; left:".$posy."px; top:".$posx."px; display: block;\" class=\"map-pointer availablePointer ".$DSN."\"></div>\n"; ?> <script type="text/javascript"> $('.<? echo $DSN;?>:not(.open)').live('click', function() { $('#mapTooltip<? echo $DSN;?>').addClass('offen'); $('#mapTooltip<? echo $DSN;?>').fadeIn('fast'); // ... Code to animate goes here ... }); $('#map_canvas').mousedown(function() { $('.offen').fadeOut('fast'); }); </script> <? $rs->movenext(); } //while eof() $rs->close(); ?> </div> </div> </div> <? $oCon->close(); ffws_PoweredBy(false); ?> <? if ($AnzahlGefundenerObj == 1) { echo "<h2 id=\"sort-type\" style=\"margin: 15px 0 15px 0;\"> $AnzahlGefundenerObj ". $oLangPack->translatestring("Objekt gefunden")."</h2>\n"; } elseif ($AnzahlGefundenerObj > 1) { echo "<h2 id=\"sort-type\" style=\"margin: 15px 0 15px 0;\"> $AnzahlGefundenerObj ". $oLangPack->translatestring("Objekte gefunden")."</h2>\n"; } else { if( ( !empty($Typ) ) or ( !empty($F_OBJEKTART) ) ) { echo "<h2>Zur Zeit sind keine Objekte auf unserer Homepage.<br>Bitte rufen Sie uns f&uuml;r aktuelle Angebote unter 02691-1080 an.</h2>\n"; } } ?> <div style="float:right; padding:0 0 20px 30px;"> <a href="skiba_maps-google.php?F_OBJEKTART=2&F_EART=kauf" target="_blank"><img src="files/skiba_pics-basis/gmaps-button.png" width="300" height="60" alt="zur Anzeige der Karte in Google-Maps"></a> </div> <p>Damit Sie den Standort einer Immobilie mit einem größeren Radius sehen können, haben wir unsere Angebote auch bei Google-Maps lokalisiert. Dort können Sie zusätzlich die Routenfunktion nutzen, um sich ein Bild von den Entfernungen und der Verkehrsanbindung zu machen. </p> <div style="clear:both;"></div> <hr> <a name="uebersicht"></a> <h2 style="margin: 15px 0 15px 0;">Sortieren nach:</h2> <div class="" id="filterHolder"> <nav id="list-menu" class="objectsFilterFixed1"> <div class="objectsFilterFixed2"> <div class="objectsFilterFixed3"> <div class="row objectsFilterFixed4"> <div class="col10"> <div class="filter-row no-bottom-margins small-radio clearfix ui-buttonset"> <label for="sort-preis" aria-disabled="false" role="button" aria-pressed="true" class="ui-state-active ui-button ui-widget ui-state-default ui-button-text-only ui-corner-left"><span class="ui-button-text">Preis</span></label> <input class="ui-helper-hidden-accessible" name="sortorder" id="sort-preis" value="Preis" type="radio" /> <label for="sort-objektart" aria-disabled="false" role="button" class="ui-button ui-widget ui-state-default ui-button-text-only" aria-pressed="false"><span class="ui-button-text">Objektart</span></label> <input class="ui-helper-hidden-accessible" name="sortorder" id="sort-objektart" value="OBJEKTART" type="radio" /> <label for="sort-zimmer" aria-disabled="false" role="button" class="ui-button ui-widget ui-state-default ui-button-text-only" aria-pressed="false"><span class="ui-button-text">Zimmer</span></label> <input class="ui-helper-hidden-accessible" name="sortorder" id="sort-zimmer" value="ZIMMER" type="radio" /> <label for="sort-wohnflaeche" aria-disabled="false" role="button" class="ui-button ui-widget ui-state-default ui-button-text-only" aria-pressed="false"><span class="ui-button-text">Wohnfl&auml;che</span></label> <input class="ui-helper-hidden-accessible" name="sortorder" id="sort-wohnflaeche" value="WOHNFLAECHE" type="radio" /> <label for="sort-ort" aria-disabled="false" role="button" class="ui-button ui-widget ui-state-default ui-button-text-only ui-corner-right" aria-pressed="false" style="margin-right:0px;"><span class="ui-button-text">Ort</span></label> <input class="ui-helper-hidden-accessible" name="sortorder" id="sort-ort" value="ORT" type="radio" /> </div> <div style="border-bottom: 0px solid #656565; height: 1px; line-height: 1px; margin: 15px 0 5px 0;">&nbsp;</div> </div> </div> </div> </div> </nav> </div> <div class="row"> <div class="col10"> <section id="articles-holder" class="singleobjects"> <div class="singleobject-container-size-test image-Bildanzeige" style="position: relative; height: 5020px; margin:0 15px 0 0;"></div> </section> </div> </div> <div style="clear: both;"></div> </div> </div> <section id="more-info"> <div class="row"> </div> </section> <script type="text/javascript"> $(document).ready(function () { docReadyOnObjects(); }); </script>

preferences:
42.66 ms | 402 KiB | 5 Q