$num_of_galaxies) $galaxy_up = $num_of_galaxies; for ($i=$galaxy_down ; $i<$galaxy_up ; $i++){ echo ""; } ?> $num_of_systems) $up = $num_of_systems; echo ""."\n"; echo "\t".""; for ($galaxy=$galaxy_down ; $galaxy<$galaxy_up ; $galaxy++) { $link_colonized = ""; $colonized = "-"; $link_free = ""; $free = "-"; if ($galaxy>$num_of_galaxies) { echo ""; continue; } if ($galaxy_statistic[$galaxy][$system]["planet"] > 0) { $link_colonized = "onclick=\"window.location = 'index.php?action=galaxy_sector&"; $link_colonized .= "galaxy=".$galaxy."&"; $link_colonized .= "system_down=".$system."&system_up=".$up; $link_colonized .= "';\""; if ($galaxy_statistic[$galaxy][$system]["new"]) $colonized = "".$galaxy_statistic[$galaxy][$system]["planet"].""; else $colonized = "".$galaxy_statistic[$galaxy][$system]["planet"].""; } if ($galaxy_statistic[$galaxy][$system]["free"] > 0) { $link_free = "onclick=\"window.location = 'index.php?action=search&type_search=colonization&"; $link_free .= "galaxy_down=".$galaxy."&galaxy_up=".$galaxy."&"; $link_free .= "system_down=".$system."&system_up=".$up."&"; $link_free .= "row_down&row_up"; $link_free .= "';\""; $free = "".$galaxy_statistic[$galaxy][$system]["free"].""; } echo ""; echo ""."\n"; } echo "\t".""; echo ""."\n"; } $galaxy_down = $galaxy_up; }while($galaxy_up<$num_of_galaxies); $legend = "
Etat de la base de donnes
  "; if ($i<=$num_of_galaxies) echo "G$i"; echo " 
".$system." - ".$up." ".$colonized."".$free."".$system." - ".$up."
"; $legend .= ""; $legend .= ""; $legend .= ""; $legend .= ""; $legend .= "
Lgende
Plantes rpertoriesxx
Plantes colonisablesxx
Plante mise jour rcemmentxx
"; $legend = htmlentities($legend); ?> Lgende
sql_query($request); list($planetimport, $spyimport, $rankimport, $search) = $db->sql_fetch_row($result); if ($planetimport == 0) $planetimport = 1; if ($spyimport == 0) $spyimport = 1; if ($rankimport == 0) $rankimport = 1; if ($search == 0) $search = 1; foreach ($user_statistic as $v) { $ratio_planet = ($v["planet_added_web"] + $v["planet_added_ogs"]) / $planetimport; $ratio_spy = ($v["spy_added_web"] + $v["spy_added_ogs"]) / $spyimport; $ratio_rank = ($v["rank_added_web"] + $v["rank_added_ogs"]) / $rankimport; $ratio = ($ratio_planet * 4 + $ratio_spy * 2 + $ratio_rank) / (3 + 2 + 1); $ratio_planet_penality = ($v["planet_added_web"] + $v["planet_added_ogs"] - $v["planet_exported"]) / $planetimport; $ratio_spy_penality = (($v["spy_added_web"] + $v["spy_added_ogs"]) - $v["spy_exported"]) / $spyimport; $ratio_rank_penality = (($v["rank_added_web"] + $v["rank_added_ogs"]) - $v["rank_exported"]) / $rankimport; $ratio_penality = ($ratio_planet_penality * 4 + $ratio_spy_penality * 2 + $ratio_rank_penality) / (3 + 2 + 1); $ratio_search = $v["search"] / $search; $ratio_searchpenality = ($ratio - $ratio_search); $couleur = $ratio_penality > 0 ? "lime" : "red"; $result = ($ratio + $ratio_penality + $ratio_searchpenality) * 1000; if ($result < 0) $color = "red"; elseif ($result == 0) $color = "white"; elseif ($result < 100) $color = "orange"; else $color = "lime"; if ($enable_stat_view || ($v["user_name"] == $user_data["user_name"]) || $user_data["user_admin"] || $user_data["user_coadmin"]){ echo ""."\n"; echo "\t".""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""."\n"; echo ""."\n"; echo ""."\n"; } } if (sizeof($user_statistic) > 10) { ?> "; require_once("views/page_tail.php"); ?>
Pseudos Plantes Rapports d'espionnage Classement (lignes) Recherches
effectues
Ratio
  Web  OGS  OGS  Web  OGS  OGS  Web  OGS  OGS     
".$v["user_name"]." "; if ($enable_members_view || $user_data["user_admin"] || $user_data["user_coadmin"]) echo $v["here"]; echo "".formate_number($v["planet_added_web"])."".formate_number($v["planet_added_ogs"])."".formate_number($v["planet_exported"])."".formate_number($v["spy_added_web"])."".formate_number($v["spy_added_ogs"])."".formate_number($v["spy_exported"])."".formate_number($v["rank_added_web"])."".formate_number($v["rank_added_ogs"])."".formate_number($v["rank_exported"])."".formate_number($v["search"])."".formate_number($result)."
  Web OGS  OGS  Web OGS  OGS  Web OGS  OGS     
Pseudos Plantes Rapports d'espionnage Classement (lignes) Recherches effectues Ratio
(*) connect sur le serveur
(**) connect avec OGS et/ou sur le serveur