Skip to content

Commit

Permalink
details added
Browse files Browse the repository at this point in the history
  • Loading branch information
etl12003 committed Apr 22, 2017
1 parent 5089ce8 commit 3600f08
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 22 deletions.
58 changes: 42 additions & 16 deletions Wello/www/details-content.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,18 +64,14 @@

<li>
<h3>Address</h3>
<p id="address">STILLTODO</p>
</li>

<li>
<h3>Town</h3>
<p id="town">STILLTODO</p>
<p id="address">
<?php
//Should add ternary operator for nulls and blanks
echo'<p id="name">'.$row['Owner_Address'].'</p>';
?>
</p>
</li>

<li>
<h3 >Zip code</h3>
<p id="zip-code" class="med-num">STILLTODO</p>
</li>
</ul>
</div>
<div class="group">
Expand Down Expand Up @@ -105,7 +101,12 @@

<li>
<h3>Lot number</h3>
<p id="lot-number" class="med-num">STILLTODO</p>
<p id="lot-number" class="med-num">
<?php
//Should add ternary operator for nulls and blanks
echo $row['Well_Lot_Number'];
?>
</p>
</li>

<li id="get-gps-local">
Expand All @@ -129,12 +130,22 @@

<li>
<h3 >Location relative to three permanent landmarks</h3>
<p id="relative-location">STILLTODO</p>
<p id="relative-location">
<?php
//Should add ternary operator for nulls and blanks
echo $row['Relative_Location'];
?>
</p>
</li>

<li>
<h3>Use</h3>
<p id="other-use-case">STILLTODO</p>
<p id="other-use-case">
<?php
//Should add ternary operator for nulls and blanks
echo $row['Proposed_Use'];
?>
</p>
</li>

<li>
Expand All @@ -153,16 +164,31 @@
<ul class="inputs" id="casing-details">
<li>
<h3>Length</h3>
<p id="length">STILLTODO</p>
<p id="length">
<?php
//Should add ternary operator for nulls and blanks
echo $row['Casing_Length_Feet'];
?>
</p>
</li>
<li>
<h3>Diameter</h3>
<p id="diameter">STILLTODO</p>
<p id="diameter">
<?php
//Should add ternary operator for nulls and blanks
echo $row['Casing_Diamiter_Inches'];
?>
</p>
</li>

<li>
<h3>Weight per foot</h3>
<p id="weight">STILLTODO</p>
<p id="weight">
<?php
//Should add ternary operator for nulls and blanks
echo $row['Casing_Weight_Per_Foot_Pounds'];
?>
</p>
</li>

<li>
Expand Down
28 changes: 22 additions & 6 deletions Wello/www/details.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,28 @@
$Well_ID = "0";
}

$query = "SELECT Date_Well_Completed, Date_of_Report, Registration_Number, State_Well_No, Other_No,
CONCAT(Owner_First_Name, ' ', Owner_Last_Name) AS 'Owner_Name',
CONCAT(Well_Street_Number, ' ', Well_Street_Name) AS 'WellAddress', Well_Town, Well_Latitude, Well_Longitude,
Drilling_Equipment, Depth_To_Top_Of_Gravel_Pack, Depth_To_Bottom_Of_Gravel_Pack
FROM well_completion_report
WHERE Permit_Number = $Well_ID";
$query = "SELECT
Date_Well_Completed,
Date_of_Report,
Registration_Number,
State_Well_No,
Other_No,
CONCAT(Owner_First_Name, ' ', Owner_Last_Name) AS 'Owner_Name',
Owner_Address,
CONCAT(Well_Street_Number, ' ', Well_Street_Name) AS 'WellAddress',
Well_Town,
Well_Lot_Number,
Well_Latitude,
Well_Longitude,
Relative_Location,
Proposed_Use,
Drilling_Equipment,
Depth_To_Top_Of_Gravel_Pack,
Depth_To_Bottom_Of_Gravel_Pack
FROM well_completion_report
WHERE Permit_Number = $Well_ID";
if ($result = $mysqli->query($query)) {
$row = $result->fetch_assoc();
}
Expand Down

0 comments on commit 3600f08

Please sign in to comment.