Exemplo n.º 1
0
 $flight = new flight();
 $flight->getFlightFromDB($flightID);
 if ($CONF_use_utf) {
     $CONF_ENCODING = 'utf-8';
 } else {
     $CONF_ENCODING = $langEncodings[$currentlang];
 }
 // google map cached
 $mapUrl = $flight->createStaticMap(0);
 header('Content-type: application/text; charset="' . $CONF_ENCODING . '"', true);
 //  echo "<pre class='short_info'>";
 echo "<table class='short_info' cellpadding='0' cellspacing='0' width='100%'>";
 echo "<tr><td valign='top'><img src='{$mapUrl}' width='250'></td><td valign='top'>";
 echo "<table class='short_info' cellpadding='0' cellspacing='0' width='100%'>";
 echo "<TR><TD width=150>" . _DATE_SORT . "</td><td>" . formatDate($flight->DATE) . "<td></tr>\n";
 $gliderBrandImg = brands::getBrandText($flight->gliderBrandID, $flight->glider, $flight->cat);
 echo "<TR><TD>" . _GLIDER . "</td><td>" . leoHtml::img("icon_cat_" . $flight->cat . ".png", 0, 0, 'absmiddle', '', 'icons1', '', 0) . " " . $gliderBrandImg . "<td></tr>\n";
 $flightHours = $flight->DURATION / 3600;
 if ($flightHours) {
     $openDistanceSpeed = formatSpeed($flight->LINEAR_DISTANCE / ($flightHours * 1000));
     $maxDistanceSpeed = formatSpeed($flight->MAX_LINEAR_DISTANCE / ($flightHours * 1000));
     $olcDistanceSpeed = formatSpeed($flight->FLIGHT_KM / ($flightHours * 1000));
 } else {
     $openDistanceSpeed = 0;
     $maxDistanceSpeed = 0;
     $olcDistanceSpeed = 0;
 }
 if ($scoringServerActive) {
     $olcScoreType = $flight->BEST_FLIGHT_TYPE;
     if ($olcScoreType == "FREE_FLIGHT") {
         $olcScoreTypeImg = "icon_turnpoints.gif";