Esempio n. 1
0
             } else {
                 if (isset($_POST["delete_item"])) {
                     $pos->check($_POST['id'], UPDATE);
                     $pos->delete($_POST, 1);
                     Html::back();
                     //from coordinates ou map
                 } else {
                     if (isset($_POST["deletepos"])) {
                         $pos->check($_POST['id'], UPDATE);
                         $pos->delete($_POST, 1);
                         Html::redirect($CFG_GLPI["root_doc"] . "/plugins/positions/front/map.php?locations_id=" . $_POST["locations_id"]);
                     } else {
                         if (isset($_POST["addLocation"])) {
                             $pos->checkGlobal(READ);
                             Html::header(PluginPositionsPosition::getTypeName(), '', "tools", "pluginpositionsmenu", "positions");
                             $map = PluginPositionsPosition::getDocument($_POST["locations_id"]);
                             $options = array("document_id" => $map, "locations_id" => $_POST["locations_id"]);
                             PluginPositionsPosition::showMapCreateLocation($options);
                             Html::footer();
                         } else {
                             $pos->checkGlobal(READ);
                             Html::header(PluginPositionsPosition::getTypeName(), '', "tools", "pluginpositionsmenu", "positions");
                             $pos->display($_GET);
                             Html::footer();
                         }
                     }
                 }
             }
         }
     }
 }