/** * @since version 0.85 * * @see CommonDBTM::showMassiveActionsSubForm() **/ static function showMassiveActionsSubForm(MassiveAction $ma) { switch ($ma->getAction()) { case 'add': $rand = Ticket_Ticket::dropdownLinks('link'); printf(__('%1$s: %2$s'), __('Ticket'), __('ID')); echo " <input type='text' name='tickets_id_1' value='' size='10'>\n"; echo "<br><br>"; echo "<br><br><input type='submit' name='massiveaction' class='submit' value='" . _sx('button', 'Post') . "'>"; 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 "solveticket": $change = new Change(); $input = $ma->getInput(); if (isset($input['changes_id']) && $change->getFromDB($input['changes_id'])) { Ticket::showMassiveSolutionForm($change->getEntityID()); echo "<br><br>"; echo Html::submit(_x('button', 'Post'), array('name' => 'massiveaction')); return true; } return false; } 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 '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); }
/** * @since version 0.85 * * @see CommonDBTM::showMassiveActionsSubForm() **/ static function showMassiveActionsSubForm(MassiveAction $ma) { global $CFG_GLPI; switch ($ma->getAction()) { case 'add_task': $tasktype = 'TicketTask'; if ($ttype = getItemForItemtype($tasktype)) { $ttype->showFormMassiveAction(); return true; } return false; case "solveticket": $problem = new Problem(); $input = $ma->getInput(); if (isset($input['problems_id']) && $problem->getFromDB($input['problems_id'])) { Ticket::showMassiveSolutionForm($problem->getEntityID()); echo "<br><br>"; echo Html::submit(_x('button', 'Post'), array('name' => 'massiveaction')); return true; } return false; } return parent::showMassiveActionsSubForm($ma); }
/** * @since version 0.85 * * @see CommonDBTM::showMassiveActionsSubForm() **/ static function showMassiveActionsSubForm(MassiveAction $ma) { switch ($ma->getAction()) { case 'add_item': static::showFormMassiveAction($ma); return true; case 'delete_item': static::showFormMassiveAction($ma); 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 'add': Software::dropdownSoftwareToInstall('peer_softwareversions_id', $_SESSION["glpiactive_entity"]); echo Html::submit(_x('button', 'Post'), array('name' => 'massiveaction')) . "</span>"; return true; case 'move_version': $input = $ma->getInput(); if (isset($input['options'])) { if (isset($input['options']['move'])) { $options = array('softwares_id' => $input['options']['move']['softwares_id']); if (isset($input['options']['move']['used'])) { $options['used'] = $input['options']['move']['used']; } SoftwareVersion::dropdown($options); echo Html::submit(_x('button', 'Post'), array('name' => 'massiveaction')); return true; } } return false; } return parent::showMassiveActionsSubForm($ma); }