Changeset 837102
- Timestamp:
- 01/12/2014 11:48:09 AM (12 years ago)
- Location:
- map-pins/trunk
- Files:
-
- 2 edited
-
include/marker.php (modified) (5 diffs)
-
js/coslib.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
map-pins/trunk/include/marker.php
r811030 r837102 10 10 11 11 static function update($id,$cols) { 12 $table_name=s tatic::GetTable();12 $table_name=self::GetTable(); 13 13 $fsql=''; 14 14 foreach($cols as $c=>$v) { … … 24 24 25 25 static function insert($cols) { 26 $table_name=s tatic::GetTable();26 $table_name=self::GetTable(); 27 27 $fsql=''; 28 28 foreach($cols as $c=>$v) { … … 38 38 39 39 static function delete($id) { 40 $table_name=s tatic::GetTable();40 $table_name=self::GetTable(); 41 41 $rv = $GLOBALS['wpdb']->query($GLOBALS['wpdb']->prepare("delete from $table_name where id=%d",$id)); 42 42 return $rv; … … 44 44 45 45 static function find($id) { 46 $table_name = s tatic::GetTable();46 $table_name = self::GetTable(); 47 47 $results = $GLOBALS['wpdb']->get_results($GLOBALS['wpdb']->prepare("select * from $table_name where id=%d",$id)); 48 48 if ($results) … … 52 52 53 53 static function all() { 54 $table_name = s tatic::GetTable();54 $table_name = self::GetTable(); 55 55 return $GLOBALS['wpdb']->get_results("select * from $table_name order by city"); // order by id desc 56 56 } -
map-pins/trunk/js/coslib.js
r811030 r837102 9 9 10 10 } else { 11 alert("Sorry, deze browser ondersteund geen locatieservice");11 alert("Sorry, this browser does not support geolocation"); 12 12 } 13 13 };
Note: See TracChangeset
for help on using the changeset viewer.