Add files via upload
This commit is contained in:
parent
17b31a9f04
commit
f8bee910e0
@ -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"){
|
||||||
$_SESSION['msg'] = Hall::create_hall($number, $this->cinema, $rows, $cols, $seats, $seats_map);
|
Hall::create_hall($number, $this->cinema, $rows, $cols, $seats, $seats_map);
|
||||||
return $result = './?state=success';
|
return $result = './?state=success&new=true';
|
||||||
}
|
}
|
||||||
if($this->option == "edit_hall"){
|
if($this->option == "edit_hall"){
|
||||||
$_SESSION['msg'] = Hall::edit_hall($number,$this->cinema, $rows, $cols, $seats, $seats_map, $this->og_hall->getNumber());
|
Hall::edit_hall($number,$this->cinema, $rows, $cols, $seats, $seats_map, $this->og_hall->getNumber());
|
||||||
return $result = './?state=success';
|
return $result = './?state=success&edit=true';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!isset($result['number']) && isset($datos["delete"]) ) {
|
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());
|
Hall::delete_hall($number, $this->cinema, $rows, $cols, $seats, $seats_map, $this->og_hall->getNumber());
|
||||||
return $result = './?state=success';
|
return $result = './?state=success&del=true';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user