} public function index() { /* * VALIDACIONES */ header("location: ../home.php?s=emergencias"); } } $funcion = new funciones(); if ($_GET["s"] == "crear") { $funcion->crear($db, $_POST); } else { if ($_GET["s"] == "editar") { $funcion->editar($db, $_POST, $_GET["id"]); } else { if ($_GET["s"] == "eliminar") { $funcion->eliminar($db, $_GET["id"]); } else { if ($_GET["s"] == "accion_responsable") { $funcion->accionResponsable($db, $_POST, $_GET["id"]); } else { if ($_GET["s"] == "eliminar_accion_responsable") { $funcion->eliminarAccionResponsable($db, $_GET["id"], $_GET["idAccion"]); } else { $funcion->index(); } } } } }