/** * @since version 0.84 * * @see CommonDBTM::showSpecificMassiveActionsParameters() **/ function showSpecificMassiveActionsParameters($input = array()) { switch ($input['action']) { case "move_license": if (isset($input['options'])) { $input['options'] = Toolbox::decodeArrayFromInput($input['options']); if (isset($input['options']['move'])) { SoftwareLicense::dropdown(array('condition' => "`glpi_softwarelicenses`.`softwares_id`\n = '" . $input['options']['move']['softwares_id'] . "'", 'used' => $input['options']['move']['used'])); echo "<br><br><input type='submit' name='massiveaction' value=\"" . _sx('button', 'Move') . "\" class='submit'> "; return true; } } return false; default: return parent::showSpecificMassiveActionsParameters($input); } return false; }
/** * @since version 0.85 * * @see CommonDBTM::showMassiveActionsSubForm() **/ static function showMassiveActionsSubForm(MassiveAction $ma) { global $CFG_GLPI; $input = $ma->getInput(); switch ($ma->getAction()) { case 'move_license': if (isset($input['options'])) { if (isset($input['options']['move'])) { SoftwareLicense::dropdown(array('condition' => "`glpi_softwarelicenses`.`softwares_id`\n = '" . $input['options']['move']['softwares_id'] . "'", 'used' => $input['options']['move']['used'])); echo Html::submit(_x('button', 'Post'), array('name' => 'massiveaction')); return true; } } return false; } return parent::showMassiveActionsSubForm($ma); }