コード例 #1
0
 for ($n = 0; $n < $SQL_Num; $n++) {
     echo '<TR>';
     $gala = mysql_result($SQL_Result, $n, 'rg');
     $planet = mysql_result($SQL_Result, $n, 'rp');
     echo '<TD><P CLASS="hell"><font size=1>' . $gala . ':' . $planet . ' ';
     echo gnuser($gala, $planet) . '</font></TD>';
     $scanzeit = mysql_result($SQL_Result, $n, 'zeit');
     if (substr($scanzeit, 6, 2) == date('d')) {
         $farbe = $htmlstyle['hell'];
     } else {
         $farbe = $htmlstyle['hell_rot'];
     }
     echo '	<TD BGCOLOR=#' . $farbe . '><font size=1>' . $scanzeit . '</font></TD>';
     //scans&txtScanGalaxie=5&txtScanPlanet=7
     $stypes = GetScans2($SQL_DBConn, mysql_result($SQL_Result, $n, 'rg'), mysql_result($SQL_Result, $n, 'rp'));
     $output = OnMouseFlotte($gala, $planet, $Benutzer['punkte'], "");
     echo "<TD onmouseover=\"return overlib('" . $output . "');\"\n             onmouseout=\"return nd();\">";
     echo '<P CLASS="hell">';
     echo '<A HREF="./main.php?modul=showgalascans&displaytype=0&xgala=' . $gala . '&xplanet=' . $planet . '">';
     echo '<font size=2>' . $stypes . '</font></A></p></TD>';
     // Sektor gescannt
     // Genauigkeit
     $gen = mysql_result($SQL_Result, $n, 'gen');
     if ($gen == 100 or $gen == 99) {
         $farbe = $htmlstyle['hell'];
     }
     if ($gen < 99) {
         $farbe = $htmlstyle['hell_rot'];
     }
     echo '	<TD BGCOLOR=#' . $farbe . '><font size=1>' . $gen . '%</font></TD>';
     $stk = mysql_result($SQL_Result, $n, 'pts');
コード例 #2
0
ファイル: functions.php プロジェクト: albertlast/ticenter_tic
function Get_FlottenNr($id, $help, $flnr)
{
    global $SQL_DBConn;
    $SQL = 'SELECT * FROM `gn4accounts` WHERE id ="' . $id . '";';
    $SQL_Result = tic_mysql_query($SQL) or die(tic_mysql_error(__FILE__, __LINE__));
    $SQL_Num = mysql_num_rows($SQL_Result);
    if ($SQL_Num == 0) {
        return '???';
    } else {
        $v_gala = mysql_result($SQL_Result, 0, 'galaxie');
        $v_plan = mysql_result($SQL_Result, 0, 'planet');
        $output = OnMouseFlotte($v_gala, $v_plan, $flnr * -1, "");
        $refa = '<a href="./main.php?modul=showgalascans&xgala=' . $v_gala . '&xplanet=' . $v_plan . '" ';
        $output = $refa . InfoText($output) . ">FL#" . $flnr . "</a>";
        return $output;
    }
}
コード例 #3
0
     $d = "???";
     $a = "???";
     $maxpts = 0;
 }
 $AttStatus = mysql_result($SQL_Result, $i, "attstatus");
 $freigabe = mysql_result($SQL_Result, $i, "freigabe");
 if ($freigabe == 0) {
     $attcolor = "DDDDDD";
 } else {
     if ($testdate >= $attdate2 or $AttStatus != 0) {
         $attcolor = $ATTSTATUSHTML[$AttStatus];
     } else {
         $attcolor = "DDDDDD";
     }
 }
 $output = OnMouseFlotte($rg, $rp, $Benutzer['punkte'], "");
 echo '<TR>';
 echo '<TD bgcolor="#' . $attcolor . '"><b>';
 $output2 = InfoText("Ziel wurde erfasst durch Spieler:<br><b>" . GetUserInfos(mysql_result($SQL_Result, $i, "id")) . " von " . GetAllianzName(mysql_result($SQL_Result, $i, "id")));
 echo '<a href="./main.php?modul=showgalascans&xgala=' . $rg . '&xplanet=' . $rp . '" ' . $output2 . '>';
 echo $rg . ":" . $rp . " " . gnuser($rg, $rp);
 echo '</a>';
 echo " <font color=#0000FF>";
 echo "<a href=\"./main.php?modul=showgalascans&xgala=" . $rg . "&xplanet=" . $rp . "\"" . ($Benutzer['help'] ? " onmouseover=\"return overlib('" . $output . "');\" onmouseout=\"return nd();\"" : "") . ">";
 echo GetScans2($SQL_DBConn, $rg, $rp) . "</a></B></font><br>";
 echo 'Exxen M: ' . $me . "<br>Exxen K: " . $ke . "<br>";
 echo 'Pkt: ' . ZahlZuText(intval($pts / 1000)) . "K<br>";
 echo 'Def: ' . $d . '<br>Ships: ' . $s . "<br>";
 echo '</TD>';
 // Planung
 echo '<TD bgcolor="#' . $attcolor . '">';