Initial commit
This commit is contained in:
commit
d7619777af
915 changed files with 59386 additions and 0 deletions
101
includes/functions/ShowGalaxyFooter.php
Normal file
101
includes/functions/ShowGalaxyFooter.php
Normal file
|
|
@ -0,0 +1,101 @@
|
|||
<?php
|
||||
/**
|
||||
* This file is part of XNova:Legacies
|
||||
*
|
||||
* @license http://www.gnu.org/licenses/gpl-3.0.txt
|
||||
* @see http://www.xnova-ng.org/
|
||||
*
|
||||
* Copyright (c) 2009-Present, XNova Support Team <http://www.xnova-ng.org>
|
||||
* All rights reserved.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
* --> NOTICE <--
|
||||
* This file is part of the core development branch, changing its contents will
|
||||
* make you unable to use the automatic updates manager. Please refer to the
|
||||
* documentation for further information about customizing XNova.
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
* @deprecated
|
||||
* @param unknown_type $Galaxy
|
||||
* @param unknown_type $System
|
||||
* @param unknown_type $CurrentMIP
|
||||
* @param unknown_type $CurrentRC
|
||||
* @param unknown_type $CurrentSP
|
||||
*/
|
||||
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);
|
||||
|
||||
$Result .= "\n";
|
||||
$Result .= "<tr>";
|
||||
$Result .= "<th width=\"30\">16</th>";
|
||||
$Result .= "<th colspan=7>";
|
||||
$Result .= "<a href=fleet.php?galaxy=".$Galaxy."&system=".$System."&planet=16;planettype=1&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;
|
||||
}
|
||||
|
||||
?>
|
||||
Loading…
Reference in a new issue