Add files via upload

This commit is contained in:
Markines16 2021-05-27 20:41:59 +02:00 committed by GitHub
parent 157201c2f8
commit 53dbcbe6a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,6 +14,7 @@ class FormHall extends Form {
$this->option = $option; $this->option = $option;
$this->cinema = $cinema; $this->cinema = $cinema;
if($hall)
$this->og_hall = $hall; $this->og_hall = $hall;
if($option == "edit_hall") if($option == "edit_hall")
@ -39,7 +40,7 @@ class FormHall extends Form {
} }
$alltozero = $_POST["alltozero"] ?? 0; $alltozero = $_POST["alltozero"] ?? 0;
//Show the original seats_map once u click restart or the first time u enter this form from manage_halls's form //Show the original seats_map once u click restart or the first time u enter this form from manage_halls's form
if(!isset($_GET["editing"])){ if($this->option == "edit_hall" && !isset($_GET["editing"])){
$rows = $this->og_hall->getNumRows(); $rows = $this->og_hall->getNumRows();
$cols = $this->og_hall->getNumCol(); $cols = $this->og_hall->getNumCol();
$seat_list = Seat::getSeatsMap($this->og_hall->getNumber(), $this->cinema); $seat_list = Seat::getSeatsMap($this->og_hall->getNumber(), $this->cinema);