示例#1
0
    <th>Flights</th>
    <th>Segs</th>
    <th colspan="2">Hours</th>
    <th>Flights</th>
    <th>Segs</th>
    <th colspan="2">Hours</th>
   </tr>
<?php 
$class = '';
foreach (pax_search("") as $alias) {
    if ($class != "odd") {
        $class = "odd";
    } else {
        $class = "even";
    }
    $status = pax_status($alias, $rvar_pilot, "");
    $line = pax_detail($alias, $rvar_pilot, "");
    $year = pax_detail($alias, $rvar_pilot, "date >= '{$thisyear}-01-01' and date <= '{$thisyear}-12-31'");
    $detaillink = "detail_pax.php?alias={$alias}&pilot={$rvar_pilot}";
    $features = "&nbsp;";
    if ($line['image_url']) {
        $features = "<img src=\"images/image.gif\" height=\"15\" width=\"64\"/>";
    }
    $name = $alias;
    if ($line['fullname']) {
        $name = $line['fullname'] . " (" . $alias . ")";
    }
    if (strpos($line['detail'], "\n")) {
        $line['detail'] = substr($line['detail'], 0, strpos($line['detail'], "\n"));
    }
    if (strlen($line['detail']) > 60) {
示例#2
0
  <tr>
   <td><?php 
print $line['alias'];
?>
</td>
   <td><?php 
print $line['fullname'];
?>
</td>
   <td><?php 
print $line['last_flight'];
?>
</td>
   <td><?php 
print pax_status($alias, $rvar_pilot);
?>
</td>
  </tr>
  <tr>
   <td colspan="4" align="center">
    <table class="embedded">
     <tr>
      <th>Year</th>
      <th>Flights</th>
      <th>Segments</th>
      <th>Landings</th>
      <th colspan="2">Hours</th>
      <th>&nbsp;</th>
     </tr>
  <?php