Advertisement
Guest User

Untitled

a guest
Jul 2nd, 2015
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5.27 KB | None | 0 0
  1. <h2>Flight Search</h2>
  2. <form class="flight-search">
  3.     <input type="hidden" name="type" value="simple">
  4.  
  5.     <div class="form-column left-sm">
  6.         <div class="form-row">
  7.             <label><input type="radio" name="flight-type" value="departures" <% if APIQuery.query_leg == 'D' %> checked<% end_if %> tabindex="1"> Departures</label>
  8.             &nbsp;|&nbsp;
  9.             <label><input type="radio" name="flight-type" value="arrivals" <% if APIQuery.query_leg == 'A' %> checked<% end_if %> tabindex="2"> Arrivals</label>
  10.             <a href="#" class="float right" tabindex="3">See all flights</a>
  11.         </div><!-- .form-row -->
  12.         <div class="form-row background-purple">
  13.             <div class="search-right">
  14.                 <button type="submit" class="btn btn-baby-blue btn-submit" tabindex="5">Search</button>
  15.             </div>
  16.             <div class="search-left">
  17.                 <input id="search_flight" name="search_flight" value="$APIQuery.search_flight" class="" tabindex="4">
  18.             </div>
  19.         </div><!-- .form-row -->
  20.     </div><!-- .form-column.left-sm -->
  21.  
  22.     <div class="form-column right-sm advanced-options">
  23.         <a href="#collapseAdvancedOptions" data-toggle="collapse" aria-expanded="false" aria-controls="collapseAdvancedOptions" tabindex="6">Show Advanced Options</a>
  24.     </div><!-- .form-column.right-sm -->
  25.  
  26.     <div id="clearboth"></div>
  27. </form>
  28. <form class="flight-search">
  29.     <input type="hidden" name="type" value="advanced">
  30.  
  31.     <div id="collapseAdvancedOptions" class="collapse">
  32.         <div class="col-md-offset-3 col-md-6">
  33.             <div class="input-group">
  34.                 <label>Search From</label>
  35.                 <select name="query_date1" id="query_date1">
  36.                     <% loop $DateList %>
  37.                     <option value="$value" <% if $APIQuery.date1 == $value %> selected<% end_if %>>$title</option>
  38.                     <% end_loop %>
  39.                 </select>
  40.                 <label>To</label>
  41.                 <select name="query_date2" id="query_date2">
  42.                     <% loop $DateList %>
  43.                     <option value="$value" <% if $APIQuery.date2 == $value %> selected<% end_if %>>$title</option>
  44.                     <% end_loop %>
  45.                 </select>
  46.             </div>
  47.             <div class="input-group">
  48.                 <label id="dest_or_source">Destination</label>
  49.                 <select name="query_city" id="query_city">
  50.                     <option value="">All Locations</option>
  51.                     <% loop $DestinationList %>
  52.                     <option value="$value" <% if $APIQuery.city == $value %> selected<% end_if %>>$title ($value)</option>
  53.                     <% end_loop %>
  54.                 </select>
  55.                 <label>Gate</label>
  56.                 <select name="query_gate" id="query_gate">
  57.                     <option value="">All Gates</option>
  58.                     <% loop $GateList %>
  59.                     <option value="$value" <% if $APIQuery.gate == $value %> selected<% end_if %>>$title</option>
  60.                     <% end_loop %>
  61.                 </select>
  62.             </div>
  63.             <div class="input-group">
  64.                 <label>Airlines</label>
  65.                 <select name="query_airline" id="query_airline">
  66.                     <option value="">All Airlines</option>
  67.                     <% loop $AirlineList %>
  68.                     <option value="$value" <% if $APIQuery.airline == $value %> selected<% end_if %>>$title ($value)</option>
  69.                     <% end_loop %>
  70.                 </select>
  71.                 <label>Sort By</label>
  72.                 <select name="sortby" id="sortby">
  73.                     <% loop $SortList %>
  74.                     <option value="$value" <% if $APIQuery.sort == $value %> selected="selected"<% end_if %>>$title</option>
  75.                     <% end_loop %>
  76.                 </select>
  77.                 My SortDir: <% $APIQuery.sortdir %><br>
  78.                 <button type="button" id="sortDirBtn"><% if $APIQuery.sortdir == 'asc' %>First->Last<% else %>Last->First<% end_if %></button>
  79.                 <input type="hidden" id="sortdir" name="sortdir" value="<% $APIQuery.sortdir %>" />
  80.             </div>
  81.             <div class="input-group">
  82.                 <input type="submit" value="Search" />
  83.                 <label># Results</label>
  84.                 <select name="results_per_page" id="results_per_page">
  85.                     <% loop $ResultsPerPageList %>
  86.                     <option value="$value" <% if $APIQuery.results_per_page == $value %> selected="selected"<% end_if %>>$title</option>
  87.                     <% end_loop %>
  88.                 </select>
  89.             </div>
  90.         </div>
  91.     </div>
  92. </form><!-- .flight-search -->
  93.  
  94. <hr>
  95.  
  96. $FlightSearchForm
  97. <% if $FlightResults %>
  98. <h2>Search Results</h2>
  99. <% loop $FlightResults %>
  100. <div class="table-title">$date</div>
  101. <table class="flight-striped">
  102.     <thead>
  103.     <tr>
  104.         <th><a href="#" class="sorted descending">Scheduled Time</a></th>
  105.         <th><a href="#">Departing To</a></th>
  106.         <th><a href="#">Flight #</a></th>
  107.         <th><a href="#">Status</a></th>
  108.         <th><a href="#">Gate</a></th>
  109.     </tr>
  110.     </thead>
  111.     <tbody>
  112.     <% loop $flights %>
  113.     <tr>
  114.         <td>$schedule</td>
  115.         <td>$leg</td>
  116.         <td>$flightNumber</td>
  117.         <td>$status</td>
  118.         <td>$gate</td>
  119.     </tr>
  120.     <% end_loop %>
  121.     </tbody>
  122. </table>
  123. <% end_loop %>
  124. <% end_if %>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement