本文整理匯總了PHP中Flight::airline_name方法的典型用法代碼示例。如果您正苦於以下問題:PHP Flight::airline_name方法的具體用法?PHP Flight::airline_name怎麽用?PHP Flight::airline_name使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Flight
的用法示例。
在下文中一共展示了Flight::airline_name方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: foreach
<th>Flight Number</th>
<th>Origin</th>
<th>Destination</th>
<th>Airline</th>
<th>Departure Time</th>
<th>Arrival Time</th>
<th>Status</th>
<th>Actions</th>
</tr>';
if ($flights && count($flights) > 0) {
foreach ($flights as $flight) {
echo "<tr>";
echo "<td>" . $flight->flight_number() . "</td>";
echo "<td>" . $flight->origin() . "</td>";
echo "<td>" . $flight->destination() . "</td>";
echo "<td>" . $flight->airline_name() . "</td>";
echo "<td>" . $flight->departure_time() . "</td>";
echo "<td>" . $flight->arrival_time() . "</td>";
echo "<td>" . $flight->status() . "</td>";
echo "<td> <a href='flightsAdmin.php?step=editFlight&flight_number=" . urlencode($flight->flight_number()) . "'>EDIT</a> <a href='flightsAdmin.php?step=deleteFlight&flight_number=" . urlencode($flight->flight_number()) . "'>DELETE</a></td>";
echo "</tr>";
}
} else {
echo "<tr><td colspan='7'><center>There aren't any flights at this time.</center></td></tr> ";
}
?>
</table>
<br>
<br>
<div style="text-align: right" ><a href="flightsAdmin.php?step=createFlight">+ Add New</a></div>
<?php