Example #1
0
function ShowGalaxyFooter($Galaxy, $System, $CurrentMIP, $CurrentRC, $CurrentSP)
{
    global $lang, $maxfleet_count, $fleetmax, $planetcount;
    $Result = "";
    if ($planetcount == 1) {
        $PlanetCountMessage = $planetcount . " " . $lang['gf_cntmone'];
    } elseif ($planetcount == 0) {
        $PlanetCountMessage = $lang['gf_cntmnone'];
    } else {
        $PlanetCountMessage = $planetcount . " " . $lang['gf_cntmsome'];
    }
    $LegendPopup = GalaxyLegendPopup();
    $Recyclers = pretty_number($CurrentRC);
    $SpyProbes = pretty_number($CurrentSP);
    $outerspace = MAX_PLANET_IN_SYSTEM + 1;
    $Result .= "\n";
    $Result .= "<tr>";
    $Result .= "<th width=30>" . $outerspace . "</th>";
    $Result .= "<th colspan=7>";
    $Result .= "<a href=fleet.php?galaxy=" . $Galaxy . "&amp;system=" . $System . "&amp;planet=" . $outerspace . ";planettype=1&amp;target_mission=15>" . $lang['gf_unknowsp'] . "</a>";
    $Result .= "</th>";
    $Result .= "</tr>";
    $Result .= "\n";
    $Result .= "<tr>";
    $Result .= "<td class=c colspan=6>( " . $PlanetCountMessage . " )</td>";
    $Result .= "<td class=c colspan=2>" . $LegendPopup . "</td>";
    $Result .= "</tr>";
    $Result .= "\n";
    $Result .= "<tr>";
    $Result .= "<td class=c colspan=3><span id=\"missiles\">" . $CurrentMIP . "</span> " . $lang['gf_mi_title'] . "</td>";
    $Result .= "<td class=c colspan=3><span id=\"slots\">" . $maxfleet_count . "</span>/" . $fleetmax . " " . $lang['gf_fleetslt'] . "</td>";
    $Result .= "<td class=c colspan=2>";
    $Result .= "<span id=\"recyclers\">" . $Recyclers . "</span> " . $lang['gf_rc_title'] . "<br>";
    $Result .= "<span id=\"probes\">" . $SpyProbes . "</span> " . $lang['gf_sp_title'] . "</td>";
    $Result .= "</tr>";
    $Result .= "\n";
    $Result .= "<tr style=\"display: none;\" id=\"fleetstatusrow\">";
    $Result .= "<th class=c colspan=8><!--<div id=\"fleetstatus\"></div>-->";
    $Result .= "<table style=\"font-weight: bold\" width=\"100%\" id=\"fleetstatustable\">";
    $Result .= "<!-- will be filled with content later on while processing ajax replys -->";
    //	$Result .= "<tr style=\"display: none; align:left\" id=\"fleetstatusrow\">";
    //	$Result .= "<th colspan=8><div style=\"align:left\" id=\"fleetstatus\"></div></th>";
    //	$Result .= "</tr>";
    $Result .= "</table>";
    $Result .= "</th>";
    $Result .= "\n";
    $Result .= "</tr>";
    /*
    <tr style=\"display: none;\" id=\"fleetstatusrow\"><th colspan="8"><!--<div id="fleetstatus"></div>-->
    <table style="font-weight: bold;" width=100% id="fleetstatustable">
    <!-- will be filled with content later on while processing ajax replys -->
    </table>
    </th>
    </tr>
    */
    return $Result;
}
Example #2
0
/**
 * ShowGalaxySelector.php
 * @Licence GNU (GPL)
 * @version 3.0
 * @copyright 2009
 * @Team Space Beginner
 *
 **/
function ShowGalaxySelector($Galaxy, $System, $CurrentMIP, $CurrentRC, $CurrentGRC, $CurrentSP)
{
    global $lang, $dpath, $maxfleet_count, $fleetmax;
    $LegendPopup = GalaxyLegendPopup();
    $Recyclers = pretty_number($CurrentRC);
    $Gigarecyclers = pretty_number($CurrentGRC);
    $SpyProbes = pretty_number($CurrentSP);
    if ($Galaxy > 9) {
        $Galaxy = 9;
    }
    if ($Galaxy < 1) {
        $Galaxy = 1;
    }
    if ($System > 499) {
        $System = 499;
    }
    if ($System < 1) {
        $System = 1;
    }
    $Result = "\n\n<form action=\"galaxy.php?mode=1\" method=\"post\" id=\"galaxy_form\"><input type=\"hidden\" id=\"auto\" value=\"dr\" >\n\n<table>\n    <tr><td>\n\n        <table>\n            <tr><td><a onclick=\"galaxy_submit('galaxyLeft')\" type=\"button\" ><img src=\"./styl/image/gala/links.gif\"  style=\"width:24px; height:24px\" alt=\"links.png\"></a></td>\n                <td><input name=\"galaxy\" value=\"" . $Galaxy . "\" size=\"3\" maxlength=\"3\" type=\"text\"></td>\n                <td><a onclick=\"galaxy_submit('galaxyRight')\" type=\"button\"><img src=\"./styl/image/gala/rechts.gif\" style=\"width:24px; height:24px\" alt=\"links.png\"></a></td></tr>\n        </table>\n\n        </td></tr>\n    <tr><td rowspan=\"2\">\n\n        <table>\n            <tr><td><a onclick=\"galaxy_submit('systemLeft')\" type=\"button\" ><img src=\"./styl/image/gala/links.gif\"  style=\"width:24px; height:24px\" alt=\"links.png\"></a></td>\n                <td><input name=\"system\" value=\"" . $System . "\" size=\"3\" maxlength=\"3\" type=\"text\"></td>\n                <td><a onclick=\"galaxy_submit('systemRight')\" type=\"button\"><img src=\"./styl/image/gala/rechts.gif\" style=\"width:24px; height:24px\" alt=\"links.png\"></a></td></tr>\n        </table>\n\n        </td></tr>\n    <tr><td>\n\n        <table>\n            <tr><td align=\"center\"><input value=\"" . $lang['gala']['0101'] . "\" type=\"submit\"></td></tr>\n        </table>\n\n        </td></tr>\n    <tr><td style=\"height:15px;\"></td></tr>\n    <tr><td colspan='2'>\n\n        <table>\n            <tr><td align=\"left\" colspan='2'>" . $lang['gala']['5003'] . " " . $lang['gala']['0102'] . " " . $Galaxy . "" . $lang['gala']['5002'] . "" . $System . "</td></tr>\n        </table>\n\n        </td></tr>\n</table>\n\n<br><br><br>\n\n<table>\n    <tr><td align=\"center\" colspan='2'>" . $LegendPopup . "</td></tr>\n    <tr><td align=\"left\" colspan='2'>- <span id=\"interplanetary_misil\">" . $CurrentMIP . "  </span> " . $lang['gala']['0103'] . "                </td></tr>\n    <tr><td align=\"left\" colspan='2'>- <span id=\"recyclers\">" . $CurrentRC . "             </span> " . $lang['gala']['0104'] . "                </td></tr>\n    <tr><td align=\"left\" colspan='2'>- <span id=\"giga_recycler\">" . $CurrentGRC . "        </span> " . $lang['gala']['0105'] . "                </td></tr>\n    <tr><td align=\"left\" colspan='2'>- <span id=\"probes\">" . $CurrentSP . "                 </span> " . $lang['gala']['0106'] . "                </td></tr>\n    <tr><td align=\"left\" colspan='2'>- <span id=\"slots\">" . $maxfleet_count . "             </span>/" . $fleetmax . " " . $lang['gala']['0107'] . "</td></tr>\n</table>\n\n</form>";
    return $Result;
}