-
Notifications
You must be signed in to change notification settings - Fork 0
/
book_tickets2.php
127 lines (127 loc) · 4.62 KB
/
book_tickets2.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<?php
session_start();
?>
<html>
<head>
<title>
Enter Travel/Ticket Details
</title>
<style>
td{
margin-left: 100px;
padding-left: 100px;
}
input {
border: 1.5px solid #030337;
border-radius: 4px;
padding: 7px 10px;
}
input[type=number] {
border: 1.5px solid #030337;
border-radius: 4px;
padding: 7px 0px;
}
input[type=submit] {
background-color: #030337;
color: white;
border-radius: 4px;
padding: 7px 45px;
margin: 0px 500px
}
input[type=radio] {
margin-right: 30px;
}
select {
border: 1.5px solid #030337;
border-radius: 4px;
padding: 6.5px 15px;
}
</style>
<link rel="stylesheet" type="text/css" href="css/style.css"/>
<link rel="stylesheet" href="font-awesome-4.7.0\css\font-awesome.min.css">
</head>
<body>
<img class="logo" src="images/railogo.png"/>
<h1 id="title" style="color: navy;">
IRCTC
</h1>
<div>
<ul>
<li><a href="home_page.php"><i class="fa fa-home" aria-hidden="true"></i> Home</a></li>
<li><a href="customer_homepage.php"><i class="fa fa-desktop" aria-hidden="true"></i> Dashboard</a></li>
<li><a href="home_page.php"><i class="fa fa-plane" aria-hidden="true"></i> About Us</a></li>
<li><a href="home_page.php"><i class="fa fa-phone" aria-hidden="true"></i> Contact Us</a></li>
<li><a href="logout_handler.php"><i class="fa fa-sign-out" aria-hidden="true"></i> Logout</a></li>
</ul>
</div>
<?php
$no_of_pass=$_SESSION['no_of_pass'];
$class=$_SESSION['class'];
$count=$_SESSION['count'];
$flight_no=$_POST['select_flight'];
$_SESSION['flight_no']=$flight_no;
//$pass_name=array();
echo "<fieldset style=\" margin:10px;\"><legend class=\"fa fa-user\" style=\" font-size: 25px;\"> <strong>ADD PASSENGERS DETAILS </strong></legend>";
echo "<form action=\"add_ticket_details_form_handler.php\" method=\"post\">";
while($count<=$no_of_pass)
{
echo "<p><strong>PASSENGER ".$count."<strong></p>";
echo "<table cellpadding=\"0\">";
echo "<tr>";
echo "<td class=\"fix_table_short\">Passenger's Name</td>";
echo "<td class=\"fix_table_short\">Passenger's Age</td>";
echo "<td class=\"fix_table_short\">Passenger's Gender</td>";
echo "<td class=\"fix_table_short\">Passenger's Onboard Meal</td>";
echo "<td class=\"fix_table_short\">Passenger's Frequent Traveler ID (if applicable)</td>";
echo "</tr>";
echo "<tr>";
echo "<td class=\"fix_table_short\"><input type=\"text\" name=\"pass_name[]\" required></td>";
echo "<td class=\"fix_table_short\"><input type=\"number\" name=\"pass_age[]\" required></td>";
echo "<td class=\"fix_table_short\">";
echo "<select name=\"pass_gender[]\">";
echo "<option value=\"male\">Male</option>";
echo "<option value=\"female\">Female</option>";
echo "<option value=\"other\">Other</option>";
echo "</select>";
echo "</td>";
echo "<td class=\"fix_table_short\">";
echo "<select name=\"pass_meal[]\">";
echo "<option value=\"yes\">Yes</option>";
echo "<option value=\"no\">No</option>";
echo "</select>";
echo "</td>";
echo "<td class=\"fix_table_short\"><input type=\"text\" name=\"pass_ff_id[]\"></td>";
echo "</tr>";
echo "</table>";
echo "<br><hr>";
$count=$count+1;
}
echo "<br><h3>ENTER TRAVEL DETAILS</h3>";
echo "<table cellpadding=\"5\">";
echo "<tr>";
echo "<td class=\"fix_table_short\">Do you want access to our Premium Lounge?</td>";
echo "<td class=\"fix_table_short\">Do you want to opt for Priority Checkin?</td>";
echo "<td class=\"fix_table_short\">Do you want to purchase Travel Insurance?</td>";
echo "</tr>";
echo "<tr>";
echo "<td class=\"fix_table\">";
echo "Yes <input type='radio' name='lounge_access' value='yes' checked/> No <input type='radio' name='lounge_access' value='no'/>";
echo "</td>";
echo "<td class=\"fix_table\">";
echo "Yes <input type='radio' name='priority_checkin' value='yes' checked/> No <input type='radio' name='priority_checkin' value='no'/>";
echo "</td>";
echo "<td class=\"fix_table\">";
echo "Yes <input type='radio' name='insurance' value='yes' checked/> No <input type='radio' name='insurance' value='no'/>";
echo "</td>";
echo "</tr>";
echo "</table>";
echo "<br><br>";
echo "<input type=\"submit\" value=\"Submit Ticket Details\" name=\"Submit\">";
echo "</form></fieldset>";
?>
<!--Following data fields were empty!
...
ADD VIEW FLIGHT DETAILS AND VIEW JETS/ASSETS DETAILS for ADMIN
-->
</body>
</html>