diff --git a/README.md b/README.md
index 68789d1..be3f883 100644
--- a/README.md
+++ b/README.md
@@ -1 +1,20 @@
-# ABC_Air_Secure_Design
\ No newline at end of file
+# Airline Maintenance System
+ABC Air is a small aircraft service company that carry out the aircraft maintenance for the civil operators. The
+company records the total number of flying hours for each aircraft, servicing time, man-hours of the engineers
+and related maintenance
+
+Our online system has the following features:-
+
+ Create records for a new air frame
+ Log Flight hours for an air frame
+ Log scheduled maintenance for an air frame
+ Maintain a list of engineers
+ Assign maintenance tasks to engineers.
+
+
+Note: Only Admin access can make
+
+
+This project was implemented using HTML & CSS for the front-end and PHP for the back-end. The database was created and updated using MySQL.
+
+
diff --git a/add_aircraft_details.php b/add_aircraft_details.php
new file mode 100644
index 0000000..afbc71b
--- /dev/null
+++ b/add_aircraft_details.php
@@ -0,0 +1,95 @@
+
+
+
+
+ Add aircraft Details for Maintenance
+
+
+
+
+
+
+
+
+ ABC aircraft maintenance
+
+
+
+
+
+
\ No newline at end of file
diff --git a/add_aircraft_details_form_handler.php b/add_aircraft_details_form_handler.php
new file mode 100644
index 0000000..d64f4e2
--- /dev/null
+++ b/add_aircraft_details_form_handler.php
@@ -0,0 +1,170 @@
+
+
+
+ Add Aircraft Schedule Details
+
+
+ ";
+ foreach($data_missing as $missing)
+ {
+ echo $missing ." ";
+ }
+ }
+ }
+ else
+ {
+ echo "Submit request not received";
+ }
+ ?>
+
+
\ No newline at end of file
diff --git a/add_jet_details.php b/add_jet_details.php
new file mode 100644
index 0000000..e0cc384
--- /dev/null
+++ b/add_jet_details.php
@@ -0,0 +1,85 @@
+
+
+
+
+ Add Aircrafts Details
+
+
+
+
+
+
+
+
+ AADITH AIRLINES
+
+
+
+
+
\ No newline at end of file
diff --git a/add_jet_details_form_handler.php b/add_jet_details_form_handler.php
new file mode 100644
index 0000000..f8fba51
--- /dev/null
+++ b/add_jet_details_form_handler.php
@@ -0,0 +1,84 @@
+
+
+
+ Add Aircraft Details
+
+
+ ";
+ // mysqli_stmt_bind_result($stmt,$cnt);
+ // mysqli_stmt_fetch($stmt);
+ // echo $cnt;
+ mysqli_stmt_close($stmt);
+ mysqli_close($dbc);
+ /*
+ $response=@mysqli_query($dbc,$query);
+ */
+ if($affected_rows==1)
+ {
+ echo "Successfully Submitted";
+ header("location: add_jet_details.php?msg=success");
+ }
+ else
+ {
+ echo "Submit Error";
+ echo mysqli_error();
+ header("location: add_jet_details.php?msg=failed");
+ }
+ }
+ else
+ {
+ echo "The following data fields were empty! ";
+ foreach($data_missing as $missing)
+ {
+ echo $missing ." ";
+ }
+ }
+ }
+ else
+ {
+ echo "Submit request not received";
+ }
+ ?>
+
+
\ No newline at end of file
diff --git a/add_ticket_details_form_handler.php b/add_ticket_details_form_handler.php
new file mode 100644
index 0000000..5d894ef
--- /dev/null
+++ b/add_ticket_details_form_handler.php
@@ -0,0 +1,148 @@
+
+
+
+ Add Ticket Details
+
+
+ ';
+ // mysqli_stmt_bind_result($stmt,$cnt);
+ // mysqli_stmt_fetch($stmt);
+ // echo $cnt;
+ /*
+ $response=@mysqli_query($dbc,$query);
+ */
+ if($affected_rows==1)
+ {
+ echo "Successfully Submitted ";
+ }
+ else
+ {
+ echo "Submit Error";
+ echo mysqli_error();
+ }
+
+ for($i=1;$i<=$no_of_pass;$i++)
+ {
+ echo "frequent_flier_no=".$_POST['pass_ff_id'][$i-1].' ';
+ if($_POST['pass_ff_id'][$i-1]=='')
+ $_POST['pass_ff_id'][$i-1]=NULL;
+ else
+ {
+ $query="SELECT count(*) from Customer c, Frequent_Flier_Details f WHERE c.name=? and f.frequent_flier_no=? and c.customer_id=f.customer_id";
+ $stmt=mysqli_prepare($dbc,$query);
+ mysqli_stmt_bind_param($stmt,"ss",$_POST['pass_name'][$i-1],$_POST['pass_ff_id'][$i-1]);
+ mysqli_stmt_execute($stmt);
+ $affected_rows=mysqli_stmt_affected_rows($stmt);
+ mysqli_stmt_bind_result($stmt,$cnt);
+ mysqli_stmt_fetch($stmt);
+ echo "cnt=".$cnt." ";
+ mysqli_stmt_close($stmt);
+
+ if($cnt==1)
+ {
+ $query="UPDATE Frequent_Flier_Details SET mileage=mileage+? where frequent_flier_no=?";
+ $stmt=mysqli_prepare($dbc,$query);
+ mysqli_stmt_bind_param($stmt,"is",$ff_mileage,$_POST['pass_ff_id'][$i-1]);
+ mysqli_stmt_execute($stmt);
+ $affected_rows=mysqli_stmt_affected_rows($stmt);
+ echo $affected_rows.' ';
+ mysqli_stmt_close($stmt);
+ }
+ }
+
+ $query="INSERT INTO Passengers (passenger_id,pnr,name,age,gender,meal_choice,frequent_flier_no) VALUES (?,?,?,?,?,?,?)";
+ $stmt=mysqli_prepare($dbc,$query);
+
+ if($_POST['pass_meal'][$i-1]=='yes')
+ $total_no_of_meals++;
+ mysqli_stmt_bind_param($stmt,"ississs",$i,$pnr,$_POST['pass_name'][$i-1],$_POST['pass_age'][$i-1],$_POST['pass_gender'][$i-1],$_POST['pass_meal'][$i-1],$_POST['pass_ff_id'][$i-1]);
+ mysqli_stmt_execute($stmt);
+ $affected_rows=mysqli_stmt_affected_rows($stmt);
+ echo 'Passenger added '.$affected_rows.' ';
+ // mysqli_stmt_bind_result($stmt,$cnt);
+ // mysqli_stmt_fetch($stmt);
+ // echo $cnt;
+ }
+ $_SESSION['total_no_of_meals']=$total_no_of_meals;
+ mysqli_stmt_close($stmt);
+ mysqli_close($dbc);
+
+ header("location: payment_details.php");
+
+// else
+// {
+// echo "Submit Error";
+// echo mysqli_error();
+// }
+// }
+// else
+// {
+// echo "The following data fields were empty! ";
+// foreach($data_missing as $missing)
+// {
+// echo $missing ." ";
+// }
+// }
+// }
+ }
+ else
+ {
+ echo "Submit request not received";
+ }
+ ?>
+
+
\ No newline at end of file
diff --git a/admin_homepage.php b/admin_homepage.php
new file mode 100644
index 0000000..53d3bc6
--- /dev/null
+++ b/admin_homepage.php
@@ -0,0 +1,46 @@
+
+
+
+
+ Welcome Administrator
+
+
+
+
+
+
+
+ ABC aircraft Maintenance
+
+ Welcome Administrator!
+
+
+
\ No newline at end of file
diff --git a/admin_ticket_message.php b/admin_ticket_message.php
new file mode 100644
index 0000000..000a42b
--- /dev/null
+++ b/admin_ticket_message.php
@@ -0,0 +1,26 @@
+
+
+
+
+ View Available Flights
+
+
+
+
+
+
+
+ AADITH AIRLINES
+
+
+ Oops! You need to login with a Customer Account to Book Tickets
+
+
\ No newline at end of file
diff --git a/admin_view_booked_tickets.php b/admin_view_booked_tickets.php
new file mode 100644
index 0000000..9e5b141
--- /dev/null
+++ b/admin_view_booked_tickets.php
@@ -0,0 +1,62 @@
+
+
+
+
+ View Aircraft Scheduled for Maintenance
+
+
+
+
+
+
+
+
+ ABC Airlines
+
+
+
+
+
\ No newline at end of file
diff --git a/admin_view_booked_tickets_form_handler.php b/admin_view_booked_tickets_form_handler.php
new file mode 100644
index 0000000..879ba32
--- /dev/null
+++ b/admin_view_booked_tickets_form_handler.php
@@ -0,0 +1,121 @@
+
+
+
+
+ View Aircraft Scheduled for Maintenance
+
+
+
+
+
+
+
+
+ ABC AIRLINES
+
+
+ LIST OF Aircraft Scheduled for Maintenance
+ No booked aircraft information is available!";
+ }
+ else
+ {
+ echo "PNR
+ Date of Reservation
+ Class
+ ";
+ while(mysqli_stmt_fetch($stmt)) {
+ echo "
+ ".$pnr."
+ ".$date_of_reservation."
+ ".$class."
+ ".$no_of_passengers."
+ ".$payment_id."
+ ".$customer_id."
+ ";
+ }
+ echo "
";
+ }
+ mysqli_stmt_close($stmt);
+ mysqli_close($dbc);
+ // else
+ // {
+ // echo "Submit Error";
+ // echo mysqli_error();
+ // }
+ }
+ else
+ {
+ echo "The following data fields were empty! ";
+ foreach($data_missing as $missing)
+ {
+ echo $missing ." ";
+ }
+ }
+ }
+ else
+ {
+ echo "Submit request not received";
+ }
+ ?>
+
+
\ No newline at end of file
diff --git a/cancel_booked_tickets.php b/cancel_booked_tickets.php
new file mode 100644
index 0000000..c0dbea9
--- /dev/null
+++ b/cancel_booked_tickets.php
@@ -0,0 +1,67 @@
+
+
+
+
+ Cancel Booked Tickets
+
+
+
+
+
+
+
+
+ AADITH AIRLINES
+
+
+
+
+
+
\ No newline at end of file
diff --git a/delete_flight_details.php b/delete_flight_details.php
new file mode 100644
index 0000000..cb32fac
--- /dev/null
+++ b/delete_flight_details.php
@@ -0,0 +1,76 @@
+
+
+
+
+ Delete Flight Schedule Details
+
+
+
+
+
+
+
+
+ ABC aircraft management
+
+
+
+
+
\ No newline at end of file
diff --git a/delete_flight_details_form_handler.php b/delete_flight_details_form_handler.php
new file mode 100644
index 0000000..f45c1c2
--- /dev/null
+++ b/delete_flight_details_form_handler.php
@@ -0,0 +1,74 @@
+
+
+
+ Delete Flight Schedule Details
+
+
+ ";
+ // mysqli_stmt_bind_result($stmt,$cnt);
+ // mysqli_stmt_fetch($stmt);
+ // echo $cnt;
+ mysqli_stmt_close($stmt);
+ mysqli_close($dbc);
+ /*
+ $response=@mysqli_query($dbc,$query);
+ */
+ if($affected_rows==1)
+ {
+ echo "Successfully Deleted";
+ header("location: delete_flight_details.php?msg=success");
+ }
+ else
+ {
+ echo "Submit Error";
+ echo mysqli_error();
+ header("location: delete_flight_details.php?msg=failed");
+ }
+ }
+ else
+ {
+ echo "The following data fields were empty! ";
+ foreach($data_missing as $missing)
+ {
+ echo $missing ." ";
+ }
+ }
+ }
+ else
+ {
+ echo "Delete request not received";
+ }
+ ?>
+
+
\ No newline at end of file
diff --git a/flightcheck.php b/flightcheck.php
new file mode 100644
index 0000000..26c4217
--- /dev/null
+++ b/flightcheck.php
@@ -0,0 +1,129 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ";
+
+
+
+
+
+
+
+
+
+ Airport Authority Of India
+ Flight Running on [ From : To : ]
+
+
+
+
+
+ ______________________________________________________________________
+
+
+
+ ";
+ echo"";
+ }
+ ?>
+
+
+
+
+
+
+
+ Flight    Jet ID:
+
+
+
+
+ From
+                
+
+
+
+
+
+
+ Arrival Date
+   
+ Price Economy Class
+
+ Price Business class
+
+
+
+
+
+
+
+
+
+
+
+
+Check other Date
+
+
+
+
+
+
+