function showForm($target, $items_id, $itemtype)
 {
     global $DB;
     $itemtype = $itemtype . "Model";
     $query = "SELECT `id` " . " FROM `" . $this->getTable() . "` " . " WHERE `items_id` = '{$items_id}' " . " AND `itemtype` = '{$itemtype}'  ";
     $result = $DB->query($query);
     $number = $DB->numrows($result);
     if ($number != 0) {
         $data = $DB->fetch_array($result);
         $id = $data["id"];
         if ($id > 0) {
             $spotted = true;
             $this->getFromDB($id);
         } else {
             $spotted = true;
             $this->getEmpty();
         }
         $PluginRacksConfig = new PluginRacksConfig();
         echo "<br><div align='center'>";
         echo "<form method='post' action=\"{$target}\">";
         echo "<table class='tab_cadre_fixe' width='50%' cellpadding='5'>";
         echo "<tr><th colspan='2'>" . __('Specifications', 'racks') . "</th></tr>";
         echo "<tr class='tab_bg_1'>";
         echo "<td>" . __('Power supply 1', 'racks') . "</td>";
         echo "<td class='center'>";
         Dropdown::show('PluginRacksConnection', array('name' => "first_powersupply", 'value' => $this->fields["first_powersupply"]));
         echo "</td>";
         echo "</tr>";
         $PluginRacksItemSpecification = new PluginRacksItemSpecification();
         if ($PluginRacksItemSpecification->checkAlimNumber($id) > 1) {
             echo "<tr class='tab_bg_1'>";
             echo "<td>" . __('Power supply 2', 'racks') . "</td>";
             echo "<td class='center'>";
             Dropdown::show('PluginRacksConnection', array('name' => "second_powersupply", 'value' => $this->fields["second_powersupply"]));
             echo "</td>";
             echo "</tr>";
         }
         echo "<tr class='tab_bg_1'>";
         echo "<td>" . __('Total current', 'racks') . " (" . __('amps', 'racks') . ")</td>";
         echo "<td class='center'>";
         echo "<input type='text' name='amps'\n                                 value=\"" . Html::formatNumber($this->fields["amps"], true) . "\" size='10'>";
         echo "</td>";
         echo "</tr>";
         echo "<tr class='tab_bg_1'>";
         echo "<td>" . __('Calorific waste', 'racks') . " (";
         // Dissipation calorifique
         $PluginRacksConfig->getUnit("dissipation");
         echo ")</td>";
         echo "<td class='center'>";
         echo "<input type='text' name='dissipation'\n                           value=\"" . Html::formatNumber($this->fields["dissipation"], true) . "\" size='10'>";
         echo "</td>";
         echo "</tr>";
         echo "<tr class='tab_bg_1'>";
         echo "<td>" . __('Flow rate', 'racks') . " (";
         // Débit d'air frais
         $PluginRacksConfig->getUnit("rate");
         echo ")</td>";
         echo "<td class='center'>";
         echo "<input type='text' name='flow_rate'\n                           value=\"" . Html::formatNumber($this->fields["flow_rate"], true) . "\" size='10'>";
         echo "</td>";
         echo "</tr>";
         echo "<tr class='tab_bg_1'>";
         echo "<td>" . __('Weight', 'racks') . " (";
         // poids
         $PluginRacksConfig->getUnit("weight");
         echo ")</td>";
         echo "<td class='center'>";
         echo "<input type='text' name='weight'\n                              value=\"" . Html::formatNumber($this->fields["weight"], true) . "\" size='10'>";
         echo "</td>";
         echo "</tr>";
         echo "<tr>";
         echo "<td class='tab_bg_2 top' colspan='2'><div align='center'>";
         echo "<input type='hidden' name='id' value='" . $id . "'>";
         echo "<input type='submit' name='update' value='" . _sx('button', 'Save') . "' class='submit'>";
         echo "</td>";
         echo "</tr>";
         echo "</td></tr>";
         echo "</table>";
         Html::closeForm();
         echo "</div>";
     }
 }