Skip to content

Commit

Permalink
form
Browse files Browse the repository at this point in the history
  • Loading branch information
etl12003 committed Apr 23, 2017
1 parent 9f20bc6 commit a5bd4f0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 15 deletions.
25 changes: 11 additions & 14 deletions Wello/www/form.php
Original file line number Diff line number Diff line change
Expand Up @@ -214,26 +214,23 @@
<select id="use" onchange='showOther(this.value, this);'>
<option <?php if ($row['Proposed_Use'] == 'DOMESTIC'){echo 'selected="selected"';} ?> value="Domestic">Domestic</option>
<option <?php if ($row['Proposed_Use'] == 'BUISNESS ESTABLISHMENT'){echo 'selected="selected"';} ?> value="Buisness Establishment">Buisness Establishment</option>
<option <?php if ($row['Proposed_Use'] == 'DOMESTIC'){echo 'selected="selected"';} ?> value="Farm">Farm</option>
<option <?php if ($row['Proposed_Use'] == 'DOMESTIC'){echo 'selected="selected"';} ?> value="Test Well">Test Well</option>
<option <?php if ($row['Proposed_Use'] == 'DOMESTIC'){echo 'selected="selected"';} ?> value="Public Supply">Public Supply</option>
<option <?php if ($row['Proposed_Use'] == 'DOMESTIC'){echo 'selected="selected"';} ?> value="Industrial">Industrial</option>
<option <?php if ($row['Proposed_Use'] == 'DOMESTIC'){echo 'selected="selected"';} ?> value="Air Conditioning">Air Conditioning</option>
<option <?php if ($row['Proposed_Use'] == 'DOMESTIC'){echo 'selected="selected"';} ?> value="Other">Other</option>
<option <?php if ($row['Proposed_Use'] == 'FARM'){echo 'selected="selected"';} ?> value="Farm">Farm</option>
<option <?php if ($row['Proposed_Use'] == 'TEST WELL'){echo 'selected="selected"';} ?> value="Test Well">Test Well</option>
<option <?php if ($row['Proposed_Use'] == 'PUBLIC SUPPLY'){echo 'selected="selected"';} ?> value="Public Supply">Public Supply</option>
<option <?php if ($row['Proposed_Use'] == 'INDUSTRIAL'){echo 'selected="selected"';} ?> value="Industrial">Industrial</option>
<option <?php if ($row['Proposed_Use'] == 'AIR CONDITIONING'){echo 'selected="selected"';} ?> value="Air Conditioning">Air Conditioning</option>
<option <?php if ($row['Proposed_Use'] == 'OTHER'){echo 'selected="selected"';} ?> value="Other">Other</option>
</select>
<input value="" type="text" id="other-use-case" class="other">
</li>

<li>
<label for="drilling-equipment">Drilling equipment</label>
<select value="<?php
//Should add ternary operator for nulls and blanks
echo $row['Drilling_Equipment'];
?>" id="drilling-equipment">
<option value="Rotary">Rotary</option>
<option value="Compressed Air Percussion">Compressed Air Percussion</option>
<option value="Cable Percussion">Cable Percussion</option>
<option value="Other">Other</option>
<select id="drilling-equipment">
<option <?php if ($row['Drilling_Equipment'] == 'ROTERY'){echo 'selected="selected"';} ?> value="Rotary">Rotary</option>
<option <?php if ($row['Drilling_Equipment'] == 'COMPRESSED AIR PERCUSSION'){echo 'selected="selected"';} ?> value="Compressed Air Percussion">Compressed Air Percussion</option>
<option <?php if ($row['Drilling_Equipment'] == 'CABLE PERCUSSION'){echo 'selected="selected"';} ?> value="Cable Percussion">Cable Percussion</option>
<option <?php if ($row['Drilling_Equipment'] == 'OTHER'){echo 'selected="selected"';} ?> value="Other">Other</option>
</select>
<input value="" type="text" id="other-equipment" class="other">
</li>
Expand Down
2 changes: 1 addition & 1 deletion Wello/www/mapERIK.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,9 @@ function showPos(position) {
}

getLoc();
showPos();
console.log(hereLA);
console.log(hereLO);
var myVar = setInterval(console.log(hereLO), 1000);
window.setInterval(console.log(hereLA), 10000);

function initMap() {
Expand Down

0 comments on commit a5bd4f0

Please sign in to comment.