Add files via upload

This commit is contained in:
Markines16 2021-06-08 11:30:10 +02:00 committed by GitHub
parent d770c474bd
commit 84fa1c230c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -188,18 +188,18 @@ class FormHall extends Form {
} }
if (count($result) === 0 && isset($datos["sumbit"]) ) { if (count($result) === 0 && isset($datos["sumbit"]) ) {
if($this->option == "new_hall"){ if($this->option == "new_hall"){
Hall::create_hall($number, $this->cinema, $rows, $cols, $seats, $seats_map); $msg = Hall::create_hall($number, $this->cinema, $rows, $cols, $seats, $seats_map);
return $result = './?state=success&new=true'; return $result = './?state=success&msg='.$msg;
} }
if($this->option == "edit_hall"){ if($this->option == "edit_hall"){
Hall::edit_hall($number,$this->cinema, $rows, $cols, $seats, $seats_map, $this->og_hall->getNumber()); $msg = Hall::edit_hall($number,$this->cinema, $rows, $cols, $seats, $seats_map, $this->og_hall->getNumber());
return $result = './?state=success&edit=true'; return $result = './?state=success&msg='.$msg;
} }
} }
if (!isset($result['number']) && isset($datos["delete"]) ) { if (!isset($result['number']) && isset($datos["delete"]) ) {
if($this->option == "edit_hall"){ if($this->option == "edit_hall"){
Hall::delete_hall($number, $this->cinema, $rows, $cols, $seats, $seats_map, $this->og_hall->getNumber()); $msg = Hall::delete_hall($number, $this->cinema, $rows, $cols, $seats, $seats_map, $this->og_hall->getNumber());
return $result = './?state=success&del=true'; return $result = './?state=success&msg='.$msg;
} }
} }