<%@page language="abap" %>
<html>
  <head>
    <link rel="stylesheet" href="../../sap/public/bc/bsp/styles/sapbsp.css">
    <title> Ergebnisse </title>
  </head>
  <body class="bspBody1"> <br>
    <form>
     Abflugdatum: <input type =text name="wa1-vondatum" readonly value="<%= wa1-vondatum%>">
     bis:         <input type =text name="wa1-bisdatum" readonly value="<%= wa1-bisdatum%>"> <br>
     Abflugsort:  <input type =text name="wa1-cityfrom" readonly value="<%= wa1-cityfrom%>">
     Ankunftsort: <input type =text name="wa1-cityto"   readonly value="<%= wa1-cityto%>"> <br><br>
     <input type=submit name="onInputProcessing(Zurueck)" value="Zurck">
     <input type=submit name="onInputProcessing(exit)" value="Beenden">
   </form>
    <table>
     <tr> <th>Datum</th> <th>Flugges</th> <th>Linie</th> <th>Dauer</th> <th>Preis</th>
     <th>Whrung</th> <th>freie Sitze</th>
     </tr>
     <% loop at itab into wa2. %>
      <tr>
       <td> <%= page->to_string( value = wa2-fldate format = if_bsp_page~co_format_long )%></td>
       <td> <%= wa2-carrid%>    </td>
       <td> <%= wa2-connid%>    </td>
       <td> <%= wa2-fltime%>    </td>
       <td> <%= wa2-price%>     </td>
       <td> <%= wa2-currency%>  </td>
       <td> <%= wa2-seatsfree%> </td>
      </tr>
     <% endloop. %>
    </table>
  </body>
</html>