Debug
This commit is contained in:
parent
d0556cdafe
commit
015b2ffcf8
@ -142,7 +142,7 @@
|
|||||||
}
|
}
|
||||||
function confirmAdd() {
|
function confirmAdd() {
|
||||||
$cine = new FormCinema();
|
$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();
|
$_SESSION['message'] = $cine->getReply();
|
||||||
header('Location: ../panel_admin/index.php?state=mc');
|
header('Location: ../panel_admin/index.php?state=mc');
|
||||||
}
|
}
|
||||||
|
@ -20,15 +20,12 @@
|
|||||||
}
|
}
|
||||||
else if(isset($_POST['add_cinema'])) {
|
else if(isset($_POST['add_cinema'])) {
|
||||||
confirmAdd();
|
confirmAdd();
|
||||||
header('Location: ../panel_admin/index.php?state=mc');
|
|
||||||
}
|
}
|
||||||
else if(isset($_POST['confirm_delete_cinema'])) {
|
else if(isset($_POST['confirm_delete_cinema'])) {
|
||||||
confirmDelete();
|
confirmDelete();
|
||||||
header('Location: ../panel_admin/index.php?state=mc');
|
|
||||||
}
|
}
|
||||||
else if(isset($_POST['confirm_edit_cinema'])) {
|
else if(isset($_POST['confirm_edit_cinema'])) {
|
||||||
confirmEdit();
|
confirmEdit();
|
||||||
header('Location: ../panel_admin/index.php?state=mc');
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
addCinema();
|
addCinema();
|
||||||
@ -47,17 +44,14 @@
|
|||||||
confirmAdd();
|
confirmAdd();
|
||||||
}
|
}
|
||||||
else if(isset($_POST['confirm_delete_film'])) {
|
else if(isset($_POST['confirm_delete_film'])) {
|
||||||
confirmDelete();
|
confirmDelete();
|
||||||
header('Location: ../panel_admin/index.php?state=mf');
|
|
||||||
}
|
}
|
||||||
else if(isset($_POST['confirm_edit_film'])) {
|
else if(isset($_POST['confirm_edit_film'])) {
|
||||||
confirmEdit();
|
confirmEdit();
|
||||||
header('Location: ../panel_admin/index.php?state=mf');
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
addFilm();
|
addFilm();
|
||||||
$template->print_fimls();
|
$template->print_fimls();
|
||||||
|
|
||||||
};
|
};
|
||||||
break;
|
break;
|
||||||
case 'md': /*require_once('manage_discounts.php')*/;echo"<h1>En construcción</h1>"; break;
|
case 'md': /*require_once('manage_discounts.php')*/;echo"<h1>En construcción</h1>"; break;
|
||||||
|
Loading…
Reference in New Issue
Block a user