Newer
Older
Digital_Repository / Repositories / Maps / google_map.php
  1. <?php
  2. list( $start_micro, $start_sec ) = explode( " ", microtime() );
  3. ?>
  4.  
  5. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  6. "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
  7. <html xmlns="http://www.w3.org/1999/xhtml">
  8. <head>
  9. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  10. <meta http-equiv="cache-control" content="no-cache" />
  11. <meta http-equiv="pragma" content="no-cache" />
  12. <title>Repository hit visualisation using Google Maps</title>
  13. <script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAAdiP-i78VGweF9QIs3Kzx5xSrBOD9wh0lHQGbvVgYRG7Dg2gE1xQNhJmY4S8_BwZb4md1JO0soLOr8w" type="text/javascript"></script>
  14. <script type="text/javascript" src="google_map.js"></script>
  15. </head>
  16.  
  17. <?php
  18. echo '<body onload="load('
  19. . ( ( (float)$start_micro + (float)$start_sec ) * 1000 )
  20. . ','
  21. . ( ( isset( $_REQUEST['top'] ) ) ? $_REQUEST['top'] : 10 )
  22. . ','
  23. . ( ( isset( $_REQUEST['show'] ) ) ? "'" . $_REQUEST['show'] . "'" : "'both'" )
  24. . ','
  25. . ( ( isset( $_REQUEST['eprint'] ) ) ? ( "'" . $_REQUEST['eprint'] . "'" ) : "''" )
  26. . ')" onunload="GUnload()">';
  27. ?>
  28.  
  29. <h1>Repository hit visualisation using Google Maps</h1>
  30.  
  31. <div id="timer">Loading&hellip;</div>
  32.  
  33. <div id="map" style="width:1024px; height:768px; border:1px solid black;"></div>
  34.  
  35. </body>