Skip to content

Commit

Permalink
getting stuff done
Browse files Browse the repository at this point in the history
  • Loading branch information
Arif Prabawa authored and Arif Prabawa committed Apr 23, 2017
1 parent 309d69e commit 9e1b663
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Wello/www/details.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php require 'cred.php';
$mysqli = new mysqli("localhost", $username, $password, $database);
if ( (isset($_GET['Well_ID'])) && (is_numeric($_GET['Well_ID'])) ) {
if ( (isset($_GET['Well_ID']))) {
$Well_ID = $_GET['Well_ID'];
}
else if ( (isset($_POST['Well_ID'])) && (is_numeric($_POST['Well_ID'])) ) {
else if ( (isset($_POST['Well_ID']))) {
$Well_ID = $_POST['Well_ID'];
}
else {
Expand Down
14 changes: 11 additions & 3 deletions Wello/www/map.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
function initMap() {
var map = new google.maps.Map(document.getElementById('map'), {
center: new google.maps.LatLng(41.79947, -72.37209),
zoom: 12
zoom: 15
});
var infoWindow = new google.maps.InfoWindow;

Expand All @@ -118,13 +118,21 @@ function initMap() {

var infowincontent = document.createElement('div');
var strong = document.createElement('strong');
strong.textContent = name
strong.textContent = address
infowincontent.appendChild(strong);
infowincontent.appendChild(document.createElement('br'));


var text = document.createElement('text');
text.textContent = address
text.textContent = name
infowincontent.appendChild(text);
infowincontent.appendChild(document.createElement('br'));

var clicker = document.createElement('a');
var clickerText = document.createTextNode("go to details...");
clicker.setAttribute('href',"http://wellreportapp.uconn.edu/details.php?Well_ID="+id);
clicker.appendChild(clickerText);
infowincontent.appendChild(clicker);
var marker = new google.maps.Marker({
map: map,
position: point
Expand Down

0 comments on commit 9e1b663

Please sign in to comment.