<?php } ?> <table cellpadding="5" cellspacing="5" with="500" align="center" class="zebra-striped"> <tbody> <?php $placement = null; $has_offers = false; $histograms = false; $i = null; $type = null; $format = 'json'; //Get All Active APIs $citygrid = new citygridplaces($publishercode); $search = $citygrid->srch_places_where($what, $type, $where, $page, $rpp, $sort, $format, $placement, $has_offers, $histograms, $i); foreach ($search as $place) { $total_hits = $place->total_hits; $first_hit = $place->first_hit; $last_hit = $place->last_hit; $page = $place->page; $maxpage = $total_hits / $rpp; $rpp = $place->rpp; foreach ($place->locations as $location) { $featured = $location->featured; $public_id = $location->public_id; $name = $location->name; $address = $location->address; $street = $address->street; $city = $address->city;
} ?> </ul> <?php $phone = null; $customer_only = null; $placement = null; $all_results = null; $review_count = null; $i = null; $format = 'json'; $callback = null; $id_type = 'cg'; //Get Place Detail $citygrid = new citygridplaces($publishercode); $search = $citygrid->places_detail($id, $id_type, $phone, $customer_only, $all_results, $review_count, $placement, $format, $callback, $i); // locations $locations = $search->locations[0]; //var_dump($locations); $id = $locations->id; $public_id = $locations->public_id; $infousa_id = $locations->infousa_id; $reference_id = $locations->reference_id; $impression_id = $locations->impression_id; $name = $locations->name; $display_ad = $locations->display_ad; if ($display_ad == 1) { $display_ad = 1; } else { $display_ad = 0;
</a></li> <?php } ?> </ul> <table cellpadding="5" cellspacing="5" with="500" align="center" class="zebra-striped"> <tbody> <?php $placement = null; $has_offers = false; $histograms = false; $i = null; $format = 'json'; //Get All Active APIs $citygrid = new citygridplaces($publishercode); $search = $citygrid->srch_places_latlong($what, $type, $lat, $lon, $radius, $page, $rpp, $sort, $format, $placement, $has_offers, $histograms, $i); foreach ($search as $place) { $total_hits = $place->total_hits; $first_hit = $place->first_hit; $last_hit = $place->last_hit; $page = $place->page; $maxpage = $total_hits / $rpp; $rpp = $place->rpp; foreach ($place->locations as $location) { $featured = $location->featured; $public_id = $location->public_id; $name = $location->name; $address = $location->address; $street = $address->street; $city = $address->city;