/** * @see CommonDBTM::showSpecificMassiveActionsParameters() **/ function showSpecificMassiveActionsParameters($input = array()) { switch ($input['action']) { case "add_followup": TicketFollowup::showFormMassiveAction(); return true; case "link_ticket": $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><input type='submit' name='massiveaction' class='submit' value='" . _sx('button', 'Post') . "'>"; return true; case "submit_validation": TicketValidation::showFormMassiveAction(); return true; default: return parent::showSpecificMassiveActionsParameters($input); } return false; }
break; case "move_rule": echo "<select name='move_type'>"; echo "<option value='after' selected>" . $LANG['buttons'][47] . "</option>"; echo "<option value='before'>" . $LANG['buttons'][46] . "</option>"; echo "</select> "; if (isset($_POST['entity_restrict'])) { $condition = $_POST['entity_restrict']; } else { $condition = ""; } Rule::dropdown(array('sub_type' => $_POST['sub_type'], 'name' => "ranking", 'entity_restrict' => $condition)); echo "<input type='submit' name='massiveaction' class='submit' value='" . $LANG['buttons'][2] . "'>\n"; break; case "add_followup": TicketFollowup::showFormMassiveAction(); break; case "add_task": TicketTask::showFormMassiveAction(); break; case "add_actor": $types = array(0 => DROPDOWN_EMPTY_VALUE, Ticket::REQUESTER => $LANG['job'][4], Ticket::OBSERVER => $LANG['common'][104], Ticket::ASSIGN => $LANG['job'][5]); $rand = Dropdown::showFromArray('actortype', $types); $paramsmassaction = array('actortype' => '__VALUE__'); ajaxUpdateItemOnSelectEvent("dropdown_actortype{$rand}", "show_massiveaction_field", $CFG_GLPI["root_doc"] . "/ajax/dropdownMassiveActionAddActor.php", $paramsmassaction); echo "<span id='show_massiveaction_field'> </span>\n"; break; case "link_ticket": $rand = Ticket_Ticket::dropdownLinks('link'); echo " " . $LANG['job'][38] . " " . $LANG['common'][2] . " : "; echo "<input type='text' name='tickets_id_1' value='' size='10'>\n";