} else { if (isset($_POST["proname"]) && isset($_POST["piname"])) { $proname = $_POST["proname"]; $piname = $_POST["piname"]; pinAssignPro($proname, $piname); } else { if (isset($_POST["idE"])) { //Borrado de establecimientos $idE = $_POST["idE"]; $dbe = new Establishment(); $dbp = new Pincho(); $dbpop = new PopularValorations(); $dbpro = new ProfessionalValorations(); $borra = $dbpro->borradoEst($idE); $borra = $dbpop->borradoEst($idE); $borra = $dbp->borradoEst($idE); $borra = $dbe->borradoEst($idE); header("Location: organizerController.php?action=management"); } else { if (isset($_POST["idP"])) { //Borrado de pinchos $idP = $_POST["idP"]; $dbp = new Pincho(); $dbpop = new PopularValorations(); $dbpro = new ProfessionalValorations(); $borra = $dbpro->borradoPin($idP); $borra = $dbpop->borradoPin($idP); $borra = $dbp->borradoPin($idP); header("Location: organizerController.php?action=management"); } else { if (isset($_POST["idPo"])) {