Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
24 changed files
with
2,135 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,20 @@ | ||
# ABC_Air_Secure_Design | ||
# 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. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
<?php | ||
session_start(); | ||
?> | ||
<html> | ||
<head> | ||
<title> | ||
Add aircraft Details for Maintenance | ||
</title> | ||
<style> | ||
input { | ||
border: 1.5px solid #030337; | ||
border-radius: 4px; | ||
padding: 7px 30px; | ||
} | ||
input[type=submit] { | ||
background-color: #030337; | ||
color: white; | ||
border-radius: 4px; | ||
padding: 7px 45px; | ||
margin: 0px 200px | ||
} | ||
</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/shutterstock_22.jpg"/> | ||
<h1 id="title"> | ||
ABC aircraft maintenance | ||
</h1> | ||
<div> | ||
<ul> | ||
<li><a href="admin_homepage.php"><i class="fa fa-home" aria-hidden="true"></i> Home</a></li> | ||
<li><a href="admin_homepage.php"><i class="fa fa-desktop" aria-hidden="true"></i> Dashboard</a></li> | ||
<li><a href="logout_handler.php"><i class="fa fa-sign-out" aria-hidden="true"></i> Logout</a></li> | ||
</ul> | ||
</div> | ||
<form action="add_aircraft_details_form_handler.php" method="post"> | ||
<h2>ENTER THE AIRCRAFT DETAILS for</h2> | ||
<?php | ||
if(isset($_GET['msg']) && $_GET['msg']=='success') | ||
{ | ||
echo "<strong style='color: green'>The Flight Schedule has been successfully added.</strong> | ||
<br> | ||
<br>"; | ||
} | ||
else if(isset($_GET['msg']) && $_GET['msg']=='failed') | ||
{ | ||
echo "<strong style='color: red'>*Invalid Flight Schedule Details, please enter again.</strong> | ||
<br> | ||
<br>"; | ||
} | ||
?> | ||
<table cellpadding="5"> | ||
<tr> | ||
<td class="fix_table">Aircraft Number</td> | ||
</tr> | ||
<tr> | ||
<td class="fix_table"><input type="text" name="flight_no" required></td> | ||
</tr> | ||
</table> | ||
|
||
<br> | ||
<hr> | ||
<table cellpadding="5"> | ||
<tr> | ||
<td class="fix_table">Arrival of aircraft Date</td> | ||
<td class="fix_table">completion maintenance Date</td> | ||
</tr> | ||
<tr> | ||
<td class="fix_table"><input type="date" name="dep_date" required></td> | ||
<td class="fix_table"><input type="date" name="arr_date" required></td> | ||
</tr> | ||
</table> | ||
|
||
<br> | ||
<hr> | ||
<table cellpadding="5"> | ||
<tr> | ||
<td class="fix_table">Jet ID</td> | ||
</tr> | ||
<tr> | ||
<td class="fix_table"> | ||
<input type="text" name="jet_id" required> | ||
</td> | ||
</tr> | ||
</table> | ||
<br> | ||
<input type="submit" value="Submit" name="Submit"> | ||
</form> | ||
<!--check out addling local host in links and other places | ||
--> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,170 @@ | ||
<?php | ||
session_start(); | ||
?> | ||
<html> | ||
<head> | ||
<title>Add Aircraft Schedule Details</title> | ||
</head> | ||
<body> | ||
<?php | ||
if(isset($_POST['Submit'])) | ||
{ | ||
$data_missing=array(); | ||
if(empty($_POST['flight_no'])) | ||
{ | ||
$data_missing[]='Flight No.'; | ||
} | ||
else | ||
{ | ||
$flight_no=trim($_POST['flight_no']); | ||
} | ||
|
||
if(empty($_POST['origin'])) | ||
{ | ||
$data_missing[]='Origin'; | ||
} | ||
else | ||
{ | ||
$origin=$_POST['origin']; | ||
} | ||
if(empty($_POST['destination'])) | ||
{ | ||
$data_missing[]='Destination'; | ||
} | ||
else | ||
{ | ||
$destination=$_POST['destination']; | ||
} | ||
|
||
if(empty($_POST['dep_date'])) | ||
{ | ||
$data_missing[]='Departure Date'; | ||
} | ||
else | ||
{ | ||
$dep_date=$_POST['dep_date']; | ||
} | ||
if(empty($_POST['arr_date'])) | ||
{ | ||
$data_missing[]='Arrival Date'; | ||
} | ||
else | ||
{ | ||
$arr_date=$_POST['arr_date']; | ||
} | ||
|
||
if(empty($_POST['dep_time'])) | ||
{ | ||
$data_missing[]='Departure Time'; | ||
} | ||
else | ||
{ | ||
$dep_time=$_POST['dep_time']; | ||
} | ||
if(empty($_POST['arr_time'])) | ||
{ | ||
$data_missing[]='Arrival Time'; | ||
} | ||
else | ||
{ | ||
$arr_time=$_POST['arr_time']; | ||
} | ||
|
||
if(empty($_POST['seats_eco'])) | ||
{ | ||
$data_missing[]='Seats(Economy)'; | ||
} | ||
else | ||
{ | ||
$seats_eco=$_POST['seats_eco']; | ||
} | ||
if(empty($_POST['seats_bus'])) | ||
{ | ||
$data_missing[]='Seats(Business)'; | ||
} | ||
else | ||
{ | ||
$seats_bus=$_POST['seats_bus']; | ||
} | ||
|
||
if(empty($_POST['price_eco'])) | ||
{ | ||
$data_missing[]='Price(Economy)'; | ||
} | ||
else | ||
{ | ||
$price_eco=$_POST['price_eco']; | ||
} | ||
if(empty($_POST['price_bus'])) | ||
{ | ||
$data_missing[]='Price(Business)'; | ||
} | ||
else | ||
{ | ||
$price_bus=$_POST['price_bus']; | ||
} | ||
|
||
if(empty($_POST['jet_id'])) | ||
{ | ||
$data_missing[]='Jet ID'; | ||
} | ||
else | ||
{ | ||
$jet_id=$_POST['jet_id']; | ||
} | ||
|
||
if(empty($data_missing)) | ||
{ | ||
$cnt=-1; | ||
require_once('Database Connection file/mysqli_connect.php'); | ||
|
||
$query="SELECT count(*) FROM Jet_Details WHERE jet_id=? and active='Yes'"; | ||
$stmt=mysqli_prepare($dbc,$query); | ||
mysqli_stmt_bind_param($stmt,"s",$jet_id); | ||
mysqli_stmt_execute($stmt); | ||
mysqli_stmt_bind_result($stmt,$cnt); | ||
mysqli_stmt_fetch($stmt); | ||
mysqli_stmt_close($stmt); | ||
|
||
if($cnt==1) | ||
{ | ||
$query="INSERT INTO Flight_Details (flight_no,from_city,to_city,departure_date,arrival_date,departure_time,arrival_time,seats_economy,seats_business,price_economy,price_business,jet_id) VALUES (?,?,?,?,?,?,?,?,?,?,?,?)"; | ||
$stmt=mysqli_prepare($dbc,$query); | ||
mysqli_stmt_bind_param($stmt,"sssssssiiiis",$flight_no,$origin,$destination,$dep_date,$arr_date,$dep_time,$arr_time,$seats_eco,$seats_bus,$price_eco,$price_bus,$jet_id); | ||
mysqli_stmt_execute($stmt); | ||
$affected_rows=mysqli_stmt_affected_rows($stmt); | ||
mysqli_stmt_close($stmt); | ||
} | ||
else | ||
{ | ||
$affected_rows=0; | ||
} | ||
mysqli_close($dbc); | ||
if($affected_rows==1) | ||
{ | ||
echo "Successfully Submitted"; | ||
header("location: add_flight_details.php?msg=success"); | ||
} | ||
else | ||
{ | ||
echo "Submit Error"; | ||
echo mysqli_error(); | ||
header("location: add_flight_details.php?msg=failed"); | ||
} | ||
} | ||
else | ||
{ | ||
echo "The following data fields were empty! <br>"; | ||
foreach($data_missing as $missing) | ||
{ | ||
echo $missing ."<br>"; | ||
} | ||
} | ||
} | ||
else | ||
{ | ||
echo "Submit request not received"; | ||
} | ||
?> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
<?php | ||
session_start(); | ||
?> | ||
<html> | ||
<head> | ||
<title> | ||
Add Aircrafts Details | ||
</title> | ||
<style> | ||
input { | ||
border: 1.5px solid #030337; | ||
border-radius: 4px; | ||
padding: 7px 30px; | ||
} | ||
input[type=submit] { | ||
background-color: #030337; | ||
color: white; | ||
border-radius: 4px; | ||
padding: 7px 45px; | ||
margin: 0px 60px | ||
} | ||
</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/shutterstock_22.jpg"/> | ||
<h1 id="title"> | ||
AADITH AIRLINES | ||
</h1> | ||
<div> | ||
<ul> | ||
<li><a href="admin_homepage.php"><i class="fa fa-home" aria-hidden="true"></i> Home</a></li> | ||
<li><a href="admin_homepage.php"><i class="fa fa-desktop" aria-hidden="true"></i> Dashboard</a></li> | ||
<li><a href="logout_handler.php"><i class="fa fa-sign-out" aria-hidden="true"></i> Logout</a></li> | ||
</ul> | ||
</div> | ||
<form action="add_jet_details_form_handler.php" method="post"> | ||
<h2>ENTER THE AIRCRAFTS DETAILS</h2> | ||
<div> | ||
<?php | ||
if(isset($_GET['msg']) && $_GET['msg']=='success') | ||
{ | ||
echo "<strong style='color: green'>The Aircraft has been successfully added.</strong> | ||
<br><br>"; | ||
} | ||
else if(isset($_GET['msg']) && $_GET['msg']=='failed') | ||
{ | ||
echo "<strong style='color:red'>*Jet ID already exists, please enter a new Jet ID.</strong> | ||
<br><br>"; | ||
} | ||
?> | ||
<table cellpadding="5"> | ||
<tr> | ||
<td class="fix_table">Enter a valid Jet ID</td> | ||
</tr> | ||
<tr> | ||
<td class="fix_table"><input type="text" name="jet_id" required></td> | ||
</tr> | ||
</table> | ||
<br> | ||
<table cellpadding="5"> | ||
<tr> | ||
<td class="fix_table">Enter the Jet Type/Model</td> | ||
</tr> | ||
<tr> | ||
<td class="fix_table"><input type="text" name="jet_type" required></td> | ||
</tr> | ||
</table> | ||
<br> | ||
<table cellpadding="5"> | ||
<tr> | ||
<td class="fix_table">Enter the total capacity of the Jet</td> | ||
</tr> | ||
<tr> | ||
<td class="fix_table"><input type="number" name="jet_capacity" required></td> | ||
</tr> | ||
</table> | ||
<br> | ||
<br> | ||
<input type="submit" value="Submit" name="Submit"> | ||
</div> | ||
</form> | ||
</body> | ||
</html> |
Oops, something went wrong.