[FONT="Courier New"][FONT="Arial"]$OwnFleets = doquery("SELECT * FROM {{table}} WHERE `fleet_owner` = '" . $user['id'] . "';", 'fleets');
$Record = 0;
while ($FleetRow = mysql_fetch_array($OwnFleets)) {
$Record++;
$StartTime = $FleetRow['fleet_start_time'];
$StayTime = $FleetRow['fleet_end_stay'];
$EndTime = $FleetRow['fleet_end_time'];
$Label = "fs";
if ($StartTime > time()) {
$fpage[$StartTime] = BuildFleetEventTable ($FleetRow, 0, true, $Label, $Record);
}
if ($FleetRow['fleet_mission'] <> 4) {
$Label = "ft";
if ($StayTime > time()) {
$fpage[$StayTime] = BuildFleetEventTable ($FleetRow, 1, true, $Label, $Record);
}
$Label = "fe";
if ($EndTime > time()) {
$fpage[$EndTime] = BuildFleetEventTable ($FleetRow, 2, true, $Label, $Record);
}
}
}[/FONT] [/FONT]