当前位置: 首页>>代码示例>>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;未经允许,请勿转载。