$computer = new Computer();
-$state_sql = "";
-if (($state != "") AND ($state != "0")) {
- $state_sql = " AND `states_id` = '".$state."' ";
-}
-
$itemtype = 'Computer';
$table_item = getTableForItemType($itemtype);
return $svg;
}
-echo "\n<span class='big b'>Ordinateurs par implantation</span><br><br>";
+//echo "\n<span class='big b'>Ordinateurs par implantation</span><br><br>";
echo "<table class='tab_cadrehov'>";
echo "<tr class='tab_bg_1'><th rowspan='2' colspan='2'>Implantation</th>";
echo "<th colspan='2'>".svg_circle('red')." Serveurs</th>";
echo "<tr class='tab_bg_1'><th>Total</th><th>Production</th>";
echo "<th>Total</th><th>Attribué</th><th>Total</th><th>Attribué</th></tr>\n";
+$grand_serveurs_total = 0; $grand_serveurs_prod = 0;
+$grand_internes_total = 0; $grand_internes_prod = 0;
+$grand_publics_total = 0; $grand_publics_prod = 0;
+$grand_total = 0; $grand_virtuels_total = 0;
+$grand_autres_total = 0;
# récupération de la liste des régions
-$grand_total = 0;
$query = "SELECT id FROM glpi_entities WHERE (id=0 OR entities_id=0)";
$query .= " ".getEntitiesRestrictRequest("AND", "glpi_entities")." ORDER BY name";
$region_result = $DB->query($query);