Created
November 29, 2016 09:14
-
-
Save abhijeetahuja/00f91cc668d643546400809433932633 to your computer and use it in GitHub Desktop.
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
<select class="form-control" required id="ploc" name="ploc"> | |
<option></option> | |
<optgroup id="pairport" label="Airports"> | |
<option value="airport-YES-YES">International Airport</option> | |
</optgroup> | |
<optgroup id="photel" label="Hotels"> | |
<?php | |
foreach ($hotels as $hotel) { ?> | |
<option value="HOT<?php echo $hotel['id']; ?>-<?php echo $hotel['eligible_shuttle']; ?>-<?php echo $hotel['d2d']; ?>"><?php echo $hotel["hotel_name"]; ?></option> | |
<?php } ?> | |
</optgroup> | |
<optgroup id="psuburb" label="Suburbs"> | |
<?php | |
foreach ($suburbs as $suburb) { ?> | |
<option value="SUB<?php echo $suburb['id']; ?>-<?php echo $suburb['eligible_shuttle']; ?>-<?php echo $suburb['d2d']; ?>"><?php echo $suburb["suburb_name"]; ?></option> | |
<?php } ?> | |
</optgroup> | |
</select> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment