Update of /cvsroot/firebug/firebug/web/gmaps
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21823
Modified Files:
db_render_xml.php
Log Message:
Wrote a php function to emit an xml
location element for adding icons, cartoon bubbles
to google map.
Index: db_render_xml.php
===================================================================
RCS file: /cvsroot/firebug/firebug/web/gmaps/db_render_xml.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** db_render_xml.php 9 Jun 2005 01:14:59 -0000 1.6
--- db_render_xml.php 9 Jun 2005 01:34:04 -0000 1.7
***************
*** 1,13 ****
<?php
include("connect.php");
- /*
- if ($HTTP_POST_VARS["tbl1"]!=Null){
- $HTTP_SESSION_VARS["tblname"] = $HTTP_POST_VARS["tbl1"];
- $HTTP_SESSION_VARS["dbname"] = $HTTP_POST_VARS["db1"];
- }
- $dbname = $HTTP_SESSION_VARS["dbname"];
- $tblname = $HTTP_SESSION_VARS["tblname"];
- */
function emit_gps_location($id, $lat, $long, $icon) {
--- 1,5 ----
***************
*** 30,41 ****
}
! print("<?xml version=\"1.0\"?>\n");
! print("<page>\n");
! print("<title>Richmond Field Station Demo</title>\n");
! print("<query>Demo?</query>\n");
! print("<request/>\n");
! print("<center lat=\"37.9177\" lng=\"-122.332\"/>\n");
! print("<span lat=\"0.002\" lng=\"0.003\"/>\n");
! print("<overlay panelStyle=\"sidepanel.xsl\">\n\n\n");
/** TODO: Remove hardcoded db and table names.
--- 22,48 ----
}
!
!
! /** TODO: All of the following code needs to be moved to
! * a function for printing gps locations.
! */
! function print_from_database() {
!
! /** TODO: Replace with an associative array keying images to
! * physical events. For example: fire_fighter_danger => redman.png.
! */
! $imgs=array('/firebug/images/greenman.png');//,'/firebug/images/redman.png');
!
! /***
! *
! * Setting up google maps specific stuff
! *
! * $ids contains the ten ids that you can associate
! * with locations
! *
! * $ imgs lists the image icons that you can have
! *
! ***/
! $ids=array('A','B','C','D','E','F','G','H','I','J');
/** TODO: Remove hardcoded db and table names.
***************
*** 82,101 ****
$rows = pg_numrows($stat);
- /***
- *
- * Setting up google maps specific stuff
- *
- * $ids contains the ten ids that you can associate
- * with locations
- *
- * $ imgs lists the image icons that you can have
- *
- ***/
- $ids=array('A','B','C','D','E','F','G','H','I','J');
- /** TODO: Replace with an associative array keying images to
- * physical events. For example: fire_fighter_danger => redman.png.
- */
- $imgs=array('/firebug/images/greenman.png');
for ($i=0;$i<$rows;$i++) {
--- 89,93 ----
***************
*** 131,137 ****
}
! print("</overlay>\n");
! print("</page>\n");
- pg_close($dbh);
?>
--- 123,149 ----
}
! pg_close($dbh);
! }
!
!
!
! print("<?xml version=\"1.0\"?>\n");
! print("<page>\n");
! print("<title>Richmond Field Station Demo</title>\n");
! print("<query>Demo?</query>\n");
! print("<request/>\n");
! print("<center lat=\"37.9177\" lng=\"-122.332\"/>\n");
! print("<span lat=\"0.002\" lng=\"0.003\"/>\n");
! print("<overlay panelStyle=\"sidepanel.xsl\">\n\n\n");
!
! print_from_database();
!
! // $icon = $imgs[1];
! // $id = $ids[3];
!
! //emit_gps_location($id,37.9177,-122.332,$icon);
!
! print("</overlay>\n");
! print("</page>\n");
?>
|