Browse Source

ADD TODO List

master
AmarOk 10 years ago
parent
commit
a76756b2f7
3 changed files with 28 additions and 2 deletions
  1. +25
    -0
      TODO.md
  2. +3
    -2
      event.php
  3. BIN
      testdb.db

+ 25
- 0
TODO.md View File

@ -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

+ 3
- 2
event.php View File

@ -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";
},


BIN
testdb.db View File


Loading…
Cancel
Save