<th rowspan="2">Flights</th> <th rowspan="2" colspan="2">Flight Time</th> <th colspan="2" rowspan="2" width="100%">Comments</th> </tr> <tr> <th>CX</th> <th>HP</th> <th>TW</th> </tr> <?php $class = ''; for ($i = 0; $i < count($aircraftlist); $i++) { $line = aircraft_detail($aircraftlist[$i], $rvar_pilot); if ($class != "odd") { $class = "odd"; } else { $class = "even"; } $detaillink = "detail_aircraft.php?ident=" . $line['ident'] . "&pilot=" . $rvar_pilot; $features = " "; if (isset($line['image_url'])) { if ($line['image_url']) { $features = "<img src=\"images/image.gif\" height=\"15\" width=\"64\"/>"; } } if (strpos($line['detail'], "\n")) { $line['detail'] = substr($line['detail'], 0, strpos($line['detail'], "\n")); }
} else { if ($rvar_id == 0) { if (!isset($rvar_pilot)) { $error_title = "No pilot specified"; $error_text = "You must specify a pilot in order to add a new airplane entry."; } $title = "airplane: Add"; $ident = $rvar_ident; } else { $key = aircraft_key($rvar_id); if (isset($key['pilot_id'])) { $rvar_pilot = $key['pilot_id']; $ident = $key['ident']; } } $line = aircraft_detail($ident, $rvar_pilot); } if (!is_mine()) { $error_title = "Up To No Good"; $error_text = "I can't edit an entry if you don't own it!"; unset($rvar_aircraft_class); } if (isset($rvar_aircraft_class)) { # I see data, we need to insert/update as required. $rvar_aircraft_class = (int) $rvar_aircraft_class; if (!isset($rvar_complex)) { $rvar_complex = 'false'; } else { $rvar_complex = 'true'; } if (!isset($rvar_high_perf)) {