function showFormMassiveAction(MassiveAction $ma)
 {
     $pbConfig = new PluginBarcodeConfig();
     echo '<center>';
     echo '<strong>';
     echo __('It will generate only elements have defined field:', 'barcode') . ' ';
     if (key($ma->items) == 'Ticket') {
         echo __('Ticket number', 'barcode');
     } else {
         echo __('Inventory number');
     }
     echo '</strong>';
     echo '<table>';
     echo '<tr>';
     echo '<td>';
     $config = $pbConfig->getConfigType();
     echo __('Type', 'barcode') . " : </td><td>";
     $pbConfig->showTypeSelect($config['type'], array('QRcode' => 'QRcode'));
     echo '</td>';
     echo '</tr>';
     echo '</table>';
     echo '<br/>';
     PluginBarcodeBarcode::commonShowMassiveAction();
 }
 function showFormMassiveAction()
 {
     echo '<input type="hidden" name="type" value="QRcode" />';
     echo '<center>';
     echo '<table>';
     echo '<tr>';
     echo '<td>';
     echo __('Serial number') . " : </td><td>";
     Dropdown::showYesNo("serialnumber", 1, -1, array('width' => '100'));
     echo '</td>';
     echo '</tr>';
     echo '<tr>';
     echo '<td>';
     echo __('Inventory number') . " : </td><td>";
     Dropdown::showYesNo("inventorynumber", 1, -1, array('width' => '100'));
     echo '</td>';
     echo '</tr>';
     echo '<tr>';
     echo '<td>';
     echo __('ID') . " : </td><td>";
     Dropdown::showYesNo("id", 1, -1, array('width' => '100'));
     echo '</td>';
     echo '</tr>';
     echo '<tr>';
     echo '<td>';
     echo __('UUID') . " : </td><td>";
     Dropdown::showYesNo("uuid", 1, -1, array('width' => '100'));
     echo '</td>';
     echo '</tr>';
     echo '<tr>';
     echo '<td>';
     echo __('Name') . " : </td><td>";
     Dropdown::showYesNo("name", 1, -1, array('width' => '100'));
     echo '</td>';
     echo '</tr>';
     echo '<tr>';
     echo '<td>';
     echo __('Web page of the device') . " : </td><td>";
     Dropdown::showYesNo("url", 1, -1, array('width' => '100'));
     echo '</td>';
     echo '</tr>';
     echo '<tr>';
     echo '<td>';
     echo __('Date QRcode') . " (" . date('Y-m-d') . ") : </td><td>";
     Dropdown::showYesNo("qrcodedate", 1, -1, array('width' => '100'));
     echo '</td>';
     echo '</tr>';
     echo '</table>';
     echo '<br/>';
     PluginBarcodeBarcode::commonShowMassiveAction();
 }
示例#3
0
 function showFormMassiveAction()
 {
     $pbConfig = new PluginBarcodeConfig();
     echo '<center>';
     echo '<table>';
     echo '<tr>';
     echo '<td>';
     $config = $pbConfig->getConfigType();
     echo __('Type', 'barcode') . " : </td><td>";
     $pbConfig->showTypeSelect($config['type']);
     echo '</td>';
     echo '</tr>';
     echo '</table>';
     echo '<br/>';
     PluginBarcodeBarcode::commonShowMassiveAction();
 }