Beispiel #1
0
 /**
  * @see CommonDBTM::showSpecificMassiveActionsParameters()
  **/
 function showSpecificMassiveActionsParameters($input = array())
 {
     global $CFG_GLPI;
     switch ($input['action']) {
         case "add_user_group":
         case "add_supervisor_group":
         case "add_delegatee_group":
             $gu = new Group_User();
             return $gu->showSpecificMassiveActionsParameters($input);
         case "changegroup":
             if (isset($input['is_tech']) && isset($input['check_items_id']) && isset($input['check_itemtype'])) {
                 if ($group = getItemForItemtype($input['check_itemtype'])) {
                     if ($group->getFromDB($input['check_items_id'])) {
                         self::dropdown(array('entity' => $group->fields["entities_id"], 'used' => array($group->fields["id"]), 'condition' => $input['is_tech'] ? '`is_assign`' : '`is_itemgroup`'));
                         echo "<br><br><input type='submit' name='massiveaction' class='submit' value='" . _sx('button', 'Move') . "'>";
                         return true;
                     }
                 }
             }
             break;
         default:
             return parent::showSpecificMassiveActionsParameters($input);
     }
     return false;
 }