Esempio n. 1
0
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with Racks. If not, see <http://www.gnu.org/licenses/>.
--------------------------------------------------------------------------
*/
include '../../../inc/includes.php';
header("Content-Type: text/html; charset=UTF-8");
Html::header_nocache();
if (!isset($_POST["id"])) {
    exit;
}
$PluginRacksItemSpecification = new PluginRacksItemSpecification();
$PluginRacksItemSpecification->checkGlobal("r");
if (empty($_POST["id"])) {
    switch ($_POST['plugin_racks_tab']) {
        default:
            break;
    }
} else {
    $target = $CFG_GLPI['root_doc'] . "/plugins/racks/front/itemspecification.form.php";
    switch ($_POST['plugin_racks_tab']) {
        case "all":
            $_SESSION['glpi_plugin_racks_tab'] = "all";
            $PluginRacksItemSpecification->showForm($target, 'Computer');
            $PluginRacksItemSpecification->showForm($target, 'NetworkEquipment');
            $PluginRacksItemSpecification->showForm($target, 'Peripheral');
            $PluginRacksItemSpecification->showForm($target, 'PluginRacksOther');
            break;