當前位置: 首頁>>代碼示例>>PHP>>正文


PHP CommonDBTM::showSpecificMassiveActionsParameters方法代碼示例

本文整理匯總了PHP中CommonDBTM::showSpecificMassiveActionsParameters方法的典型用法代碼示例。如果您正苦於以下問題:PHP CommonDBTM::showSpecificMassiveActionsParameters方法的具體用法?PHP CommonDBTM::showSpecificMassiveActionsParameters怎麽用?PHP CommonDBTM::showSpecificMassiveActionsParameters使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在CommonDBTM的用法示例。


在下文中一共展示了CommonDBTM::showSpecificMassiveActionsParameters方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: showSpecificMassiveActionsParameters

 /**
  * @see CommonDBTM::showSpecificMassiveActionsParameters()
  **/
 function showSpecificMassiveActionsParameters($input = array())
 {
     switch ($input['action']) {
         case "import_email":
             Entity::dropdown();
             echo "<br><br><input type='submit' name='massiveaction' class='submit' value='" . _sx('button', 'Import') . "'>";
             return true;
         default:
             return parent::showSpecificMassiveActionsParameters($input);
     }
     return false;
 }
開發者ID:gaforeror,項目名稱:glpi,代碼行數:15,代碼來源:notimportedemail.class.php

示例2: showSpecificMassiveActionsParameters

 /**
  * @see CommonDBTM::showSpecificMassiveActionsParameters()
  **/
 function showSpecificMassiveActionsParameters($input = array())
 {
     global $CFG_GLPI;
     switch ($input['action']) {
         case "change_authtype":
             $rand = Auth::dropdown(array('name' => 'authtype'));
             $paramsmassaction = array('authtype' => '__VALUE__');
             Ajax::updateItemOnSelectEvent("dropdown_authtype{$rand}", "show_massiveaction_field", $CFG_GLPI["root_doc"] . "/ajax/dropdownMassiveActionAuthMethods.php", $paramsmassaction);
             echo "<span id='show_massiveaction_field'><br><br>";
             echo "<input type='submit' name='massiveaction' class='submit' value='" . _sx('button', 'Post') . "'>";
             echo "</span>\n";
             return true;
         case "add_user_group":
             $gu = new Group_User();
             return $gu->showSpecificMassiveActionsParameters($input);
         case "add_userprofile":
             Entity::dropdown(array('entity' => $_SESSION['glpiactiveentities']));
             echo ".&nbsp;" . _n('Profile', 'Profiles', 1) . "&nbsp;";
             Profile::dropdownUnder();
             echo ".&nbsp;" . __('Recursive') . "&nbsp;";
             Dropdown::showYesNo("is_recursive", 0);
             echo "<br><br><input type='submit' name='massiveaction' class='submit' value='" . _sx('button', 'Add') . "'>";
             return true;
         default:
             return parent::showSpecificMassiveActionsParameters($input);
     }
     return false;
 }
開發者ID:geldarr,項目名稱:hack-space,代碼行數:31,代碼來源:user.class.php

示例3: showSpecificMassiveActionsParameters

 /**
  * @see CommonDBTM::showSpecificMassiveActionsParameters()
  **/
 function showSpecificMassiveActionsParameters($input = array())
 {
     switch ($input['action']) {
         case "add_contact_supplier":
             $contactsupplier = new Contact_Supplier();
             return $contactsupplier->showSpecificMassiveActionsParameters($input);
         default:
             return parent::showSpecificMassiveActionsParameters($input);
     }
     return false;
 }
開發者ID:geldarr,項目名稱:hack-space,代碼行數:14,代碼來源:supplier.class.php

示例4: showSpecificMassiveActionsParameters

 function showSpecificMassiveActionsParameters($input = array())
 {
     switch ($input['action']) {
         case "Install":
             Dropdown::showAllItems("item_item", 0, 0, -1, self::getTypes());
             echo "<input type=\"submit\" name=\"massiveaction\" class=\"submit\" value='" . _sx('button', 'Post') . "'>";
             return true;
             break;
         case "Desinstall":
             Dropdown::showAllItems("item_item", 0, 0, -1, self::getTypes());
             echo "<input type=\"submit\" name=\"massiveaction\" class=\"submit\" value='" . _sx('button', 'Post') . "'>";
             return true;
             break;
         case "Duplicate":
             Dropdown::show('Entity');
             echo "&nbsp;<input type=\"submit\" name=\"massiveaction\" class=\"submit\" value='" . _sx('button', 'Post') . "'>";
             return true;
             break;
         case "Transfert":
             Dropdown::show('Entity');
             echo "&nbsp;<input type=\"submit\" name=\"massiveaction\" class=\"submit\" value='" . _sx('button', 'Post') . "'>";
             return true;
             break;
         default:
             return parent::showSpecificMassiveActionsParameters($input);
             break;
     }
     return false;
 }
開發者ID:geldarr,項目名稱:hack-space,代碼行數:29,代碼來源:task.class.php

示例5: showSpecificMassiveActionsParameters

 function showSpecificMassiveActionsParameters($input = array())
 {
     switch ($input['action']) {
         case "Transfert":
             Dropdown::show('Entity');
             echo "&nbsp;<input type=\"submit\" name=\"massiveaction\" class=\"submit\" value='" . __s('Post') . "'>";
             return true;
             break;
         default:
             return parent::showSpecificMassiveActionsParameters($input);
             break;
     }
     return false;
 }
開發者ID:geldarr,項目名稱:hack-space,代碼行數:14,代碼來源:ideabox.class.php

示例6: showSpecificMassiveActionsParameters

 /**
  * @see CommonDBTM::showSpecificMassiveActionsParameters()
  **/
 function showSpecificMassiveActionsParameters($input = array())
 {
     switch ($input['action']) {
         case "connect":
         case "disconnect":
             $ci = new Computer_Item();
             return $ci->showSpecificMassiveActionsParameters($input);
         default:
             return parent::showSpecificMassiveActionsParameters($input);
     }
     return false;
 }
開發者ID:gaforeror,項目名稱:glpi,代碼行數:15,代碼來源:peripheral.class.php

示例7: showSpecificMassiveActionsParameters

 function showSpecificMassiveActionsParameters($input = array())
 {
     switch ($input['action']) {
         case "Send":
             echo "&nbsp;<input type=\"submit\" name=\"massiveaction\" class=\"submit\" value='" . _sx('button', 'Post') . "'>";
             return true;
             break;
         default:
             return parent::showSpecificMassiveActionsParameters($input);
             break;
     }
     return false;
 }
開發者ID:geldarr,項目名稱:hack-space,代碼行數:13,代碼來源:directory.class.php

示例8: showSpecificMassiveActionsParameters

 function showSpecificMassiveActionsParameters($input = array())
 {
     $PluginResourcesChecklist = new PluginResourcesChecklist();
     $PluginResourcesContractType = new PluginResourcesContractType();
     switch ($input['action']) {
         case "Generate_Rule":
             $PluginResourcesChecklist->dropdownChecklistType("checklist_type", $_SESSION["glpiactive_entity"]);
             echo "&nbsp;";
             RuleCriteria::dropdownConditions("PluginResourcesRuleChecklist", array('criterion' => 'plugin_resources_contracttypes_id', 'allow_conditions' => array(Rule::PATTERN_IS, Rule::PATTERN_IS_NOT)));
             echo "&nbsp;";
             $PluginResourcesContractType->dropdownContractType("plugin_resources_contracttypes_id");
             echo "&nbsp;";
             echo "<input type=\"submit\" name=\"massiveaction\" class=\"submit\" value='" . _sx('button', 'Post') . "'>";
             return true;
             break;
         case "Transfert":
             Dropdown::show('Entity');
             echo "&nbsp;<input type=\"submit\" name=\"massiveaction\" class=\"submit\" value='" . _sx('button', 'Post') . "'>";
             return true;
             break;
         default:
             return parent::showSpecificMassiveActionsParameters($input);
             break;
     }
     return false;
 }
開發者ID:geldarr,項目名稱:hack-space,代碼行數:26,代碼來源:checklistconfig.class.php

示例9: showSpecificMassiveActionsParameters

 /**
  * @see CommonDBTM::showSpecificMassiveActionsParameters()
  **/
 function showSpecificMassiveActionsParameters($input = array())
 {
     global $CFG_GLPI;
     switch ($input['action']) {
         case "add_task":
             $tasktype = $input['itemtype'] . "Task";
             if ($ttype = getItemForItemtype($tasktype)) {
                 $ttype->showFormMassiveAction();
                 return true;
             }
             break;
         case "add_actor":
             $types = array(0 => Dropdown::EMPTY_VALUE, CommonITILActor::REQUESTER => __('Requester'), CommonITILActor::OBSERVER => __('Watcher'), CommonITILActor::ASSIGN => __('Assigned to'));
             $rand = Dropdown::showFromArray('actortype', $types);
             $paramsmassaction = array('actortype' => '__VALUE__');
             Ajax::updateItemOnSelectEvent("dropdown_actortype{$rand}", "show_massiveaction_field", $CFG_GLPI["root_doc"] . "/ajax/dropdownMassiveActionAddActor.php", $paramsmassaction);
             echo "<span id='show_massiveaction_field'>&nbsp;</span>\n";
             return true;
         default:
             return parent::showSpecificMassiveActionsParameters($input);
     }
     return false;
 }
開發者ID:geldarr,項目名稱:hack-space,代碼行數:26,代碼來源:commonitilobject.class.php

示例10: showSpecificMassiveActionsParameters

 /**
  * @see CommonDBTM::showSpecificMassiveActionsParameters()
  **/
 function showSpecificMassiveActionsParameters($input = array())
 {
     switch ($input['action']) {
         case "move_rule":
             echo "<select name='move_type'>";
             echo "<option value='after' selected>" . __('After') . "</option>";
             echo "<option value='before'>" . __('Before') . "</option>";
             echo "</select>&nbsp;";
             if (isset($input['entity_restrict'])) {
                 $condition = $input['entity_restrict'];
             } else {
                 $condition = "";
             }
             Rule::dropdown(array('sub_type' => $input['itemtype'], 'name' => "ranking", 'entity_restrict' => $condition));
             echo "<br><br><input type='submit' name='massiveaction' class='submit' value='" . _sx('button', 'Move') . "'>\n";
             return true;
         default:
             return parent::showSpecificMassiveActionsParameters($input);
     }
     return false;
 }
開發者ID:geldarr,項目名稱:hack-space,代碼行數:24,代碼來源:rule.class.php

示例11: showSpecificMassiveActionsParameters

 /**
  * @since version 0.84
  *
  * @see CommonDBTM::showSpecificMassiveActionsParameters()
  **/
 function showSpecificMassiveActionsParameters($input = array())
 {
     global $CFG_GLPI;
     switch ($input['action']) {
         case "give":
             if (isset($input["entities_id"])) {
                 Dropdown::showAllItems("give_items_id", 0, 0, $input["entities_id"], $CFG_GLPI["consumables_types"], false, false, 'give_itemtype');
                 echo "<br><br><input type='submit' class='submit' name='massiveaction' value='" . _sx('button', 'Give') . "'>";
                 return true;
             }
         default:
             return parent::showSpecificMassiveActionsParameters($input);
     }
     return false;
 }
開發者ID:gaforeror,項目名稱:glpi,代碼行數:20,代碼來源:consumable.class.php

示例12: showSpecificMassiveActionsParameters

 /**
  * @see CommonDBTM::showSpecificMassiveActionsParameters()
  **/
 function showSpecificMassiveActionsParameters($input = array())
 {
     global $CFG_GLPI;
     switch ($input['action']) {
         case "add_document_item":
             Dropdown::showAllItems("items_id", 0, 0, -1, $CFG_GLPI["document_types"], false, true, 'item_itemtype');
             echo "<br><br><input type='submit' name='massiveaction' class='submit' value='" . _sx('button', 'Add') . "'>";
             return true;
         case "remove_document_item":
             Dropdown::showAllItems("items_id", 0, 0, -1, $CFG_GLPI["document_types"], false, true, 'item_itemtype');
             echo "<br><br><input type='submit' name='massiveaction' class='submit' value='" . _sx('button', 'Delete permanently') . "'>";
             return true;
         default:
             return parent::showSpecificMassiveActionsParameters($input);
     }
     return false;
 }
開發者ID:geldarr,項目名稱:hack-space,代碼行數:20,代碼來源:document.class.php

示例13: showSpecificMassiveActionsParameters

 /**
  * @see CommonDBTM::showSpecificMassiveActionsParameters()
  **/
 function showSpecificMassiveActionsParameters($input = array())
 {
     switch ($input['action']) {
         case "install":
             Software::dropdownSoftwareToInstall("softwareversions_id", $_SESSION["glpiactive_entity"], 1);
             echo "<br><br><input type='submit' name='massiveaction' class='submit' value='" . __s('Install') . "'>";
             return true;
         case "connect":
             $ci = new Computer_Item();
             return $ci->showSpecificMassiveActionsParameters($input);
         default:
             return parent::showSpecificMassiveActionsParameters($input);
     }
     return false;
 }
開發者ID:geldarr,項目名稱:hack-space,代碼行數:18,代碼來源:computer.class.php

示例14: showSpecificMassiveActionsParameters

 /**
  * Display specific options add action button for massive actions
  *
  * Parameters must not be : itemtype, action, is_deleted, check_itemtype or check_items_id
  * @param $input array of input datas
  * @since version 0.84
  *
  * @return boolean if parameters displayed ?
  **/
 function showSpecificMassiveActionsParameters($input = array())
 {
     global $CFG_GLPI;
     switch ($input['action']) {
         case "deleteAll":
             echo "&nbsp;<input type=\"submit\" name=\"massiveaction\" class=\"submit\" value=\"" . __s('Post') . "\" >";
             return true;
             break;
         case "updateAll":
             echo "&nbsp;<select name='field' id='field'>";
             echo "<option value='0' selected>" . Dropdown::EMPTY_VALUE . "</option>";
             echo "<option value='is_active'>" . __('Active') . "</option>";
             echo "</select>";
             $params = array('field' => '__VALUE__', 'action' => $_POST["action"]);
             Ajax::updateItemOnSelectEvent("field", "show_massiveaction_field", $CFG_GLPI["root_doc"] . "/plugins/typology/ajax/dropdownMassiveActionField.php", $params);
             echo "&nbsp;<span id='show_massiveaction_field'>&nbsp;</span>\n";
             return true;
             break;
         default:
             return parent::showSpecificMassiveActionsParameters($input);
             break;
     }
     return false;
 }
開發者ID:geldarr,項目名稱:hack-space,代碼行數:33,代碼來源:typologycriteria.class.php

示例15: showSpecificMassiveActionsParameters

 /**
  * @see CommonDBTM::showSpecificMassiveActionsParameters()
  **/
 function showSpecificMassiveActionsParameters($input = array())
 {
     switch ($input['action']) {
         case 'merge':
             echo "&nbsp;" . $_SESSION['glpiactive_entity_shortname'];
             echo "<br><br><input type='submit' name='massiveaction' class='submit' value='" . _sx('button', 'Merge') . "'>\n";
             return true;
         default:
             return parent::showSpecificMassiveActionsParameters($input);
     }
     return false;
 }
開發者ID:geldarr,項目名稱:hack-space,代碼行數:15,代碼來源:commondropdown.class.php


注:本文中的CommonDBTM::showSpecificMassiveActionsParameters方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。