diff --git a/includes/galaxy.php b/includes/galaxy.php index ede080ec..a54b4535 100644 --- a/includes/galaxy.php +++ b/includes/galaxy.php @@ -1713,6 +1713,7 @@ function galaxy_portee_missiles($galaxy, $system) function displayMIP($nom_missil_joueur, $missil_dispo, $galaxie_missil, $sysSol_missil, $base_coord, $ok_missil, $total_missil) { global $lang; + //todo tooltip non fonctionnel : affichage en tete dans la table galaxy => a maintenir ? if (!$missil_dispo) { $missil_dispo = $lang['GALAXY_MIP_UNKNOWN']; @@ -1726,6 +1727,7 @@ function displayMIP($nom_missil_joueur, $missil_dispo, $galaxie_missil, $sysSol_ $tooltip .= '' . $lang['GALAXY_MIP_AVAILABLE_MISSILES'] . ' : ' . $missil_dispo . ''; $tooltip .= ''; $tooltip = htmlentities($tooltip); + $door = ' + + + + + + + diff --git a/skin/OGSpy_skin/icon/icon-moon.svg b/skin/OGSpy_skin/icon/icon-moon.svg new file mode 100644 index 00000000..f7a90a12 --- /dev/null +++ b/skin/OGSpy_skin/icon/icon-moon.svg @@ -0,0 +1,62 @@ + + + + + + + + + + + + + + + diff --git a/skin/OGSpy_skin/icon/icon-phalanx.svg b/skin/OGSpy_skin/icon/icon-phalanx.svg new file mode 100644 index 00000000..d40c94b3 --- /dev/null +++ b/skin/OGSpy_skin/icon/icon-phalanx.svg @@ -0,0 +1,111 @@ + + + + + + + + + diff --git a/views/galaxy.php b/views/galaxy.php index 135b17ce..05c239fd 100755 --- a/views/galaxy.php +++ b/views/galaxy.php @@ -37,6 +37,8 @@ $favorites = galaxy_getfavorites(); +$tooltiptab = array("player" => array(), "ally" => array()); // conteneur des tooltips a creer + $missil = ""; //TODO sortir requete de la vue //recherche du group @@ -58,416 +60,457 @@ require_once("views/page_header.php"); ?>
-
- - - - - - - - + + + + + +
- - - - - - - + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + + + + + + + + + +
+ +
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + "> + - - + + + + + + + + + -
+ + + + + + + + + 0) : ?> + + + + + + + +
+ +
 LPPh   
+ + + +   + + + + + + + + GetHTMLClassContent(array("tooltipstered"), "ttp_alliance_" . $v["ally"]); ?> href="index.php?action=search&type_search=ally&string_search=&strict=on"> + + + +   + + + + GetHTMLClassContent(array("tooltipstered"), "ttp_player_" . $v["player"]); ?> href="index.php?action=search&type_search=ally&string_search=&strict=on"> + + + +   + + + + +   + + +   + + + + + P + + +   + + + 0) : ?> + + + + +   + + + + + + + + + 0) : ?> + + + + +   + + + 0) : ?> + + + + +   + + + + + + - +
-
- - - - + + + + + + + '; + $legend .= ''; + $legend .= '"; + $legend .= ''; + $legend .= ''; + $legend .= ""; + $legend .= ""; + $legend .= ""; + $legend .= ""; + $legend .= ""; + $legend .= ""; + $legend .= ""; + $legend .= ""; + $legend .= ""; + $legend .= ""; + $legend .= ''; + $legend .= "
' . $lang['GALAXY_LEGEND'] . "
" . $lang['GALAXY_INACTIVE_7Days'] . "" . $lang['GALAXY_INACTIVE_7Days_SYMBOL'] . "
" . $lang['GALAXY_INACTIVE_28Days'] . "" . $lang['GALAXY_INACTIVE_28Days_SYMBOL'] . "
" . $lang['GALAXY_HOLIDAYS'] . "" . $lang['GALAXY_HOLIDAYS_SYMBOL'] . "
" . $lang['GALAXY_WEAK_PROTECTION'] . "" . $lang['GALAXY_WEAK_PROTECTION_SYMBOL'] . "
" . $lang['GALAXY_MOON'] . "
" . $lang['GALAXY_MOON_PHALANX'] . "4P
" . $lang['GALAXY_SPYREPORT'] . "" . $lang['GALAXY_SPYREPORT_SYMBOL'] . "
" . $lang['GALAXY_COMBATREPORT'] . "" . $lang['GALAXY_COMBATREPORT_SYMBOL'] . "
" . $lang['GALAXY_ALLY_FRIEND'] . "abc
" . $lang['GALAXY_ALLY_HIDDEN'] . "abc
"; + $legend = htmlentities($legend); + + //------------ ajout Tooltip ---------------- + $ToolTip_Helper->addTooltip("legende", $legend); + ?> +
+ GetHTMLClassContent(); ?>> +
+ + + + + + + + + + + + + 0) : ?> + - - - -
+ +
- + + + + [GetHTMLClassContent(array("tooltipstered"), "ttp_alliance_" . $value["ally"]); ?>> + + ] + + + &strict=on" GetHTMLClassContent(array("tooltipstered"), "ttp_player_" . $value["player"]); ?>> + + + en + [ " . $value["galaxy"] . ":" . $value['range_up']; ?>] + + + +
-
+ + + + +
- -
- - - - - - - - - - - - - - - - - - - - - "; - $end_hided = ""; - } - $begin_allied = ""; - $end_allied = ""; - if ($v["allied"]) { - $begin_allied = ""; - $end_allied = ""; - } - - $id = $i; - $planet = $v["planet"]; - $ally = $v["ally"]; - $player = $v["player"]; - $moon = $v["moon"]; - $last_update_moon = $v["last_update_moon"]; - $phalanx = $v["phalanx"]; - $gate = $v["gate"] == 1; - $status = $v["status"]; - $timestamp = intval($v["timestamp"]); - $poster = " "; - if ($timestamp != 0) { - $timestamp = date("d F o G:i", $timestamp); - $poster = $timestamp . " - " . $v["poster"]; - } - - if ($planet == "") { - $planet = " "; - } else { - $planet = "" . $begin_allied . $begin_hided . $planet . $end_hided . $end_allied . ""; - } - - if ($ally == "") { - $ally = " "; - } else { - $tooltip = '
- - - 0) { - $string_delfavorites = "window.location = 'index.php?action=del_favorite&galaxy=" . $galaxy . "&system=" . $system . "';"; - } else { - $string_delfavorites = "alert('" . $lang['GALAXY_NO_FAVORITES_MESSAGE'] . "')"; - } - ?> - - -
     
'; - $tooltip .= ''; - - $individual_ranking = galaxy_show_ranking_unique_ally($ally); - while ($ranking = current($individual_ranking)) { - $datadate = date("d F o G:i", key($individual_ranking)); - $general_rank = isset($ranking["general"]) ? formate_number($ranking["general"]["rank"]) : " "; - $general_points = isset($ranking["general"]) ? formate_number($ranking["general"]["points"]) : " "; - $eco_rank = isset($ranking["eco"]) ? formate_number($ranking["eco"]["rank"]) : " "; - $eco_points = isset($ranking["eco"]) ? formate_number($ranking["eco"]["points"]) : " "; - $techno_rank = isset($ranking["techno"]) ? formate_number($ranking["techno"]["rank"]) : " "; - $techno_points = isset($ranking["techno"]) ? formate_number($ranking["techno"]["points"]) : " "; - $military_rank = isset($ranking["military"]) ? formate_number($ranking["military"]["rank"]) : " "; - $military_points = isset($ranking["military"]) ? formate_number($ranking["military"]["points"]) : " "; - $military_b_rank = isset($ranking["military_b"]) ? formate_number($ranking["military_b"]["rank"]) : " "; - $military_b_points = isset($ranking["military_b"]) ? formate_number($ranking["military_b"]["points"]) : " "; - $military_l_rank = isset($ranking["military_l"]) ? formate_number($ranking["military_l"]["rank"]) : " "; - $military_l_points = isset($ranking["military_l"]) ? formate_number($ranking["military_l"]["points"]) : " "; - $military_d_rank = isset($ranking["military_d"]) ? formate_number($ranking["military_d"]["rank"]) : " "; - $military_d_points = isset($ranking["military_d"]) ? formate_number($ranking["military_d"]["points"]) : " "; - $honnor_rank = isset($ranking["honnor"]) ? formate_number($ranking["honnor"]["rank"]) : " "; - $honnor_points = isset($ranking["honnor"]) ? formate_number($ranking["honnor"]["points"]) : " "; - - $tooltip .= ""; - $tooltip .= ""; - $tooltip .= ""; - $tooltip .= ""; - $tooltip .= ""; - $tooltip .= ""; - $tooltip .= ""; - $tooltip .= ""; - $tooltip .= ""; - $tooltip .= ""; - break; - } - $tooltip .= ""; - $tooltip .= "
' . $lang['GALAXY_ALLY'] . " " . $ally . '
" . $lang['GALAXY_RANK'] . " " . $datadate . "
" . $lang['GALAXY_RANK_GENERAL'] . "" . $general_rank . "" . $general_points . "
" . $lang['GALAXY_RANK_ECONOMY'] . "" . $eco_rank . "" . $eco_points . "
" . $lang['GALAXY_RANK_LAB'] . "" . $techno_rank . "" . $techno_points . "
" . $lang['GALAXY_RANK_MILITARY'] . "" . $military_rank . "" . $military_points . "
" . $lang['GALAXY_RANK_MILITARY_BUILT'] . "" . $military_b_rank . "" . $military_b_points . "
" . $lang['GALAXY_RANK_MILITARY_LOST'] . "" . $military_l_rank . "" . $military_l_points . "
" . $lang['GALAXY_RANK_MILITARY_DESTROYED'] . "" . $military_d_rank . "" . $military_d_points . "
" . $lang['GALAXY_RANK_MILITARY_HONNOR'] . "" . $honnor_rank . "" . $honnor_points . "
" . formate_number($ranking["number_member"]) . " " . $lang['GALAXY_MEMBERS'] . "
" . $lang['GALAXY_SEE_DETAILS'] . "
"; - - $tooltip = htmlentities($tooltip); - - //------------ Affichage Tooltip ---------------- - $ToolTip_Helper->addTooltip("ttp_alliance_" . $ally, $tooltip); - $ally = 'GetHTMLClassContent() . ' href="index.php?action=search&type_search=ally&string_search=' . $ally . '&strict=on"> ' . $begin_allied . $begin_hided . $ally . $end_hided . $end_allied . ' '; - } - - if ($player == "") { - $player = " "; - } else { - $tooltip = ""; - $tooltip .= ""; - - $individual_ranking = galaxy_show_ranking_unique_player($player); - while ($ranking = current($individual_ranking)) { - $datadate = date("d F o G:i", key($individual_ranking)); - $general_rank = isset($ranking["general"]) ? formate_number($ranking["general"]["rank"]) : " "; - $general_points = isset($ranking["general"]) ? formate_number($ranking["general"]["points"]) : " "; - $eco_rank = isset($ranking["eco"]) ? formate_number($ranking["eco"]["rank"]) : " "; - $eco_points = isset($ranking["eco"]) ? formate_number($ranking["eco"]["points"]) : " "; - $techno_rank = isset($ranking["techno"]) ? formate_number($ranking["techno"]["rank"]) : " "; - $techno_points = isset($ranking["techno"]) ? formate_number($ranking["techno"]["points"]) : " "; - $military_rank = isset($ranking["military"]) ? formate_number($ranking["military"]["rank"]) : " "; - $military_points = isset($ranking["military"]) ? formate_number($ranking["military"]["points"]) : " "; - $military_b_rank = isset($ranking["military_b"]) ? formate_number($ranking["military_b"]["rank"]) : " "; - $military_b_points = isset($ranking["military_b"]) ? formate_number($ranking["military_b"]["points"]) : " "; - $military_l_rank = isset($ranking["military_l"]) ? formate_number($ranking["military_l"]["rank"]) : " "; - $military_l_points = isset($ranking["military_l"]) ? formate_number($ranking["military_l"]["points"]) : " "; - $military_d_rank = isset($ranking["military_d"]) ? formate_number($ranking["military_d"]["rank"]) : " "; - $military_d_points = isset($ranking["military_d"]) ? formate_number($ranking["military_d"]["points"]) : " "; - $honnor_rank = isset($ranking["honnor"]) ? formate_number($ranking["honnor"]["rank"]) : " "; - $honnor_points = isset($ranking["honnor"]) ? formate_number($ranking["honnor"]["points"]) : " "; - - $tooltip .= ""; - $tooltip .= ""; - $tooltip .= ""; - $tooltip .= ""; - $tooltip .= ""; - $tooltip .= ""; - $tooltip .= ""; - $tooltip .= ""; - $tooltip .= ""; - break; - } - $tooltip .= ""; - $tooltip .= "
" . $lang['GALAXY_PLAYER'] . " " . $player . "
" . $lang['GALAXY_RANK'] . " " . $datadate . "
" . $lang['GALAXY_RANK_GENERAL'] . "" . $general_rank . "" . $general_points . "
" . $lang['GALAXY_RANK_ECONOMY'] . "" . $eco_rank . "" . $eco_points . "
" . $lang['GALAXY_RANK_LAB'] . "" . $techno_rank . "" . $techno_points . "
" . $lang['GALAXY_RANK_MILITARY'] . "" . $military_rank . "" . $military_points . "
" . $lang['GALAXY_RANK_MILITARY_BUILT'] . "" . $military_b_rank . "" . $military_b_points . "
" . $lang['GALAXY_RANK_MILITARY_LOST'] . "" . $military_l_rank . "" . $military_l_points . "
" . $lang['GALAXY_RANK_MILITARY_DESTROYED'] . "" . $military_d_rank . "" . $military_d_points . "
" . $lang['GALAXY_RANK_MILITARY_HONNOR'] . "" . $honnor_rank . "" . $honnor_points . "
" . $lang['GALAXY_SEE_DETAILS'] . "
"; - $tooltip = htmlentities($tooltip); - //------------ Affichage Tooltip ---------------- - $ToolTip_Helper->addTooltip("ttp_player_" . $player, $tooltip); - $player = 'GetHTMLClassContent() . ' href="index.php?action=search&type_search=player&string_search=' . $player . '&strict=on"> ' . $begin_allied . $begin_hided . $player . $end_hided . $end_allied . ' '; - //------------ Fin Affichage Tooltip ---------------- - } - - if ($status == "") { - $status = " "; - } - - if ($moon == 1) { - $moon = ''; - $detail = ""; - if ($last_update_moon > 0) { - $detail .= $phalanx; - } - if ($gate == 1) { - $detail .= "P"; - } - if ($detail != "") { - $moon .= " - " . $detail; - } - } else { - $moon = " "; - } - - if ($v["report_spy"] > 0) { - $spy = "" . $lang['GALAXY_SR'] . ""; - } else { - $spy = " "; - } - - if (isset($v["report_rc"]) && $v["report_rc"] > 0) { - $rc = "" . $v["report_rc"] . $lang['GALAXY_CR'] . ""; - } else { - $rc = " "; - } - - echo "" . "\n"; - echo "\t" . "" . $id . "" . "\n"; - echo "\t" . "" . $planet . "" . "\n"; - echo "\t" . "" . $ally . "" . "\n"; - echo "\t" . "" . $player . "" . "\n"; - echo "\t" . "" . $moon . "" . "\n"; - echo "\t" . "" . $status . "" . "\n"; - echo "\t" . "" . $spy . "" . "\n"; - echo "\t" . "" . $rc . "" . "\n"; - echo "\t" . "" . $poster . "" . "\n"; - echo "" . "\n"; - - $i++; - } - $legend = ''; - $legend .= '"; - $legend .= ""; - $legend .= ""; - $legend .= ""; - $legend .= ""; - $legend .= ""; - $legend .= ""; - $legend .= ""; - $legend .= ""; - $legend .= ""; - $legend .= "
' . $lang['GALAXY_LEGEND'] . "
" . $lang['GALAXY_INACTIVE_7Days'] . "" . $lang['GALAXY_INACTIVE_7Days_SYMBOL'] . "
" . $lang['GALAXY_INACTIVE_28Days'] . "" . $lang['GALAXY_INACTIVE_28Days_SYMBOL'] . "
" . $lang['GALAXY_HOLIDAYS'] . "" . $lang['GALAXY_HOLIDAYS_SYMBOL'] . "
" . $lang['GALAXY_WEAK_PROTECTION'] . "" . $lang['GALAXY_WEAK_PROTECTION_SYMBOL'] . "
" . $lang['GALAXY_MOON'] . '
' . $lang['GALAXY_MOON_PHALANX'] . '
lune' . $lang['GALAXY_MOON_PHALANX_SYMBOL'] . "
" . $lang['GALAXY_SPYREPORT'] . "" . $lang['GALAXY_SPYREPORT_SYMBOL'] . "
" . $lang['GALAXY_COMBATREPORT'] . "" . $lang['GALAXY_COMBATREPORT_SYMBOL'] . "
" . $lang['GALAXY_ALLY_FRIEND'] . "abc
" . $lang['GALAXY_ALLY_HIDDEN'] . "abc
"; - $legend = htmlentities($legend); - - //------------ Affichage Tooltip ---------------- - $ToolTip_Helper->addTooltip("legende", $legend); - echo ""; - echo "GetHTMLClassContent() . " >" . $lang['GALAXY_LEGEND'] . ""; - echo ""; - //------------ fin Affichage Tooltip ---------------- - echo "
"; - - - //Phalange - echo "
"; - echo ""; - if (sizeof($phalanx_list) > 0) { - foreach ($phalanx_list as $value) { - - echo ""; - } - } else { - echo ""; - } - echo "
" . $lang['GALAXY_PHALANX_LIST'] . help("galaxy_phalanx") . "
"; - - if ($value["ally"] != "") { - $individual_ranking = galaxy_show_ranking_unique_ally($value["ally"]); - $tooltip = ""; - $tooltip .= ""; - while ($ranking = current($individual_ranking)) { - $datadate = date("d M Y H", key($individual_ranking)) . "h"; - $general_rank = isset($ranking["general"]) ? formate_number($ranking["general"]["rank"]) : " "; - $general_points = isset($ranking["general"]) ? formate_number($ranking["general"]["points"]) . " ( " . formate_number($ranking["general"]["points_per_member"]) . " )" : " "; - $fleet_rank = isset($ranking["fleet"]) ? formate_number($ranking["fleet"]["rank"]) : " "; - $fleet_points = isset($ranking["fleet"]) ? formate_number($ranking["fleet"]["points"]) . " ( " . formate_number($ranking["fleet"]["points_per_member"]) . " )" : " "; - $research_rank = isset($ranking["research"]) ? formate_number($ranking["research"]["rank"]) : " "; - $research_points = isset($ranking["research"]) ? formate_number($ranking["research"]["points"]) . " ( " . formate_number($ranking["research"]["points_per_member"]) . " )" : " "; - - $tooltip .= ""; - $tooltip .= ""; - $tooltip .= ""; - $tooltip .= ""; - $tooltip .= ""; - break; - } - $tooltip .= ""; - $tooltip .= "
" . $lang['GALAXY_ALLY'] . " " . $value["ally"] . "
" . $lang['GALAXY_RANK'] . " " . $datadate . "
" . $lang['GALAXY_RANK_GENERAL'] . "" . $general_rank . "" . $general_points . "
" . $lang['GALAXY_RANK_FLEET'] . "" . $fleet_rank . "" . $fleet_points . "
" . $lang['GALAXY_RANK_LAB'] . "" . $research_rank . "" . $research_points . "
" . formate_number($ranking["number_member"]) . " " . $lang['GALAXY_MEMBERS'] . "
" . $lang['GALAXY_SEE_DETAILS'] . "
"; - $tooltip = htmlentities($tooltip); - - - $ToolTip_Helper->addTooltip("ttp_alliance_" . $value["ally"], $tooltip); - echo "[GetHTMLClassContent() . ">" . $value["ally"] . "]" . " "; - } - - $individual_ranking = galaxy_show_ranking_unique_player($value["player"]); - $tooltip = ""; - $tooltip .= ""; - while ($ranking = current($individual_ranking)) { - $datadate = date("d F o G:i", key($individual_ranking)); - $general_rank = isset($ranking["general"]) ? formate_number($ranking["general"]["rank"]) : " "; - $general_points = isset($ranking["general"]) ? formate_number($ranking["general"]["points"]) : " "; - $fleet_rank = isset($ranking["fleet"]) ? formate_number($ranking["fleet"]["rank"]) : " "; - $fleet_points = isset($ranking["fleet"]) ? formate_number($ranking["fleet"]["points"]) : " "; - $research_rank = isset($ranking["research"]) ? formate_number($ranking["research"]["rank"]) : " "; - $research_points = isset($ranking["research"]) ? formate_number($ranking["research"]["points"]) : " "; - - $tooltip .= ""; - $tooltip .= ""; - $tooltip .= ""; - $tooltip .= ""; - break; - } - $tooltip .= ""; - $tooltip .= "
" . $lang['GALAXY_PLAYER'] . " " . $value["player"] . "
" . $lang['GALAXY_RANK'] . " " . $datadate . "
" . $lang['GALAXY_RANK_GENERAL'] . "" . $general_rank . "" . $general_points . "
" . $lang['GALAXY_RANK_FLEET'] . "" . $fleet_rank . "" . $fleet_points . "
" . $lang['GALAXY_RANK_LAB'] . "" . $research_rank . "" . $research_points . "
" . $lang['GALAXY_SEE_DETAILS'] . "
"; - $tooltip = htmlentities($tooltip); - - - //------------ Affichage Tooltip ---------------- - $ToolTip_Helper->addTooltip("ttp_player_" . $player, $tooltip); - echo "GetHTMLClassContent() . ">" . $value["player"] . " " . $lang['GALAXY_LUNA_PHALANX'] . " " . $value["level"]; - echo " en " . $value["galaxy"] . ":" . $value["system"] . ":" . $value["row"] . " [" . $value["galaxy"] . ":"; - - - echo $value['range_down'] . " <-> " . $value["galaxy"] . ":" . $value['range_up'] . "]"; - - if ($value["gate"] == "1") { - echo " " . $lang['GALAXY_LUNA_GATE'] . " "; - } - echo ".
" . $lang['GALAXY_LUNA_NOPHALANX'] . "
"; - - - //Raccourci recherche - $tooltip_begin = ""; - $tooltip_end = "
"; - - $tooltip_colonization = $tooltip_moon = $tooltip_away = $tooltip_spy = ""; - for ($i = 10; $i <= 50; $i = $i + 10) { - if ($system - $i >= 1) { - $down = $system - $i; - } else { - $down = 1; - } - - if ($system + $i <= intval($server_config['num_of_systems'])) { - $up = $system + $i; - } else { - $up = intval($server_config['num_of_systems']); - } - - $tooltip_colonization .= "" . $i . ""; - $tooltip_moon .= "" . $i . ""; - $tooltip_away .= "" . $i . ""; - $tooltip_spy .= "" . $i . ""; - } - - echo "
"; - echo ""; - echo ""; - echo ""; - echo ""; - echo ""; - echo ""; - echo ""; - echo ""; - echo $tooltip_colonization; - echo $tooltip_moon; - echo $tooltip_away; - echo $tooltip_spy; - echo ""; - echo ""; - echo ""; - echo ""; - echo "
" . $lang['GALAXY_SEARCH'] . "
" . $lang['GALAXY_SEARCH_PLANETS_AVAILABLE'] . "" . $lang['GALAXY_SEARCH_MOONS'] . "" . $lang['GALAXY_SEARCH_INACTIVES'] . "" . $lang['GALAXY_SEARCH_SPYREPORTS'] . "
" . $lang['GALAXY_SURROUNDING_SYSTEMS'] . "
"; - echo "
"; - - require_once("views/page_tail.php"); - ?> + + + + + + + + + + + + + + + + + + + + + + + = 1) : ?> + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + +
+ + + +
+ +
+ + + + +'; + $tooltip .= "" . $lang['GALAXY_PLAYER'] . " " . $player . ""; + $tooltip .= ''; + $individual_ranking = galaxy_show_ranking_unique_player($player); + while ($ranking = current($individual_ranking)) { + $datadate = date("d F o G:i", key($individual_ranking)); + $general_rank = isset($ranking["general"]) ? formate_number($ranking["general"]["rank"]) : " "; + $general_points = isset($ranking["general"]) ? formate_number($ranking["general"]["points"]) : " "; + $eco_rank = isset($ranking["eco"]) ? formate_number($ranking["eco"]["rank"]) : " "; + $eco_points = isset($ranking["eco"]) ? formate_number($ranking["eco"]["points"]) : " "; + $techno_rank = isset($ranking["techno"]) ? formate_number($ranking["techno"]["rank"]) : " "; + $techno_points = isset($ranking["techno"]) ? formate_number($ranking["techno"]["points"]) : " "; + $military_rank = isset($ranking["military"]) ? formate_number($ranking["military"]["rank"]) : " "; + $military_points = isset($ranking["military"]) ? formate_number($ranking["military"]["points"]) : " "; + $military_b_rank = isset($ranking["military_b"]) ? formate_number($ranking["military_b"]["rank"]) : " "; + $military_b_points = isset($ranking["military_b"]) ? formate_number($ranking["military_b"]["points"]) : " "; + $military_l_rank = isset($ranking["military_l"]) ? formate_number($ranking["military_l"]["rank"]) : " "; + $military_l_points = isset($ranking["military_l"]) ? formate_number($ranking["military_l"]["points"]) : " "; + $military_d_rank = isset($ranking["military_d"]) ? formate_number($ranking["military_d"]["rank"]) : " "; + $military_d_points = isset($ranking["military_d"]) ? formate_number($ranking["military_d"]["points"]) : " "; + $honnor_rank = isset($ranking["honnor"]) ? formate_number($ranking["honnor"]["rank"]) : " "; + $honnor_points = isset($ranking["honnor"]) ? formate_number($ranking["honnor"]["points"]) : " "; + + $tooltip .= "" . $lang['GALAXY_RANK'] . " " . $datadate . ""; + $tooltip .= "" . $lang['GALAXY_RANK_GENERAL'] . "" . $general_rank . "" . $general_points . ""; + $tooltip .= "" . $lang['GALAXY_RANK_ECONOMY'] . "" . $eco_rank . "" . $eco_points . ""; + $tooltip .= "" . $lang['GALAXY_RANK_LAB'] . "" . $techno_rank . "" . $techno_points . ""; + $tooltip .= "" . $lang['GALAXY_RANK_MILITARY'] . "" . $military_rank . "" . $military_points . ""; + $tooltip .= "" . $lang['GALAXY_RANK_MILITARY_BUILT'] . "" . $military_b_rank . "" . $military_b_points . ""; + $tooltip .= "" . $lang['GALAXY_RANK_MILITARY_LOST'] . "" . $military_l_rank . "" . $military_l_points . ""; + $tooltip .= "" . $lang['GALAXY_RANK_MILITARY_DESTROYED'] . "" . $military_d_rank . "" . $military_d_points . ""; + $tooltip .= "" . $lang['GALAXY_RANK_MILITARY_HONNOR'] . "" . $honnor_rank . "" . $honnor_points . ""; + break; + } + $tooltip .= "" . $lang['GALAXY_SEE_DETAILS'] . ""; + $tooltip .= ''; + $tooltip .= ""; + $tooltip = htmlentities($tooltip); + //------------ Affichage Tooltip ---------------- + $ToolTip_Helper->addTooltip("ttp_player_" . $player, $tooltip); +} +//tooltup ally +foreach ($tooltiptab["ally"] as $ally) { + + + $tooltip = ''; + $tooltip .= ''; + $tooltip .= ''; + + $individual_ranking = galaxy_show_ranking_unique_ally($ally); + while ($ranking = current($individual_ranking)) { + $datadate = date("d F o G:i", key($individual_ranking)); + $general_rank = isset($ranking["general"]) ? formate_number($ranking["general"]["rank"]) : " "; + $general_points = isset($ranking["general"]) ? formate_number($ranking["general"]["points"]) : " "; + $eco_rank = isset($ranking["eco"]) ? formate_number($ranking["eco"]["rank"]) : " "; + $eco_points = isset($ranking["eco"]) ? formate_number($ranking["eco"]["points"]) : " "; + $techno_rank = isset($ranking["techno"]) ? formate_number($ranking["techno"]["rank"]) : " "; + $techno_points = isset($ranking["techno"]) ? formate_number($ranking["techno"]["points"]) : " "; + $military_rank = isset($ranking["military"]) ? formate_number($ranking["military"]["rank"]) : " "; + $military_points = isset($ranking["military"]) ? formate_number($ranking["military"]["points"]) : " "; + $military_b_rank = isset($ranking["military_b"]) ? formate_number($ranking["military_b"]["rank"]) : " "; + $military_b_points = isset($ranking["military_b"]) ? formate_number($ranking["military_b"]["points"]) : " "; + $military_l_rank = isset($ranking["military_l"]) ? formate_number($ranking["military_l"]["rank"]) : " "; + $military_l_points = isset($ranking["military_l"]) ? formate_number($ranking["military_l"]["points"]) : " "; + $military_d_rank = isset($ranking["military_d"]) ? formate_number($ranking["military_d"]["rank"]) : " "; + $military_d_points = isset($ranking["military_d"]) ? formate_number($ranking["military_d"]["points"]) : " "; + $honnor_rank = isset($ranking["honnor"]) ? formate_number($ranking["honnor"]["rank"]) : " "; + $honnor_points = isset($ranking["honnor"]) ? formate_number($ranking["honnor"]["points"]) : " "; + + $tooltip .= ""; + $tooltip .= ""; + $tooltip .= ""; + $tooltip .= ""; + $tooltip .= ""; + $tooltip .= ""; + $tooltip .= ""; + $tooltip .= ""; + $tooltip .= ""; + $tooltip .= ""; + break; + } + $tooltip .= ""; + $tooltip .= ''; + $tooltip .= "
' . $lang['GALAXY_ALLY'] . " " . $ally . '
" . $lang['GALAXY_RANK'] . " " . $datadate . "
" . $lang['GALAXY_RANK_GENERAL'] . "" . $general_rank . "" . $general_points . "
" . $lang['GALAXY_RANK_ECONOMY'] . "" . $eco_rank . "" . $eco_points . "
" . $lang['GALAXY_RANK_LAB'] . "" . $techno_rank . "" . $techno_points . "
" . $lang['GALAXY_RANK_MILITARY'] . "" . $military_rank . "" . $military_points . "
" . $lang['GALAXY_RANK_MILITARY_BUILT'] . "" . $military_b_rank . "" . $military_b_points . "
" . $lang['GALAXY_RANK_MILITARY_LOST'] . "" . $military_l_rank . "" . $military_l_points . "
" . $lang['GALAXY_RANK_MILITARY_DESTROYED'] . "" . $military_d_rank . "" . $military_d_points . "
" . $lang['GALAXY_RANK_MILITARY_HONNOR'] . "" . $honnor_rank . "" . $honnor_points . "
" . formate_number($ranking["number_member"]) . " " . $lang['GALAXY_MEMBERS'] . "
" . $lang['GALAXY_SEE_DETAILS'] . "
"; + + $tooltip = htmlentities($tooltip); + + //------------ Affichage Tooltip ---------------- + $ToolTip_Helper->addTooltip("ttp_alliance_" . $ally, $tooltip); +} + + + +require_once("views/page_tail.php"); +?> \ No newline at end of file