static function commonShowMassiveAction()
 {
     $pbBarcode = new PluginBarcodeBarcode();
     $pbConfig = new PluginBarcodeConfig();
     $config = $pbConfig->getConfigType();
     echo '<table>';
     echo '<tr>';
     echo '<td>';
     echo "<br/>" . __('Page size', 'barcode') . " : </td><td>";
     $pbBarcode->showSizeSelect($config['size']);
     echo '</td>';
     echo '</tr>';
     echo '<tr>';
     echo '<td>';
     echo "<br/>" . __('Orientation', 'barcode') . " : </td><td>";
     $pbBarcode->showOrientationSelect($config['orientation']);
     echo '</td>';
     echo '</tr>';
     echo '<tr>';
     echo '<td>';
     echo __('Not use first xx barcodes', 'barcode') . " : </td><td>";
     Dropdown::showNumber("eliminate", array('width' => '100'));
     echo '</td>';
     echo '</tr>';
     echo '<tr>';
     echo '<td>';
     echo __('Display border', 'barcode') . " : </td><td>";
     Dropdown::showYesNo("border", 1, -1, array('width' => '100'));
     echo '</td>';
     echo '</tr>';
     echo '</table>';
     echo '</center>';
     echo "<br/><input type='submit' value='" . __('Create', 'barcode') . "' class='submit'>";
 }
 function showFormConfigType($p_type = NULL)
 {
     global $CFG_GLPI;
     $pbBarcode = new PluginBarcodeBarcode();
     if (is_null($p_type)) {
         $type = $this->getConfig();
     } else {
         $type = $p_type;
     }
     $config = $this->getConfigType($type);
     echo "<form name='form' method='post'\n                  action='" . $CFG_GLPI['root_doc'] . "/plugins/barcode/front/config_type.form.php'>";
     echo "<input type='hidden' name='type' value='" . $type . "'>";
     echo "<div align='center'>";
     echo "<table class='tab_cadre' >";
     echo "<tr><th colspan='4'>" . $type . "</th></tr>";
     echo "<tr class='tab_bg_1'>";
     echo "<td>" . __('Page size', 'barcode') . "</td><td>";
     $pbBarcode->showSizeSelect($config['size']);
     echo "</td>";
     echo "<td>" . __('Orientation', 'barcode') . "</td><td>";
     $pbBarcode->showOrientationSelect($config['orientation']);
     echo "</td>";
     echo "</tr>";
     echo "<tr><th colspan='4'>" . __('Margins', 'barcode') . "</th></tr>";
     echo "<tr class='tab_bg_1'>";
     echo "<td>" . __('Top', 'barcode') . "</td><td>";
     echo "<input type='text' size='20' name='marginTop' value='" . $config['marginTop'] . "'>";
     echo "</td>";
     echo "<td>" . __('Bottom', 'barcode') . "</td><td>";
     echo "<input type='text' size='20' name='marginBottom' value='" . $config['marginBottom'] . "'>";
     echo "</td>";
     echo "</tr>";
     echo "<tr class='tab_bg_1'>";
     echo "<td>" . __('Left', 'barcode') . "</td><td>";
     echo "<input type='text' size='20' name='marginLeft' value='" . $config['marginLeft'] . "'>";
     echo "</td>";
     echo "<td>" . __('Right', 'barcode') . "</td><td>";
     echo "<input type='text' size='20' name='marginRight' value='" . $config['marginRight'] . "'>";
     echo "</td>";
     echo "</tr>";
     echo "<tr class='tab_bg_1'>";
     echo "<td>" . __('Inner horizontal', 'barcode') . "</td><td>";
     echo "<input type='text' size='20' name='marginHorizontal' value='" . $config['marginHorizontal'] . "'>";
     echo "</td>";
     echo "<td>" . __('Inner vertical', 'barcode') . "</td><td>";
     echo "<input type='text' size='20' name='marginVertical' value='" . $config['marginVertical'] . "'>";
     echo "</td>";
     echo "</tr>";
     echo "<tr><th colspan='4'>" . __('Barcodes sizes', 'barcode') . "</th></tr>";
     echo "<tr class='tab_bg_1'>";
     echo "<td>" . __('Maximum width', 'barcode') . "</td><td>";
     echo "<input type='text' size='20' name='maxCodeWidth' value='" . $config['maxCodeWidth'] . "'>";
     echo "</td>";
     echo "<td>" . __('Maximum height', 'barcode') . "</td><td>";
     echo "<input type='text' size='20' name='maxCodeHeight' value='" . $config['maxCodeHeight'] . "'>";
     echo "</td>";
     echo "</tr>";
     echo "<tr><td class='tab_bg_1' colspan='4' align='center'><input type='submit' value='" . __('Save') . "' class='submit'></td></tr>";
     echo "</table>";
     echo "</div>";
     Html::closeForm();
 }