本文整理汇总了PHP中Group_User::showSpecificMassiveActionsParameters方法的典型用法代码示例。如果您正苦于以下问题:PHP Group_User::showSpecificMassiveActionsParameters方法的具体用法?PHP Group_User::showSpecificMassiveActionsParameters怎么用?PHP Group_User::showSpecificMassiveActionsParameters使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Group_User
的用法示例。
在下文中一共展示了Group_User::showSpecificMassiveActionsParameters方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: 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 ". " . _n('Profile', 'Profiles', 1) . " ";
Profile::dropdownUnder();
echo ". " . __('Recursive') . " ";
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;
}
示例2: showSpecificMassiveActionsParameters
/**
* @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;
}