Ejemplo n.º 1
0
<?php

include "include/init.inc";
pilot_id_redirect($rvar_pilot);
$rvar_pilot = pilot_lookup($rvar_pilot);
if (!isset($rvar_limit)) {
    $rvar_limit = 16;
}
$whereclause = "pilot_id = {$rvar_pilot}";
$entries = logbook_entries($whereclause);
$pilot_name = pilot_name($rvar_pilot);
$headers = apache_request_headers();
$host = $headers['Host'];
header("Content-type: text/xml");
print "<?xml version=\"1.0\"?>\n";
?>
<rss version="2.0">
    <channel>
        <title><?php 
echo $pilot_name;
?>
's logbook</title>
        <link><?php 
echo "http://{$host}{$GLOBALS['baseurl']}/display_logbook.php?pilot={$pilot_name}";
?>
</link>
        <description>Logbook for <?php 
echo $pilot_name;
?>
</description>
<?php 
Ejemplo n.º 2
0
  <tr class="<?php 
    print $class;
    ?>
" onMouseOver=this.style.backgroundColor="#ffffff"
                                     onMouseOut=this.style.backgroundColor=""
                                     onclick="window.location.href='<?php 
    print $detaillink;
    ?>
'" >
   <td class="integer"><?php 
    echo $flightnum;
    ?>
</td>
   <?php 
    if (!isset($rvar_pilot)) {
        print "<td>" . pilot_name($line['pilot_id']) . "</th>";
    }
    ?>
   <td nowrap="nowrap"><?php 
    echo $line['date'];
    ?>
</td>
   <td><?php 
    echo $line['ident'];
    ?>
</td>
 
   <?php 
    if ($launch) {
        if ($line['launch_type'] == 'A') {
            echo '<td align="center">&#x2022;</td>';