if (!isset($_POST["order"])) {
    $_POST["order"] = "";
}
if (!isset($_POST["withtemplate"])) {
    $_POST["withtemplate"] = "";
}
checkRight("config", "w");
if (PluginFusioninventory::haveRight("configuration", "r")) {
    switch ($_POST['glpi_tab']) {
        case -1:
            $config = new PluginFusioninventoryConfig();
            $config->showForm($_POST['target'], '1');
            $config_modules = new PluginFusioninventoryConfigModules();
            $config_modules->showForm($_POST['target'], '1');
            $history = new PluginFusioninventorySnmphistory();
            $history->showForm($_POST['target'], '1');
            $ptLockable = new PluginFusioninventoryLockable();
            $ptLockable->showForm($_POST['target']);
            break;
        case 2:
            $config_modules = new PluginFusioninventoryConfigModules();
            $config_modules->showForm($_POST['target'], '1');
            break;
        case 7:
            // Historique
            $history = new PluginFusioninventoryConfigSNMPHistory();
            $history->showForm($_POST['target']);
            break;
        case 8:
            // lockables
            $ptLockable = new PluginFusioninventoryLockable();