From d30d84f4300eefbac707803ca9ef9f537d0bc5a1 Mon Sep 17 00:00:00 2001 From: MFox Date: Mon, 27 Mar 2017 14:47:10 -0400 Subject: [PATCH 1/4] Changed links and finished queries --- html-ONLY-site/wells-list.php | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/html-ONLY-site/wells-list.php b/html-ONLY-site/wells-list.php index 62ad138..6d6ed6c 100644 --- a/html-ONLY-site/wells-list.php +++ b/html-ONLY-site/wells-list.php @@ -7,7 +7,8 @@ exit(); } -$query = "SELECT Well_Street_Name FROM well_completion_report"; +$query = "SELECT CONCAT(Well_Street_Number, ' ', Well_Street_Name) AS 'WellAddress', Well_Town, Permit_Number + FROM well_completion_report"; ?> @@ -67,16 +68,16 @@ /* fetch associative array */ while ($row = $result->fetch_assoc()) { echo' - +
-

'.$row["Well_Street_Name"].'

-

short well description

+

'.$row["WellAddress"].'

+

'.$row["Well_Town"].'

+

Permit Number: '.$row["Permit_Number"].'

- /a>'; - //printf ($row["Well_Street_Name"]); +
'; } /* free result set */ @@ -87,7 +88,7 @@ From 9b3ca5b9119d31e69042c5204afd8eec49f17cac Mon Sep 17 00:00:00 2001 From: MFox Date: Tue, 28 Mar 2017 17:39:23 -0400 Subject: [PATCH 2/4] Added a few queries for the Details page --- html-ONLY-site/details-content.php | 260 ++++++++++++++++++ html-ONLY-site/details.php | 87 ++++++ html-ONLY-site/priv_includes/config.inc.php | 15 - .../priv_includes/mysqli_oo_connect.php | 20 -- html-ONLY-site/search.html | 25 +- html-ONLY-site/wells-list.php | 18 +- 6 files changed, 373 insertions(+), 52 deletions(-) create mode 100644 html-ONLY-site/details-content.php create mode 100644 html-ONLY-site/details.php delete mode 100644 html-ONLY-site/priv_includes/config.inc.php delete mode 100644 html-ONLY-site/priv_includes/mysqli_oo_connect.php diff --git a/html-ONLY-site/details-content.php b/html-ONLY-site/details-content.php new file mode 100644 index 0000000..4c8d9bc --- /dev/null +++ b/html-ONLY-site/details-content.php @@ -0,0 +1,260 @@ + +
+ +
    +
  • +

    Date well completed

    + '.$W_Completion_Date.'

    '; + ?> +
  • + +
  • +

    Date of report

    + '.$R_Completion_Date.'

    '; + ?> +
  • + +
  • +

    Permit number

    + '.$Well_ID.'

    '; + ?> +
  • + +
  • +

    Registrant number

    +

    STILLTODO

    +
  • + +
  • +

    State well number

    + '.$row['State_Well_No'].'

    '; + ?> +
  • + +
  • +

    Other number

    + '.$row['Other_No'].'

    '; + ?> +
  • +
+
+
+

Owner Info

+
    +
  • Name

    +

    STILLTODO

    +
  • + +
  • +

    Address

    +

    STILLTODO

    +
  • + +
  • +

    Town

    +

    STILLTODO

    +
  • + +
  • +

    Zip code

    +

    STILLTODO

    +
  • +
+
+
+

Well location

+
    + +
  • +

    Address

    +

    STILLTODO

    +
  • + +
  • +

    Town

    +

    STILLTODO

    +
  • + +
  • +

    Zip code

    +

    STILLTODO

    +
  • + +
  • +

    Lot number

    +

    STILLTODO

    +
  • + +
  • +

    GPS coordinates

    +

    Latitude

    +

    STILLTODO

    +

    Longitude

    +

    STILLTODO

    + +
  • + +
  • +

    Location relative to three permanent landmarks

    +

    STILLTODO

    +
  • + +
  • +

    Use

    +

    STILLTODO

    +
  • + +
  • +

    Drilling equipment

    +

    STILLTODO

    +
  • + +
+
+ +
+

Casing Details

+
    +
  • +

    Length

    +

    STILLTODO

    +
  • +
  • +

    Diameter

    +

    STILLTODO

    +
  • + +
  • +

    Weight per foot

    +

    STILLTODO

    +
  • + +
  • +

    Threaded/Welded

    +

    STILLTODO

    +
  • + +
  • +

    Drive Shoe?

    +

    STILLTODO

    +
  • + +
  • +

    Casing Grouted?

    +

    STILLTODO

    +
  • +
+
+
+

Yield Test

+
    +
  • +

    Method

    +

    STILLTODO

    +
  • +
  • +

    Test duration

    +

    STILLTODO

    +
  • + +
  • +

    Yield

    +

    STILLTODO

    +
  • + +
  • +

    Yield test notes

    +

    STILLTODO

    +
  • + +
+
+
+

Water Level

+
    +
  • +

    From land surface

    +

    STILLTODO

    +
  • + +
  • +

    During yield test

    +

    STILLTODO

    +
  • + +
  • +

    Depth of complete well

    +

    STILLTODO

    +
  • + +
+
+
+

Screen Details

+
    +
  • +

    Make

    +

    STILLTODO

    +
  • + +
  • +

    Length open to aquifier

    +

    STILLTODO

    +
  • + +
  • +

    Slot size

    +

    STILLTODO

    +
  • + +
  • +

    Diameter

    +

    STILLTODO

    +
  • + +
  • +

    Gravel

    +

    STILLTODO

    +
  • + +
  • +

    Diameter including gravel pack

    +

    STILLTODO

    +
  • + +
  • +

    Gravel size

    +

    STILLTODO

    +
  • + +
  • +

    Gravel pack location

    +

    STILLTODO

    + to +

    STILLTODO

    +
  • + +
+
+
+

Other Notes

+
    + +
  • +

    STILLTODO

    +
  • + +
+
+

diff --git a/html-ONLY-site/details.php b/html-ONLY-site/details.php new file mode 100644 index 0000000..a316166 --- /dev/null +++ b/html-ONLY-site/details.php @@ -0,0 +1,87 @@ +query($query)) { + $row = $result->fetch_assoc(); +} +?> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+
+ + +
+ + + + + + + + + diff --git a/html-ONLY-site/priv_includes/config.inc.php b/html-ONLY-site/priv_includes/config.inc.php deleted file mode 100644 index 17b607c..0000000 --- a/html-ONLY-site/priv_includes/config.inc.php +++ /dev/null @@ -1,15 +0,0 @@ - diff --git a/html-ONLY-site/priv_includes/mysqli_oo_connect.php b/html-ONLY-site/priv_includes/mysqli_oo_connect.php deleted file mode 100644 index 4d3e2eb..0000000 --- a/html-ONLY-site/priv_includes/mysqli_oo_connect.php +++ /dev/null @@ -1,20 +0,0 @@ -connect_error) { //if there is a connection error - echo $mysqli->connect_error; //echo error to screen - unset($mysqli); //delete the object created on line 19 -} -else { //establish encoding - $mysqli->set_charset('utf8'); -} - -/* terminating php tag "?>" not needed if this file end in .php extension */ diff --git a/html-ONLY-site/search.html b/html-ONLY-site/search.html index e4933d2..9e7faea 100644 --- a/html-ONLY-site/search.html +++ b/html-ONLY-site/search.html @@ -12,6 +12,7 @@ + @@ -32,21 +33,21 @@ -