Permalink
Browse files

Initial code commit

  • Loading branch information...
1 parent 4aa92bb commit 278ac19b4617ecf5cb7a49601039eb772fdd0f9c @bmcbride committed Mar 19, 2012
View
@@ -0,0 +1,4 @@
+<Files ~ "\.sqlite$">
+ Order allow,deny
+ Deny from all
+</Files>
View
@@ -0,0 +1,145 @@
+/*******************************************************
+TITLE: Fixed One-Column #2 Layout (Basic) V1.0 (Beta)
+DATE: 20070807
+AUTHOR: The CSS Tinderbox - http://www.csstinderbox.com
+*******************************************************/
+
+body {
+ font-size: 12px;
+ margin: 20px;
+ background: #f7f7f7;
+}
+
+/*a {
+ color:#ffffff;
+ text-decoration:underline;
+}
+
+a:hover {
+ color:#ffffff;
+ text-decoration:none;
+}*/
+
+#container {
+ position: relative;
+ margin:0 auto;
+ padding:0;
+ background: white;
+ width: 790px;
+ border: 1px solid #dfdfdf;
+ border-top: 0;
+ box-shadow: 0 0 40px #e0e0e0;
+ -moz-box-shadow: 0 0 40px #e0e0e0;
+ -webkit-box-shadow: 0 0 40px #e0e0e0;
+}
+
+#map {
+ width: 100%;
+ height: 500px;
+}
+
+#map a {
+ text-decoration:none;
+}
+
+#header {
+ margin:0;
+ padding:0;
+ height:75px;
+ font-family: 'Norican', serif;
+ background-color:#2c2c2c;
+}
+
+#header h1 {
+ margin:0;
+ padding:5px 0 0 35px;
+ font-size:48px;
+ /*letter-spacing:.1em;*/
+ color:#f0f0f0;
+ font-weight:bold;
+}
+
+#footer {
+ position:relative;
+ bottom:0;
+ margin:0 0 0 0;
+ padding:0;
+ height:25px;
+ line-height:25px;
+ text-align:center;
+ font-size:12px;
+ color:#ffffff;
+ background-color:#2c2c2c;
+ border-top:1px solid #cccccc;
+}
+
+#footer a{
+ color:#ffffff;
+}
+
+.alignleft {
+ float: left;
+}
+
+.alignright {
+ float: right;
+}
+
+.label {
+ color: #000;
+ padding:5px 0;
+ font-weight:bold;
+}
+
+.sublabel {
+ color:#777777;
+ font-style:italic;
+}
+
+.leaflet-top .leaflet-control {
+ margin-top: 45px;
+}
+
+.leaflet-popup-content-wrapper, .leaflet-popup-tip {
+ background: #f7f7f7;
+}
+
+.geolocation {
+ position: absolute;
+ left: 0;
+ top: 0;
+ margin-left: 10px;
+ margin-top: 85px;
+ padding: 5px;
+ background: rgba(0, 0, 0, 0.25);
+ border-radius: 7px;
+ -moz-border-radius: 7px;
+ -webkit-border-radius: 7px;
+ color: rgba(255, 255, 255, 1);
+ z-index: 100;
+}
+
+.geolocation a {
+ background-color: rgba(255, 255, 255, 0.75);
+ background-position: 50% 50%;
+ background-repeat: no-repeat;
+ background-image: url(../img/location.png);
+ display: block;
+ -moz-border-radius: 4px;
+ -webkit-border-radius: 4px;
+ border-radius: 4px;
+ width: 19px;
+ height: 19px;
+}
+
+.geolocation a:hover {
+ background-color: #fff;
+}
+
+.buttoncontainer {
+ position: absolute;
+ right: 0;
+ top: 0;
+ margin-right: 35px;
+ margin-top: 24px;
+}
View
@@ -0,0 +1,17 @@
+<?php
+$db = new PDO('sqlite:leaflet.sqlite');
+$sql = "SELECT id, name, website, city, lat, lng FROM users;";
+
+$rs = $db->query($sql);
+if (!$rs) {
+ echo "An SQL error occured.\n";
+ exit;
+}
+
+$rows = array();
+while($r = $rs->fetch(PDO::FETCH_ASSOC)) {
+ $rows[] = $r;
+}
+print json_encode($rows);
+$db = NULL;
+?>
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.

0 comments on commit 278ac19

Please sign in to comment.