Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Wello/Wello/www/details-content.php
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
431 lines (373 sloc)
13.5 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="group"> | |
<?php | |
$path = "wellpics/"; | |
$file_name = "wellpics/" . $Well_ID . ".jpg"; | |
if($row['well_pics']=='yes'){ | |
echo "<img src='" . $file_name . "'>"; | |
} | |
else { | |
echo"<img src='img/well-default.png'/>"; | |
} | |
?> | |
<ul class="inputs" id="report-metadata"> | |
<li> | |
<h3>Date well completed</h3> | |
<?php | |
//Should add ternary operator for nulls and blanks | |
$W_Completion_Date = date("m/d/Y", strtotime($row['Date_Well_Completed'])); | |
echo'<p id="well-completion-date">'.$W_Completion_Date.'</p>'; | |
?> | |
</li> | |
<li> | |
<h3>Date of report</h3> | |
<?php | |
//Should add ternary operator for nulls and blanks | |
$R_Completion_Date = date("m/d/Y", strtotime($row['Date_of_Report'])); | |
echo'<p id="report-completion-date">'.$R_Completion_Date.'</p>'; | |
?> | |
</li> | |
<li> | |
<h3>Permit number</h3> | |
<?php | |
echo'<p id="permit-number" class="long-num">'.$Well_ID.'</p>'; | |
?> | |
</li> | |
<li> | |
<h3>Registration number</h3> | |
<?php | |
//Should add ternary operator for nulls and blanks | |
echo'<p id="registrant-number" class="long-num">'.$row['Registration_Number'].'</p>'; | |
?> | |
</li> | |
<li> | |
<h3>State well number</h3> | |
<?php | |
//Should add ternary operator for nulls and blanks | |
echo'<p id="state-well-number" class="long-num">'.$row['State_Well_No'].'</p>'; | |
?> | |
</li> | |
<li> | |
<h3>Other number</h3> | |
<?php | |
//Should add ternary operator for nulls and blanks | |
echo'<p id="other-number" class="long-num">'.$row['Other_No'].'</p>'; | |
?> | |
</li> | |
</ul> | |
</div> | |
<div class="group"> | |
<h2>Owner Info</h2> | |
<ul class="inputs" id="owner-info"> | |
<li><h3>Name</h3> | |
<?php | |
//Should add ternary operator for nulls and blanks | |
echo'<p id="name">'.$row['Owner_Name'].'</p>'; | |
?> | |
</li> | |
<li> | |
<h3>Address</h3> | |
<p id="address"> | |
<?php | |
//Should add ternary operator for nulls and blanks | |
echo'<p id="name">'.$row['Owner_Address'].'</p>'; | |
?> | |
</p> | |
</li> | |
</ul> | |
</div> | |
<div class="group"> | |
<h2>Well location</h2> | |
<ul class="inputs" id="owner-info"> | |
<li> | |
<h3>Address</h3> | |
<?php | |
//Should add ternary operator for nulls and blanks | |
echo'<p id="address">'.$row['WellAddress'].'</p>'; | |
?> | |
</li> | |
<li> | |
<h3>Town</h3> | |
<?php | |
//Should add ternary operator for nulls and blanks | |
echo'<p id="town">'.$row['Well_Town'].'</p>'; | |
?> | |
</li> | |
<li> | |
<h3>Lot number</h3> | |
<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"> | |
<h3>GPS coordinates </h3> | |
<h4 for="gps-coordinates">Latitude</h4> | |
<?php | |
//Should add ternary operator for nulls and blanks | |
//Rounding the latitude to 6 decimal places for neatness | |
$RoundLat = round($row['Well_Latitude'], 6); | |
echo'<p id="gps-coordinates-latitude">'.$RoundLat.'</p>'; | |
?> | |
<h4 for="gps-coordinates">Longitude</h4> | |
<?php | |
//Should add ternary operator for nulls and blanks | |
//Rounding the longitude to 6 decimal places for neatness | |
$RoundLong = round($row['Well_Longitude'], 6); | |
echo'<p id="gps-coordinates-longitude">'.$RoundLong.'</p>'; | |
?> | |
</li> | |
<li> | |
<h3 >Location relative to three permanent landmarks</h3> | |
<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"> | |
<?php | |
//Should add ternary operator for nulls and blanks | |
echo $row['Proposed_Use']; | |
?> | |
</p> | |
</li> | |
<li> | |
<h3>Drilling equipment</h3> | |
<?php | |
//Should add ternary operator for nulls and blanks | |
echo'<p id="other-equipment">'.$row['Drilling_Equipment'].'</p>'; | |
?> | |
</li> | |
</ul> | |
</div> | |
<div class="group"> | |
<h2>Casing Details</h2> | |
<ul class="inputs" id="casing-details"> | |
<li> | |
<h3>Length</h3> | |
<p id="length"> | |
<?php | |
//Should add ternary operator for nulls and blanks | |
echo $row['Casing_Length_Feet']; | |
?> feet | |
</p> | |
</li> | |
<li> | |
<h3>Diameter</h3> | |
<p id="diameter"> | |
<?php | |
//Should add ternary operator for nulls and blanks | |
echo round($row['Casing_Diameter_Inches'], 5); | |
?> inches | |
</p> | |
</li> | |
<li> | |
<h3>Weight per foot</h3> | |
<p id="weight"> | |
<?php | |
//Should add ternary operator for nulls and blanks | |
echo $row['Casing_Weight_per_Foot_Pounds']; | |
?> (weight per foot pounds) | |
</p> | |
</li> | |
<li> | |
<h3>Casing Joint Type</h3> | |
<p> | |
<?php | |
//Should add ternary operator for nulls and blanks | |
echo $row['Casing_Joint_Type']; | |
?> | |
</p> | |
</li> | |
<li> | |
<h3>Drive Shoe?</h3> | |
<p> | |
<?php | |
//Should add ternary operator for nulls and blanks | |
echo $row['Drive_Shoe']; | |
?> | |
</p> | |
</li> | |
<li> | |
<h3>Casing Grouted?</h3> | |
<p> | |
<?php | |
//Should add ternary operator for nulls and blanks | |
echo $row['Grouted']; | |
?> | |
</p> | |
</li> | |
</ul> | |
</div> | |
<div class="group"> | |
<h2>Yield Test</h2> | |
<ul class="inputs" id="yield-test"> | |
<li> | |
<h3>Method</h3> | |
<p id="method"> | |
<?php | |
//Should add ternary operator for nulls and blanks | |
echo $row['Yield_Test_Type']; | |
?> | |
</p> | |
</li> | |
<li> | |
<h3>Test duration</h3> | |
<p id="yield-hours"> | |
<?php | |
//Should add ternary operator for nulls and blanks | |
echo $row['Yield_Test_Hours']; | |
?> hours | |
</p> | |
</li> | |
<li> | |
<h3>Yield</h3> | |
<p id="yeld-gpm"> | |
<?php | |
//Should add ternary operator for nulls and blanks | |
echo $row['Yield_GPM']; | |
?> GPM | |
</p> | |
</li> | |
<li> | |
<h3>Yield test notes</h3> | |
<p id="yield-test-notes"> | |
<?php | |
//Should add ternary operator for nulls and blanks | |
echo $row['Yield_Test_Notes']; | |
?> | |
</p> | |
</li> | |
</ul> | |
</div> | |
<div class="group"> | |
<h2>Water Level</h2> | |
<ul class="inputs" id="yield-test"> | |
<li> | |
<h3>From land surface</h3> | |
<p id="water-from-surface"> | |
<?php | |
//Should add ternary operator for nulls and blanks | |
echo $row['Static_Water_Level_Feet']; | |
?> feet | |
</p> | |
</li> | |
<li> | |
<h3>During yield test</h3> | |
<p id="water-level-during-yield-test"> | |
<?php | |
//Should add ternary operator for nulls and blanks | |
echo $row['Yield_Test_Water_Level_Feet']; | |
?> feet | |
</p> | |
</li> | |
<li> | |
<h3>Depth of complete well</h3> | |
<p id="water-from-surface"> | |
<?php | |
//Should add ternary operator for nulls and blanks | |
echo $row['Well_Depth_Feet']; | |
?> feet | |
</p> | |
</li> | |
</ul> | |
</div> | |
<div class="group"> | |
<h2>Screen Details</h2> | |
<ul class="inputs" id="screen-details"> | |
<li> | |
<h3>Make</h3> | |
<p type="text" id="make"> | |
<?php | |
//Should add ternary operator for nulls and blanks | |
echo $row['Screen_Make']; | |
?> | |
</p> | |
</li> | |
<li> | |
<h3>Length open to aquifier</h3> | |
<p id="length-open-to-aquifier"> | |
<?php | |
//Should add ternary operator for nulls and blanks | |
echo $row['Open_Screen_Length_Feet']; | |
?> feet | |
</p> | |
</li> | |
<li> | |
<h3>Slot size</h3> | |
<p id="slot-size"> | |
<?php | |
//Should add ternary operator for nulls and blanks | |
echo $row['Screen_Slot_Size']; | |
?> inches | |
</p> | |
</li> | |
<li> | |
<h3>Diameter</h3> | |
<p id="diameter"> | |
<?php | |
//Should add ternary operator for nulls and blanks | |
echo $row['Screen_Diameter_Inches']; | |
?> inches | |
</p> | |
</li> | |
<li> | |
<h3>Gravel</h3> | |
<p> | |
<?php | |
//Should add ternary operator for nulls and blanks | |
echo $row['Gravel_Packed']; | |
?> | |
</p> | |
</li> | |
<li> | |
<h3>Diameter including gravel pack</h3> | |
<p id="diameter-including-gravel-pack"> | |
<?php | |
//Should add ternary operator for nulls and blanks | |
echo $row['Well_Diameter_Inches']; | |
?> inches | |
</p> | |
</li> | |
<li> | |
<h3>Gravel size</h3> | |
<p id="gravel-size"> | |
<?php | |
//Should add ternary operator for nulls and blanks | |
echo $row['Gravel_Size_Inches']; | |
?> inches | |
</p> | |
</li> | |
<li> | |
<h3>Gravel pack location</h3> | |
<?php | |
//Should add ternary operator for nulls and blanks | |
echo'<p id="gravel-pack-location-from">'.$row['Depth_To_Top_Of_Gravel_Pack'].' feet</p>'; | |
?> | |
to | |
<?php | |
//Should add ternary operator for nulls and blanks | |
echo'<p id="gravel-pack-location-to">'.$row['Depth_To_Bottom_Of_Gravel_Pack'].' feet</p>'; | |
?> | |
</li> | |
</ul> | |
</div> | |
<div class="group"> | |
<h2>Other Notes</h2> | |
<ul class="inputs" id="notes"> | |
<li> | |
<p id="notes"> | |
<?php | |
//Should add ternary operator for nulls and blanks | |
echo $row['comment']; | |
?> | |
</p> | |
</li> | |
</ul> | |
</div> | |
<p type="submit" value="Submit"> |