From a76756b2f75da2409cd8d0666394b6ae4ca50569 Mon Sep 17 00:00:00 2001 From: AmarOk Date: Thu, 12 Nov 2015 11:55:16 +0100 Subject: [PATCH] ADD TODO List --- TODO.md | 25 +++++++++++++++++++++++++ event.php | 5 +++-- testdb.db | Bin 3072 -> 3072 bytes 3 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 TODO.md 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 5bbaf2bb6b599135cc385f2437c65b8dd00cf9b3..52a4d729581a432c0536233047b8f815b81f7b19 100755 GIT binary patch delta 193 zcmZpWXpop7&8R$4##vCALHFegUgj_cCdT^=O!pb@Zx&?9XWV?BQI&~{nduS(^9JTn zrb|Gn?bDmTFZ delta 63 zcmZpWXpop7&8Rd{##vB_LH8LKFLM|J6XSgbru&TdHw&`lGj6`msLI5}#2m`Nyn#8C SSr#aGkZEE=+vZUA)hqz_qY$Y8