function plugin_shellcommands_MassiveActionsDisplay($options = array()) { $PluginShellcommandsShellcommand = new PluginShellcommandsShellcommand(); if (in_array($options['itemtype'], PluginShellcommandsShellcommand::getTypes(true))) { $PluginShellcommandsShellcommand->dropdownCommands($options['itemtype']); echo " <input type=\"submit\" name=\"massiveaction\" class=\"submit\" value=\"" . _sx('button', 'Post') . "\" >"; } return ""; }
static function showMassiveActionsSubForm(MassiveAction $ma) { switch ($ma->getAction()) { case "install": Dropdown::showItemTypes("item_item", self::getTypes(true)); echo Html::submit(_x('button', 'Post'), array('name' => 'massiveaction')); return true; break; case "uninstall": Dropdown::showItemTypes("item_item", self::getTypes(true)); echo Html::submit(_x('button', 'Post'), array('name' => 'massiveaction')); return true; break; case 'generate': $PluginShellcommandsShellcommand = new PluginShellcommandsShellcommand(); $itemtype = $ma->getItemtype(false); if (in_array($itemtype, PluginShellcommandsShellcommand::getTypes(true))) { $PluginShellcommandsShellcommand->dropdownCommands($itemtype); echo "<br><br>"; } break; } return parent::showMassiveActionsSubForm($ma); }