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
1 changed files with 4 additions and 4 deletions

View File

@ -186,21 +186,21 @@ class FormHall extends Form {
else if (count($result) === 0 && isset($datos["sumbit"]) ) {
if($this->option == "new_hall"){
$_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"){
$_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"]) ) {
if($this->option == "edit_hall"){
$_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"])){
$result = "./?state=".$this->option."&number=".$this->og_hall->getNumber()."";
//$result = "./?state=".$this->option."&number=".$this->og_hall->getNumber()."";
}