function testMap() { $MAP_OBJECT = new GoogleMapAPI(); $MAP_OBJECT->_minify_js = isset($_REQUEST["min"]) ? FALSE : TRUE; $MAP_OBJECT->setDSN(${$wpdb}->get_results("SELECT * from wp_NBDonation where {$table} like '%{$input}%' and Type in('{$org}','Both');")); $MAP_OBJECT->addMarkerByCoords(-104.988, 39.755, "Marker Title", "Marker Description"); $MAP_OBJECT->addMarkerByCoords(-118.243, 34.0522, "Marker2 Title", "Marker2 Description"); ?> <html> <head> <?php echo $MAP_OBJECT->getHeaderJS(); echo $MAP_OBJECT->getMapJS(); ?> </head> <body> <?php echo $MAP_OBJECT->printOnLoad(); echo $MAP_OBJECT->printMap(); echo $MAP_OBJECT->printSidebar(); ?> </body> </html> <?php }
?> <?php echo $MAP_OBJECT->getHeaderJS(); ?> <?php echo $MAP_OBJECT->getMapJS(); ?> <?php echo $MAP_OBJECT->printOnLoad(); ?> <?php echo $MAP_OBJECT->printMap(); ?> <?php echo $MAP_OBJECT->printSidebar(); ?> <?php } ?> </div> </div> <!-- end menu --> <div class="clearfooter"></div> </div> <div id="footer"> Islamic Online University Exam Centers Registration Portal </div> </body> </html>
<?php include_once("GoogleMap.php"); include_once("JSMin.php"); $MAP_OBJECT = new GoogleMapAPI(); $MAP_OBJECT->_minify_js = isset($_REQUEST["min"])?FALSE:TRUE; ?> <html> <head> <?=$MAP_OBJECT->getHeaderJS();?> <?=$MAP_OBJECT->getMapJS();?> </head> <body> <?=$MAP_OBJECT->printOnLoad();?> <?=$MAP_OBJECT->printMap();?> <?=$MAP_OBJECT->printSidebar();?> </body> </html>