/** * @since version 0.85 * * @see CommonDBTM::showMassiveActionsSubForm() **/ static function showMassiveActionsSubForm(MassiveAction $ma) { switch ($ma->getAction()) { case 'updatepages': $input = $ma->getInput(); if (!isset($input['maxpages'])) { $input['maxpages'] = ''; } echo "<input type='text' name='pages' value=\"" . $input['maxpages'] . "\" size='6'>"; echo "<br><br>" . Html::submit(_x('button', 'Update'), array('name' => 'massiveaction')); return true; } return parent::showMassiveActionsSubForm($ma); }
/** * @since version 0.85 * * @see CommonDBTM::showMassiveActionsSubForm() **/ static function showMassiveActionsSubForm(MassiveAction $ma) { global $CFG_GLPI; switch ($ma->getAction()) { case 'transform_to': Dropdown::showItemTypes('transform_to', NetworkPort::getNetworkPortInstantiations(), array('value' => 'NetworkPortEthernet')); echo "<br><br>"; echo Html::submit(_x('button', 'Post'), array('name' => 'massiveaction')) . "</span>"; return true; } return parent::showMassiveActionsSubForm($ma); }
/** * @since version 0.85 * * @see CommonDBTM::showMassiveActionsSubForm() **/ static function showMassiveActionsSubForm(MassiveAction $ma) { global $CFG_GLPI; $input = $ma->getInput(); switch ($ma->getAction()) { case 'give': if (isset($input["entities_id"])) { Dropdown::showSelectItemFromItemtypes(array('itemtype_name' => 'give_itemtype', 'items_id_name' => 'give_items_id', 'entity_restrict' => $input["entities_id"], 'itemtypes' => $CFG_GLPI["consumables_types"])); echo "<br><br>" . Html::submit(_x('button', 'Give'), array('name' => 'massiveaction')); return true; } } return parent::showMassiveActionsSubForm($ma); }
/** * @since version 0.85 * * @see CommonDBTM::showMassiveActionsSubForm() **/ static function showMassiveActionsSubForm(MassiveAction $ma) { switch ($ma->getAction()) { case 'submit_validation': static::showFormMassiveAction(); return true; } return parent::showMassiveActionsSubForm($ma); }