} else {
    //from helpdesk
    Html::helpHeader(PluginResourcesResource::getTypeName(2));
}
if (!isset($_GET["id"])) {
    $_GET["id"] = "";
}
$resting = new PluginResourcesResourceResting();
if (isset($_POST["addrestingresources"]) && $_POST["plugin_resources_resources_id"] != 0) {
    $resting->add($_POST);
    Html::back();
} else {
    if (isset($_POST["updaterestingresources"]) && $_POST["plugin_resources_resources_id"] != 0) {
        $resting->update($_POST);
        Html::back();
    } else {
        if (isset($_POST["deleterestingresources"]) && $_POST["plugin_resources_resources_id"] != 0) {
            $resting->delete($_POST, 1);
            $resting->redirectToList();
        } else {
            if ($resting->canView() || Session::haveRight("config", "w")) {
                $resting->showForm($_GET["id"], array());
            }
        }
    }
}
if ($_SESSION['glpiactiveprofile']['interface'] == 'central') {
    Html::footer();
} else {
    Html::helpFooter();
}