├── DBMS PROJECT SQL.docx
├── HTML, PHP Files
├── plane.jpg
├── dbconnection.php
├── style.css
├── homepagestyle.css
├── postflightcodestudents.php
├── postflightcodebusiness.php
├── postflightcodeeconomy.php
├── postflightcodediff.php
├── deleteadmindetails.php
├── deletepassengerdetails.php
├── homepage.html
├── airlinescode.php
├── passengerchoice.html
├── deletedetails.html
├── modifyadmindetails.html
├── modifypassengerdetails.php
├── postadmindetails.php
├── deletepassengerdetails.html
├── modifypassengerdetails.html
├── adminchoice.html
├── searchflight.html
├── adminlogin.php
├── viewflights.php
├── modifyflightdetails.php
├── postpassengerdetails.php
├── Passenger_Details.html
├── reviewticket.php
├── admin_form.html
├── modifyadmindetailsview.php
├── modifypassengerdetailsview.php
└── searchflight.php
├── README.md
└── dbms.sql
/DBMS PROJECT SQL.docx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashishpoudel995/Airlines-Management-System/HEAD/DBMS PROJECT SQL.docx
--------------------------------------------------------------------------------
/HTML, PHP Files/plane.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashishpoudel995/Airlines-Management-System/HEAD/HTML, PHP Files/plane.jpg
--------------------------------------------------------------------------------
/HTML, PHP Files/dbconnection.php:
--------------------------------------------------------------------------------
1 |
8 |
--------------------------------------------------------------------------------
/HTML, PHP Files/style.css:
--------------------------------------------------------------------------------
1 | *{
2 | margin: 0;
3 | padding: 0;
4 | font-family: Century Gothic;
5 | }
6 | .title{
7 | position: absolute;
8 | top: 50%;
9 | left: 50%;
10 | transform: translate(-50%,-50%);
11 | }
12 | .title h1{
13 | color: #fff;
14 | font-size: 70px;
15 | }
16 |
--------------------------------------------------------------------------------
/HTML, PHP Files/homepagestyle.css:
--------------------------------------------------------------------------------
1 | *{
2 | margin: 0;
3 | padding: 0;
4 | font-family: Century Gothic;
5 | }
6 |
7 | body{
8 | background-image: url(plane.jpg);
9 | height: 100vh;
10 | background-size: cover;
11 | background-position: center;
12 | }
13 |
14 | .title{
15 | position: absolute;
16 | top: 50%;
17 | left: 50%;
18 | transform: translate(-50%,-50%);
19 | }
20 | .title h1{
21 | color: #fff;
22 | font-size: 70px;
23 | }
24 |
--------------------------------------------------------------------------------
/HTML, PHP Files/postflightcodestudents.php:
--------------------------------------------------------------------------------
1 | window.location='Passenger_Details.html'";
18 | }
19 | else{
20 | echo "";
30 | echo"";
31 | }
32 | }
33 | else{
34 |
35 | echo "";
36 | echo "";
37 | }
38 |
39 | ?>
--------------------------------------------------------------------------------
/HTML, PHP Files/postflightcodebusiness.php:
--------------------------------------------------------------------------------
1 | window.location='Passenger_Details.html'";
18 | }
19 | else{
20 | echo "";
30 | echo"";
31 | }
32 | }
33 | else{
34 |
35 | echo "";
36 | echo "";
37 | }
38 |
39 | ?>
--------------------------------------------------------------------------------
/HTML, PHP Files/postflightcodeeconomy.php:
--------------------------------------------------------------------------------
1 | window.location='Passenger_Details.html'";
18 | }
19 | else{
20 | echo "";
30 | echo"";
31 | }
32 | }
33 | else{
34 |
35 | echo "";
36 | echo "";
37 | }
38 |
39 | ?>
--------------------------------------------------------------------------------
/HTML, PHP Files/postflightcodediff.php:
--------------------------------------------------------------------------------
1 | window.location='Passenger_Details.html'";
18 | }
19 | else{
20 | echo "";
30 | echo"";
31 | }
32 | }
33 | else{
34 |
35 | echo "";
36 | echo "";
37 | }
38 |
39 | ?>
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Airlines-Management-System---DBMS-Project
2 |
3 |
4 |
Built Using:
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 | ### How to use the project?
15 | 1) Install XAMPP.
16 | 2) Create one sub folder in htdocs folder.
17 | 2) Copy all the files of "HTML, PHP Files" Folder to the newly created sub folder.
18 | 3) Start XAMPP (Apache, MySQL) and Open phpMyAdmin.
19 | 4) Create new database named "dbms" and import the sql file provided.
20 | 5) Access homepage.html by localhost/Your created folder/homepage.html
21 | 6) For Admin Login, Default username= "admin" & Default Password = "admin".
22 | 7) Initialize Airlines Id and Airlines name by directly inserting into airline table of database.
23 |
--------------------------------------------------------------------------------
/HTML, PHP Files/deleteadmindetails.php:
--------------------------------------------------------------------------------
1 | 0)
15 | {
16 | while($row=mysqli_fetch_assoc($res))
17 | {
18 | if($catch==$row['FLIGHT_CODE'])
19 | {
20 | $count+=1;
21 | }
22 | else
23 | {
24 | $count=0;
25 | }
26 | }
27 | }
28 | if($count==0)
29 | {
30 | echo "";
31 | echo "";
32 | }
33 | else
34 | {
35 | if(mysqli_query($con,$sql))
36 | {
37 | $num+=1;
38 | }
39 | else
40 | {
41 | $flag+=1;
42 | }
43 | if(mysqli_query($con,$sql1))
44 | {
45 | $num+=1;
46 | }
47 | else
48 | {
49 | $flag+=1;
50 | }
51 | if(mysqli_query($con,$sql2))
52 | {
53 | $num+=1;
54 | }
55 | else
56 | {
57 | $flag+=1;
58 | }
59 | if($num!=0)
60 | {
61 | echo "";
62 | echo "";
63 | }
64 | else if($flag!=0)
65 | {
66 | echo "";
67 | echo "";
68 | }
69 | }
70 | }
71 |
72 | ?>
--------------------------------------------------------------------------------
/HTML, PHP Files/deletepassengerdetails.php:
--------------------------------------------------------------------------------
1 | 0)
14 | {
15 | while($row=mysqli_fetch_assoc($res))
16 | {
17 | if($passportno==$row['PASSPORT_NO'])
18 | {
19 | $count+=1;
20 | }
21 | else
22 | {
23 | $count=0;
24 | }
25 | }
26 | }
27 | $sql="select * from ticket where TICKET_NO='$ticketno'";
28 | $res=mysqli_query($con,$sql);
29 | if(mysqli_num_rows($res)>0)
30 | {
31 | while($row=mysqli_fetch_assoc($res))
32 | {
33 | if($ticketno==$row['TICKET_NO'])
34 | {
35 | if($passportno=$row['PASSPORT_NO']){
36 | $flag1+=1;
37 | }
38 | }
39 | else
40 | {
41 | $flag1=0;
42 | }
43 | }
44 | }
45 | if($count==0)
46 | {
47 | echo "";
48 | echo "";
49 | }
50 | if($flag1==0)
51 | {
52 | echo "";
53 | echo "";
54 | }
55 | if(($count!=0)&&($flag1!=0))
56 | {
57 | $sql="delete from ticket where TICKET_NO='$ticketno' && PASSPORT_NO='$passportno'";
58 | $sql1="delete from passenger where PASSPORT_NO='$passportno'";
59 | if(mysqli_query($con,$sql))
60 | {
61 | $num+=1;
62 | }
63 | else
64 | {
65 | $flag+=1;
66 | }
67 | if(mysqli_query($con,$sql1))
68 | {
69 | $num+=1;
70 | }
71 | else
72 | {
73 | $flag+=1;
74 | }
75 | if($num==2)
76 | {
77 | echo "";
78 | echo "";
79 | }
80 | else if($flag!=0)
81 | {
82 | echo "";
83 | echo "";
84 | }
85 | }
86 | }
87 |
88 | ?>
--------------------------------------------------------------------------------
/HTML, PHP Files/homepage.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | LOGIN OPTIONS
5 |
79 |
80 |
81 |
82 |
88 |
89 |
LOGIN OPTIONS
90 |
91 |
95 |
96 |
97 |
--------------------------------------------------------------------------------
/HTML, PHP Files/airlinescode.php:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
7 |
8 |
66 |
67 |
68 |
75 |
76 |
Airlines ID
77 |
78 |
79 |
80 | | Airlines ID |
81 | Airlines Name |
82 |
83 |
84 |
100 |
101 |
102 |
--------------------------------------------------------------------------------
/HTML, PHP Files/passengerchoice.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | CUSTOMER OPTIONS
5 |
90 |
91 |
92 |
108 |
109 |
--------------------------------------------------------------------------------
/HTML, PHP Files/deletedetails.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
83 |
84 |
85 |
91 |
92 |
Delete Flights
93 |
94 |