showForm() public method

public showForm ( $ID, $options = [] )
Example #1
0
            $np->updateDependencies(1);
            Event::log($_POST["id"], "networkport", 4, "inventory", sprintf(__('%s updates an item'), $_SESSION["glpiname"]));
            Html::back();
        } else {
            if (isset($_POST["disconnect"])) {
                $nn->check($_POST['id'], 'd');
                if (isset($_POST["id"])) {
                    $nn->delete($_POST);
                }
                Html::back();
            } else {
                if (empty($_GET["items_id"])) {
                    $_GET["items_id"] = "";
                }
                if (empty($_GET["itemtype"])) {
                    $_GET["itemtype"] = "";
                }
                if (empty($_GET["several"])) {
                    $_GET["several"] = "";
                }
                if (empty($_GET["instantiation_type"])) {
                    $_GET["instantiation_type"] = "";
                }
                Session::checkRight("networking", "w");
                Html::header(NetworkPort::getTypeName(2), $_SERVER['PHP_SELF'], 'inventory');
                $np->showForm($_GET["id"], $_GET);
                Html::footer();
            }
        }
    }
}