"; $n=1; while($n<=31) { $html .= "', ">", $str); $str = str_replace('…', "...", $str); $str = str_replace('€','euro', $str); $str = str_replace('�','euro', $str); $str = str_replace('€','euro', $str); return $str; } function get_form($club_id,$clubname,$img_9292) { // 9292OV FORMULIER $html = "
"; $html .= ""; $html .= ""; $html .= ""; $html .= ""; $html .= ""; $html .= ""; $html .= ""; $html .= ""; $html .= ""; $html .= "
Plan je route naar: ".$clubname."
Postcode voorbeeld: 1122AB
Reis type"; $html .= "Openbaar vervoer
"; $html .= "Auto
Heen / terug"; $html .= "Heenreis
"; $html .= "Terugreis
Datum".get_datum()."
Tijd".get_tijd()."
".$img_9292."
"; $html .= ""; $html .= "
"; return $html; } function get_agenda_by_date() { $yearID = $_GET['yearID']; $monthID = $_GET['monthID']; $dayID = $_GET['dayID']; $datum = $yearID ."-". $monthID ."-". $dayID; $event_url = "http://www.partyvibes.nl/events.php?event_id="; $img_9292 = ""; $query = "SELECT club_id, clubname, club_straat, club_pcode, club_image, club_lng, club_lat, event_id, eventname, event_date, event_time, event_price, event_style FROM ((PVIBES_clubs INNER JOIN PVIBES_agenda ON club_id = event_loc) INNER JOIN PVIBES_city ON club_city = city_id) WHERE city_id = 61 AND event_date = '$datum' AND event_active = 1 AND club_lat > '' LIMIT 100"; $result = mysql_query($query) or die(mysql_error()); while($row = mysql_fetch_array($result)) { $lat = $row['club_lat']; $lng = $row['club_lng']; // EVENT INFO $event_id = $row['event_id']; $event_time = $row['event_time']; $event_price = format_for_xml($row['event_price']); $event_style = format_for_xml($row['event_style']); // CLUB EN LOCATION INFO $club_id = $row['club_id']; $clubname = format_for_xml($row['clubname']); if ($row['club_image'] == 'none' || $row['club_image'] == '') { $club_image = ''; } else { $club_image = ""; } $eventname = format_for_xml($row['eventname']); $club_straat = format_for_xml($row['club_straat']); $club_pcode = format_for_xml($row['club_pcode']); $eventinfo = "
".$eventname."

Time: ".$event_time."
Price: ".$event_price."
Style: ".$event_style."

Click here for more info
"; $clubinfo = "
".$clubname."
".$club_image."
Address:".$club_straat."
Zipcode:".$club_pcode."
"; //$route = "
Plan je route naar ".$clubname."


"; $route = get_form($club_id,$clubname,$img_9292); echo "var point = new GLatLng(".$lat.",".$lng.");\n"; echo "var marker = createTabbedMarker(point, [\"".$eventinfo."\", \"".$clubinfo."\",\"".$route."\"],[\"Event\",\"Location\",\"Route (NL)\"]);\n"; echo "map.addOverlay(marker);\n"; } } ?> PARTYVIBES.nl - Mapping All Amsterdam Dance Events!