-
Notifications
You must be signed in to change notification settings - Fork 0
/
flights.php
65 lines (47 loc) · 2.41 KB
/
flights.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?php
require_once("parca/header.php");
require_once("parca/navbar.php");
include "connect.php";
$result=$vt->query("SELECT * from flights");
?>
<div class="flightsdiv" style=" background:rgba(100, 100, 100, 0.4);margin-top:5%; width:90%;height:60%;overflow-x: hidden; overflow-y: auto;margin-left:3%;margin-right:3%;">
<table class="container table">
<thead>
<tr>
<th style="color: rgb(255, 174, 0); font-size:25px;">City</th>
<th style="color: rgb(255, 174, 0); font-size:25px;">Date</th>
<th style="color: rgb(255, 174, 0); font-size:25px;">Capacity</th>
<th style="color: rgb(255, 174, 0); font-size:25px;">Price</th>
</tr>
</thead>
<?php
if(isset($_SESSION['login_id'])){
?>
<?php
while($row = $result->fetch_assoc()): ?>
<tr>
<td style="color:white; font-weight:bold; "> <?php echo $row["cities"]; ?> </td>
<td style="color:white; font-weight:bold; "> <?php echo $row["date"]; ?> </td>
<td style="color:white; font-weight:bold;"> <?php echo $row["capacity"]; ?> </td>
<td style="color:white; font-weight:bold; "> <?php echo $row["price"]; ?> </td>
<td style="color:white; font-weight:bold; "><a href="pnr.php?id=<?php echo $row['id'];?>"name="buton" class="btn btn-success" style="color: white;"> BUY</a> </td>
</tr>
<?php endwhile; ?>
</table>
</div>
<?php } else ?>
<?php
while($row = $result->fetch_assoc()): ?>
<tr>
<td style="color:white; font-weight:bold; "> <?php echo $row["cities"]; ?> </td>
<td style="color:white; font-weight:bold; "> <?php echo $row["date"]; ?> </td>
<td style="color:white; font-weight:bold;"> <?php echo $row["capacity"]; ?> </td>
<td style="color:white; font-weight:bold; "> <?php echo $row["price"]; ?> </td>
<td style="color:white; font-weight:bold; "><a href="login(2).php"name="buton" class="btn btn-success" style="color: white;"> BUY</a> </td>
</tr>
<?php endwhile; ?>
</table>
</div>
<?php
require_once("parca/footer.php");
?>