Skip to content

Commit

Permalink
put sone style one the account page. Warninggit add .! You cannot vie…
Browse files Browse the repository at this point in the history
…w this page if you are not logged in. So, plsease go ahead and create and account. You will find the option at the top of the home page
  • Loading branch information
sturosier committed Oct 29, 2012
1 parent 6d845e3 commit 2d366d4
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 13 deletions.
22 changes: 12 additions & 10 deletions GatorAirlines2/site/MyAccount.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,16 @@
session_start();

}
$ticket_id=0;
$result=null;
$reservations=0;
$ticket_id=0; //ticket number for a reservation.
$result=null; //to hold the query set.
$reservations=null; //to hold the number of reservations (integer) for a particular customer.

include("classes/users.class.php");

$users = new users();
$results= $users->get_reservation($_SESSION['cid']);
if($results!=false)

if($results!=false)
{
$reservations = $results;
}
Expand All @@ -24,7 +26,7 @@
{
$ticket_id = $_GET['id'];
$users->delete_tickets($ticket_id); //this function remove reserv. from tickets table.
header("Location:myaccount.php"); // reload the page.

}


Expand Down Expand Up @@ -80,9 +82,9 @@
echo " <table width=77% border=1 cellpadding=5>
<tr>
<td><strong>Destination</strong></td>
<td><strong>Ticket</strong></td>
<td><strong>Flight</strong></td>
<td><strong>Seat</strong></td>
<td><strong>Ticket#</strong></td>
<td><strong>Flight#</strong></td>
<td><strong>Seat#</strong></td>
<td><strong>Price</strong></td>
<td><strong>Action</strong></td>
</tr>";
Expand All @@ -94,8 +96,8 @@
<td>$result[ticket_id]</td>
<td>$result[flight_id]</td>
<td>$result[seat_id]</td>
<td>$result[price]</td>";
echo "<td><a href='delete.php?id=" . $result['ticket_id'] . "'>Delete</a></td>";
<td>$$result[price]</td>";
echo "<td><a href='delete.php?id=" . $result['ticket_id'] . "'><button class=button1 onclick='return doConfirmDelete(this.id);'>Delete</button></a></td>";
echo "
</tr>";
}
Expand Down
7 changes: 4 additions & 3 deletions GatorAirlines2/site/home.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
<body id="page1">
<div class="main">
<!--header -->
<?phpinclude('section/header2.php')?>
<?include('section/header2.php')?>
<!-- / header -->
<!--content -->
<section id="content">
Expand Down Expand Up @@ -107,7 +107,7 @@
foreach($airports as $airport){
if($airport['airport_id'] <= 50) {
?>
<option value=<?php= $airport['iata']?>><?php=$airport['name']?> - <?php=$airport['city']?>, <?php=$airport['state']?></option>
<option value=<?= $airport['iata']?>><?=$airport['name']?> - <?=$airport['city']?>, <?=$airport['state']?></option>
<?php
}
}
Expand All @@ -121,7 +121,8 @@
foreach($airports as $airport){
if($airport['airport_id'] <= 50) {
?>
<option value=<?php= $airport['iata']?>><?php=$airport['name']?> - <?php=$airport['city']?>, <?php=$airport['state']?></option>

<option value=<?= $airport['iata']?>><?=$airport['name']?> - <?=$airport['city']?>, <?=$airport['state']?></option>
<?php
}
}
Expand Down
8 changes: 8 additions & 0 deletions type.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?
$val = null;

echo count($val);



?>

0 comments on commit 2d366d4

Please sign in to comment.