Add files via upload

This commit is contained in:
Fernando Méndez 2021-06-08 13:26:48 +02:00 committed by GitHub
parent 8f2d3db7ad
commit 4f9cd0b581
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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