-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
executable file
·44 lines (37 loc) · 1.17 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
/*
@Author: ananayarora
@Date: 2017-05-02T19:50:46+05:30
@Last modified by: ananayarora
@Last modified time: 2017-05-03T04:26:59+05:30
*/
require("api/getFlights.php");
$f = new Flight();
$random = $f->getRandomFlight();
$flight = $f->getFlight($random);
while (!$f->check($flight)) {
$random = $f->getRandomFlight();
$flight = $f->getFlight($random);
}
$flightId = $random;
$flightNumber = $f->getFlightNumber($flight);
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Plavana</title>
<link rel="stylesheet" href="css/home.css">
</head>
<body>
<div class="logo">
<img src="img/logo.png" alt="">
</div>
<h1 class="logo_text">Plavana</h1>
<div class="random_flight">Flight selected: <?php echo $flightNumber; ?></div>
<div class="buttons">
<a href="pilot/?lat=25.2048&lng=55.2708"><div class="btn inline">Pilot</div></a>
<a href="passenger.php?flight=<?php echo $flightId; ?>"><div class="btn inline">Passenger</div></a>
</div>
</body>
</html>