my code stock.com

carlosuc99

Source code aircraft_list.php
by carlosuc99

Snippet options

Download: Download snippet as source-code-aircraft_listphp.txt.
Copy snippet: For this you need a free my code stock.com account.
Embed code : You will find the embed code for this snippet at the end of the page, if you want to embed it into a website or a blog!

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Aircrafts</title>
	<link rel="stylesheet" type="text/css" href="./css/style.css">

	<link rel="stylesheet" href="./css/flick/jquery.ui.all.css">
	<script src="./jquery.js"></script>
	<script src="./ui/jquery.ui.core.js"></script>
	<script src="./ui/jquery.ui.widget.js"></script>
	<script src="./ui/jquery.ui.button.js"></script>
	<script src="./ui/jquery.ui.core.js"></script>
	<script src="./ui/jquery.ui.widget.js"></script>
	<script src="./ui/jquery.ui.mouse.js"></script>
	<script src="./ui/jquery.ui.button.js"></script>
	<script src="./ui/jquery.ui.draggable.js"></script>
	<script src="./ui/jquery.ui.position.js"></script>
	<script src="./ui/jquery.ui.resizable.js"></script>
	<script src="./ui/jquery.ui.dialog.js"></script>
	<script src="./ui/jquery.ui.effect.js"></script>
	



<script>
    $(function() {
        $( ".editaircraftdialog" ).dialog({
            autoOpen: false,
            width: 425
        });
 
        $( ".editaircraft" ).click(function() {
            $( ".editaircraftdialog" ).dialog( "open" );
            return false;
        });
    }); 
</script>

<br />
<b>Notice</b>:  Undefined index: id in <b>C:\xampp\htdocs\airvirtus\albrep\aircrafts_list.php</b> on line <b>43</b><br />
<table border='0' cellspacing='0'><tr><th class=tabletitles>ICAO</th><th class=tabletitles>Name</th><th class=tabletitles>Weight Empty</th><th class=tabletitles>Weight Full</th><th class=tabletitles>Cargo Full</th><th class=tabletitles>Range</th><th class=tabletitles>Price</th><th class=tabletitles>First Class Seats</th><th class=tabletitles>Business Class Seats</th><th class=tabletitles>Economy Class Seats</th><th class=tabletitles>Edit</th></tr><br />
<b>Notice</b>:  Undefined variable: i in <b>C:\xampp\htdocs\airvirtus\albrep\aircrafts_list.php</b> on line <b>77</b><br />

	<tr bgcolor='#FFFFFF' onmouseover="this.style.background='#ABFB04';" onmouseout="this.style.background='#FFFFFF';">
	<td class=tablelist>B737</td><td class=tablelist>B737-800</td><td class=tablelist>32767</td><td class=tablelist>32767</td><td class=tablelist>32767</td><td class=tablelist>4564</td><td class=tablelist>82000000</td><td class=tablelist>2</td><td class=tablelist>10</td><td class=tablelist>125</td><td class=tablelist><img class='editaircraft' src='./images/info.png'></td></tr>
<div class="editaircraftdialog" title="Edit Aircraft">
	<script>
	$(function() {
		$("#insertaircraft")
			.button()
			.click(function(event) {
		});
	});
</script>

<form action="new_aircraft_process.php" method="post" enctype="application/x-www-form-urlencoded">
    <table>

    <tr><td class="forms">ICAO:</td><td><input maxlength="4" type="text" name="icao" size="30"/></td></tr>

    <tr><td class="forms">Name:</td><td><input type="text" name="name" size="30"/></td></tr>

    <tr><td class="forms">Weight Empty:</td><td><input type="text" name="weightempty" size="30"/></td></tr>

    <tr><td class="forms">Weight Full:</td><td><input type="text" name="weightfull" size="30"/></td></tr>

    <tr><td class="forms">Cargo Full:</td><td><input type="text" name="cargofull" size="30"/></td></tr>

    <tr><td class="forms">Cruise Speed:</td><td><input type="text" name="cruisespeed" size="30"/></td></tr>

    <tr><td class="forms">Range:</td><td><input type="text" name="range" size="30"/></td></tr>

    <tr><td class="forms">Price:</td><td><input type="text" name="price" size="30"/></td></tr>

    <tr><td class="forms">Number Classes:</td><td><select name="numberclasses" id="numberclasses">
        <option value="0">Select Number of Classes</option>
        <option value="1">One Classes (Economy)</option><option value="2">Two Classes (Business & Economy)</option><option value="3">Three Classes (First, Business & Economy)</option>    </select></td></tr>



    <tr><td class="forms">First Class Seats:</td><td><input disabled="disabled" type="text" id="firstclassseats" name="firstclassseats" size="30"/></td></tr>

    <tr><td class="forms">Business Class Seats:</td><td><input disabled="disabled" type="text" id="businessclassseats" name="businessclassseats" size="30"/></td></tr>

    <tr><td class="forms">Economy Class Seats:</td><td><input disabled="disabled" type="text" id="economyclassseats" name="economyclassseats" size="30"/></td></tr>

<script type="text/javascript">

$("#numberclasses").change(function() {
value = $(this).val();

str = parseInt(value);

switch(str)
  {
    case 0:
    $(document).ready(function() {
        $("#firstclassseats").attr("disabled","disabled");
        $("#businessclassseats").attr("disabled","disabled");
        $("#economyclassseats").attr("disabled","disabled");
});
    break;

    case 1:
    $(document).ready(function() {
        $("#economyclassseats").removeAttr('disabled');
        $("#firstclassseats").attr("disabled","disabled");
        $("#businessclassseats").attr("disabled","disabled");
});
    break;

     case 2:
    $(document).ready(function() {
        $("#businessclassseats").removeAttr('disabled');
        $("#economyclassseats").removeAttr('disabled');
        $("#firstclassseats").attr("disabled","disabled");
});
    break;

    case 3:
    $(document).ready(function() {
        $("#firstclassseats").removeAttr('disabled');
        $("#businessclassseats").removeAttr('disabled');
        $("#economyclassseats").removeAttr('disabled');
});
    break;

  }
});

</script>

    <tr><td></td><td><input id="insertaircraft" type="submit" value="Insert Aircraft"/></td></tr>
    </table>
</form> 
</div>


	<tr bgcolor='#CCCCCC' onmouseover="this.style.background='#ABFB04';" onmouseout="this.style.background='#CCCCCC';">
	<td class=tablelist>B767</td><td class=tablelist>B767-200ER</td><td class=tablelist>32767</td><td class=tablelist>32767</td><td class=tablelist>32767</td><td class=tablelist>4564</td><td class=tablelist>122000000</td><td class=tablelist>2</td><td class=tablelist>10</td><td class=tablelist>125</td><td class=tablelist><img class='editaircraft' src='./images/info.png'></td></tr>
<div class="editaircraftdialog" title="Edit Aircraft">
	<script>
	$(function() {
		$("#insertaircraft")
			.button()
			.click(function(event) {
		});
	});
</script>

<form action="new_aircraft_process.php" method="post" enctype="application/x-www-form-urlencoded">
    <table>

    <tr><td class="forms">ICAO:</td><td><input maxlength="4" type="text" name="icao" size="30"/></td></tr>

    <tr><td class="forms">Name:</td><td><input type="text" name="name" size="30"/></td></tr>

    <tr><td class="forms">Weight Empty:</td><td><input type="text" name="weightempty" size="30"/></td></tr>

    <tr><td class="forms">Weight Full:</td><td><input type="text" name="weightfull" size="30"/></td></tr>

    <tr><td class="forms">Cargo Full:</td><td><input type="text" name="cargofull" size="30"/></td></tr>

    <tr><td class="forms">Cruise Speed:</td><td><input type="text" name="cruisespeed" size="30"/></td></tr>

    <tr><td class="forms">Range:</td><td><input type="text" name="range" size="30"/></td></tr>

    <tr><td class="forms">Price:</td><td><input type="text" name="price" size="30"/></td></tr>

    <tr><td class="forms">Number Classes:</td><td><select name="numberclasses" id="numberclasses">
        <option value="0">Select Number of Classes</option>
        <option value="1">One Classes (Economy)</option><option value="2">Two Classes (Business & Economy)</option><option value="3">Three Classes (First, Business & Economy)</option>    </select></td></tr>



    <tr><td class="forms">First Class Seats:</td><td><input disabled="disabled" type="text" id="firstclassseats" name="firstclassseats" size="30"/></td></tr>

    <tr><td class="forms">Business Class Seats:</td><td><input disabled="disabled" type="text" id="businessclassseats" name="businessclassseats" size="30"/></td></tr>

    <tr><td class="forms">Economy Class Seats:</td><td><input disabled="disabled" type="text" id="economyclassseats" name="economyclassseats" size="30"/></td></tr>

<script type="text/javascript">

$("#numberclasses").change(function() {
value = $(this).val();

str = parseInt(value);

switch(str)
  {
    case 0:
    $(document).ready(function() {
        $("#firstclassseats").attr("disabled","disabled");
        $("#businessclassseats").attr("disabled","disabled");
        $("#economyclassseats").attr("disabled","disabled");
});
    break;

    case 1:
    $(document).ready(function() {
        $("#economyclassseats").removeAttr('disabled');
        $("#firstclassseats").attr("disabled","disabled");
        $("#businessclassseats").attr("disabled","disabled");
});
    break;

     case 2:
    $(document).ready(function() {
        $("#businessclassseats").removeAttr('disabled');
        $("#economyclassseats").removeAttr('disabled');
        $("#firstclassseats").attr("disabled","disabled");
});
    break;

    case 3:
    $(document).ready(function() {
        $("#firstclassseats").removeAttr('disabled');
        $("#businessclassseats").removeAttr('disabled');
        $("#economyclassseats").removeAttr('disabled');
});
    break;

  }
});

</script>

    <tr><td></td><td><input id="insertaircraft" type="submit" value="Insert Aircraft"/></td></tr>
    </table>
</form> 
</div>


	<tr bgcolor='#FFFFFF' onmouseover="this.style.background='#ABFB04';" onmouseout="this.style.background='#FFFFFF';">
	<td class=tablelist>fgf</td><td class=tablelist>a320</td><td class=tablelist>12</td><td class=tablelist>12</td><td class=tablelist>12</td><td class=tablelist>21</td><td class=tablelist>12</td><td class=tablelist>32</td><td class=tablelist>10</td><td class=tablelist>150</td><td class=tablelist><img class='editaircraft' src='./images/info.png'></td></tr>
<div class="editaircraftdialog" title="Edit Aircraft">
	<script>
	$(function() {
		$("#insertaircraft")
			.button()
			.click(function(event) {
		});
	});
</script>

<form action="new_aircraft_process.php" method="post" enctype="application/x-www-form-urlencoded">
    <table>

    <tr><td class="forms">ICAO:</td><td><input maxlength="4" type="text" name="icao" size="30"/></td></tr>

    <tr><td class="forms">Name:</td><td><input type="text" name="name" size="30"/></td></tr>

    <tr><td class="forms">Weight Empty:</td><td><input type="text" name="weightempty" size="30"/></td></tr>

    <tr><td class="forms">Weight Full:</td><td><input type="text" name="weightfull" size="30"/></td></tr>

    <tr><td class="forms">Cargo Full:</td><td><input type="text" name="cargofull" size="30"/></td></tr>

    <tr><td class="forms">Cruise Speed:</td><td><input type="text" name="cruisespeed" size="30"/></td></tr>

    <tr><td class="forms">Range:</td><td><input type="text" name="range" size="30"/></td></tr>

    <tr><td class="forms">Price:</td><td><input type="text" name="price" size="30"/></td></tr>

    <tr><td class="forms">Number Classes:</td><td><select name="numberclasses" id="numberclasses">
        <option value="0">Select Number of Classes</option>
        <option value="1">One Classes (Economy)</option><option value="2">Two Classes (Business & Economy)</option><option value="3">Three Classes (First, Business & Economy)</option>    </select></td></tr>



    <tr><td class="forms">First Class Seats:</td><td><input disabled="disabled" type="text" id="firstclassseats" name="firstclassseats" size="30"/></td></tr>

    <tr><td class="forms">Business Class Seats:</td><td><input disabled="disabled" type="text" id="businessclassseats" name="businessclassseats" size="30"/></td></tr>

    <tr><td class="forms">Economy Class Seats:</td><td><input disabled="disabled" type="text" id="economyclassseats" name="economyclassseats" size="30"/></td></tr>

<script type="text/javascript">

$("#numberclasses").change(function() {
value = $(this).val();

str = parseInt(value);

switch(str)
  {
    case 0:
    $(document).ready(function() {
        $("#firstclassseats").attr("disabled","disabled");
        $("#businessclassseats").attr("disabled","disabled");
        $("#economyclassseats").attr("disabled","disabled");
});
    break;

    case 1:
    $(document).ready(function() {
        $("#economyclassseats").removeAttr('disabled');
        $("#firstclassseats").attr("disabled","disabled");
        $("#businessclassseats").attr("disabled","disabled");
});
    break;

     case 2:
    $(document).ready(function() {
        $("#businessclassseats").removeAttr('disabled');
        $("#economyclassseats").removeAttr('disabled');
        $("#firstclassseats").attr("disabled","disabled");
});
    break;

    case 3:
    $(document).ready(function() {
        $("#firstclassseats").removeAttr('disabled');
        $("#businessclassseats").removeAttr('disabled');
        $("#economyclassseats").removeAttr('disabled');
});
    break;

  }
});

</script>

    <tr><td></td><td><input id="insertaircraft" type="submit" value="Insert Aircraft"/></td></tr>
    </table>
</form> 
</div>

</table>



</head>
<body>
	
</body>
</html>

Create a free my code stock.com account now.

my code stok.com is a free service, which allows you to save and manage code snippes of any kind and programming language. We provide many advantages for your daily work with code-snippets, also for your teamwork. Give it a try!

Find out more and register now

You can customize the height of iFrame-Codes as needed! You can find more infos in our API Reference for iframe Embeds.