$_GET["id"] = ""; } if (!isset($_GET["withtemplate"])) { $_GET["withtemplate"] = ""; } //echo realpath (dirname(__FILE__)); $tipoRelaciones = new PluginRelationClase(); $relation = new PluginRelationRelation(); /* if (isset($_POST['is_recursive'])) { $_POST['is_recursive'] = ($_POST['is_recursive'] ? 1 : 0); } */ $array = $relation->getListClaseHelpDesk(); if (isset($_POST["add"])) { $_POST['name'] = $relation->getNameDropdown($array, $_POST['name']); $newID = $tipoRelaciones->add($_POST); Html::redirect($_SERVER['HTTP_REFERER']); } else { if (isset($_POST["delete"])) { $tipoRelaciones->delete($_POST); Html::redirect(Toolbox::getItemTypeSearchURL('PluginRelationClase')); } else { if (isset($_POST["restore"])) { $tipoRelaciones->restore($_POST); Html::redirect(Toolbox::getItemTypeSearchURL('PluginRelationClase')); } else { if (isset($_POST["purge"])) { $tipoRelaciones->delete($_POST, 1); Html::redirect(Toolbox::getItemTypeSearchURL('PluginRelationClase')); } else {