Esempio n. 1
0
if (!$flight->autoScore) {
    $showScoreInfo = "<a href='javascript:flight_scores_info({$flightID})'><img src='" . $moduleRelPath . "/img/icon_olc_manual.gif' title='" . _Show_Optimization_details . "' border=0 align='absmiddle'>" . _Show_Optimization_details . "&nbsp;<img src='" . $moduleRelPath . "/img/icon_arrow_down.gif' title='" . _Show_Optimization_details . "' border=0 align=bottom></a> ";
} else {
    $showScoreInfo = '';
}
if ($flight->private & 0x1) {
    $legendRight .= "&nbsp;<img src='" . $moduleRelPath . "/img/icon_private.gif' align='bottom' width='13' height='13'>";
}
if ($flight->private & 0x2) {
    $legendRight .= "&nbsp;<img src='" . $moduleRelPath . "/img/icon_disabled.gif' align='bottom' width='13' height='13'>";
}
$legend = leoHtml::img("icon_cat_" . $flight->cat . ".png", 0, 0, 'absmiddle', '', 'icons1') . " " . _PILOT . ": <a href=\"javascript:pilotTip.newTip('inline', 60, 19, 'pilot_pos', 200, '" . $flight->userServerID . "_" . $flight->userID . "','" . addslashes(prepare_for_js($flight->userName)) . "' )\"  onmouseout=\"pilotTip.hide()\">" . $flight->userName . "</a>&nbsp;&nbsp; " . _DATE_SORT . ": " . formatDate($flight->DATE);
$Ltemplate->assign_vars(array('legend' => $legend, 'legendRight' => $legendRight));
if (!$flight->active && mktime() - datetime2UnixTimestamp($flight->dateAdded) > 5) {
    //  5 secs
    $flight->activateFlight();
} else {
    if (!$flight->active) {
        open_tr();
        echo "<TD align=center>" . _FLIGHT_WILL_BE_ACTIVATED_SOON . "<a href=''>" . _TRY_AGAIN . "</a></td>";
        close_tr();
        close_inner_table();
        return;
    }
}
if ($_REQUEST['updateMap']) {
    $flight->getMapFromServer();
}
// if ($_REQUEST['updateMap3d']) $flight->getMapFromServer(1);
if ($_REQUEST['updateCharts']) {
    $flight->updateCharts(1);