This commit is contained in:
Daniel Muñoz Garcia 2021-05-02 17:57:23 +02:00 committed by GitHub
parent d0556cdafe
commit 015b2ffcf8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 8 deletions

View File

@ -142,7 +142,7 @@
}
function confirmAdd() {
$cine = new FormCinema();
$cine->processesForm($_POST['id'], $_POST['name'], $_POST['direction'], $_POST['phone'],"new");
$cine->processesForm(null, $_POST['name'], $_POST['direction'], $_POST['phone'],"new");
$_SESSION['message'] = $cine->getReply();
header('Location: ../panel_admin/index.php?state=mc');
}

View File

@ -20,15 +20,12 @@
}
else if(isset($_POST['add_cinema'])) {
confirmAdd();
header('Location: ../panel_admin/index.php?state=mc');
}
else if(isset($_POST['confirm_delete_cinema'])) {
confirmDelete();
header('Location: ../panel_admin/index.php?state=mc');
}
else if(isset($_POST['confirm_edit_cinema'])) {
confirmEdit();
header('Location: ../panel_admin/index.php?state=mc');
}
else {
addCinema();
@ -47,17 +44,14 @@
confirmAdd();
}
else if(isset($_POST['confirm_delete_film'])) {
confirmDelete();
header('Location: ../panel_admin/index.php?state=mf');
confirmDelete();
}
else if(isset($_POST['confirm_edit_film'])) {
confirmEdit();
header('Location: ../panel_admin/index.php?state=mf');
}
else {
addFilm();
$template->print_fimls();
};
break;
case 'md': /*require_once('manage_discounts.php')*/;echo"<h1>En construcción</h1>"; break;