/** * @since version 0.85 * * @see CommonDBTM::showMassiveActionsSubForm() **/ static function showMassiveActionsSubForm(MassiveAction $ma) { switch ($ma->getAction()) { case 'duplicate': Entity::dropdown(); echo "<br><br>"; echo Html::submit(_x('button', 'Duplicate'), array('name' => 'massiveaction')) . "</span>"; return true; } return parent::showMassiveActionsSubForm($ma); }
/** * @since version 0.85 * * @see CommonDBTM::showMassiveActionsSubForm() * @param MassiveAction $ma * @return bool|false */ static function showMassiveActionsSubForm(MassiveAction $ma) { switch ($ma->getAction()) { case 'plugin_ocsinventoryng_import': Entity::dropdown(array('name' => 'entity')); echo " " . Html::submit(_x('button', 'Post'), array('name' => 'massiveaction')); return true; /*case 'plugin_ocsinventoryng_link': Computer::dropdown(array('name' => 'computers_id')); echo " ". Html::submit(_x('button','Post'), array('name' => 'massiveaction')); return true;*/ /*case 'plugin_ocsinventoryng_link': Computer::dropdown(array('name' => 'computers_id')); echo " ". Html::submit(_x('button','Post'), array('name' => 'massiveaction')); return true;*/ case 'plugin_ocsinventoryng_replayrules': case 'plugin_ocsinventoryng_delete': echo " " . Html::submit(_x('button', 'Post'), array('name' => 'massiveaction')); return true; } return parent::showMassiveActionsSubForm($ma); }
/** * @since version 0.90 * * @see CommonDBTM::showMassiveActionsSubForm() **/ static function showMassiveActionsSubForm(MassiveAction $ma) { switch ($ma->getAction()) { case 'merge': echo " " . $_SESSION['glpiactive_entity_shortname']; echo "<br><br>" . Html::submit(_x('button', 'Merge'), 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 'move_under': $itemtype = $ma->getItemType(true); _e('As child of'); Dropdown::show($itemtype, array('name' => 'parent', 'comments' => 0, 'entity' => $_SESSION['glpiactive_entity'])); echo "<br><br><input type='submit' name='massiveaction' class='submit' value='" . _sx('button', 'Move') . "'>\n"; return true; } return parent::showMassiveActionsSubForm($ma); }