diff --git a/TODO.md b/TODO.md new file mode 100644 index 0000000..cb0d05c --- /dev/null +++ b/TODO.md @@ -0,0 +1,25 @@ +#TODO List + +## Event Page + ++ Clean code ++ Modify map ++ connect function + +## Index Page + ++ Add event ++ BUG: Show the first day ++ Connect to day page ++ ENT ++ Sync with others calendars + +## BDD + ++ Event: add image, contact, site + +## V1 + ++ Clean code ++ Doc ++ Push to server diff --git a/event.php b/event.php index b07c457..c83e3e6 100755 --- a/event.php +++ b/event.php @@ -11,7 +11,7 @@ $db = new MyDB(); if(!$db) echo $db->lastErrorMsg(); - $id = 1; + $id = $_GET["id"]; $ret = $db->query('SELECT * FROM events WHERE id="'. $id .'"'); $event = $ret->fetchArray(SQLITE3_ASSOC); ?> @@ -90,13 +90,14 @@ map.mapTypes.set("OSM", new google.maps.ImageMapType({ getTileUrl: function(coord, zoom) { // "Wrap" x (logitude) at 180th meridian properly - // NB: Don't touch coord.x because coord param is by reference, and changing its x property breakes something in Google's lib + // NOTE: Don't touch coord.x because coord param is by reference, and changing its x property breakes something in Google's lib var tilesPerGlobe = 1 << zoom; var x = coord.x % tilesPerGlobe; if (x < 0) { x = tilesPerGlobe+x; } // Wrap y (latitude) in a like manner if you want to enable vertical infinite scroll + //TODO: Change MAP API return "http://tile.openstreetmap.org/" + zoom + "/" + x + "/" + coord.y + ".png"; }, diff --git a/testdb.db b/testdb.db index 5bbaf2b..52a4d72 100755 Binary files a/testdb.db and b/testdb.db differ