Planning::showAddGroupForm PHP Method

showAddGroupForm() static public method

Actually called by ajax/planning.php
Since: 9.1
static public showAddGroupForm ( $params = [] ) : Nothing
return Nothing (display function)
    static function showAddGroupForm($params = array())
    {
        $condition = "is_task = 1";
        // filter groups
        if (!Session::haveRight('planning', self::READALL)) {
            $condition .= " AND id IN(" . implode(',', $_SESSION['glpigroups']) . ")";
        }
        echo __("Group") . " : <br>";
        Group::dropdown(array('entity' => $_SESSION['glpiactive_entity'], 'entity_sons' => $_SESSION['glpiactive_entity_recursive'], 'condition' => $condition));
        echo "<br /><br />";
        echo Html::hidden('action', array('value' => 'send_add_group_form'));
        echo Html::submit(_sx('button', 'Add'));
    }

Usage Example

示例#1
0
    Planning::showAddEventForm($_REQUEST);
}
if ($_REQUEST["action"] == "add_event_sub_form") {
    Planning::showAddEventSubForm($_REQUEST);
}
if ($_REQUEST["action"] == "add_planning_form") {
    Planning::showAddPlanningForm();
}
if ($_REQUEST["action"] == "add_user_form") {
    Planning::showAddUserForm();
}
if ($_REQUEST["action"] == "add_group_users_form") {
    Planning::showAddGroupUsersForm();
}
if ($_REQUEST["action"] == "add_group_form") {
    Planning::showAddGroupForm();
}
if ($_REQUEST["action"] == "add_event_classic_form") {
    Planning::showAddEventClassicForm($_REQUEST);
}
if ($_REQUEST["action"] == "edit_event_form") {
    Planning::editEventForm($_REQUEST);
}
if ($_REQUEST["action"] == "get_filters_form") {
    Planning::showPlanningFilter();
}
if ($_REQUEST["action"] == "toggle_filter") {
    Planning::toggleFilter($_REQUEST);
}
if ($_REQUEST["action"] == "color_filter") {
    Planning::colorFilter($_REQUEST);