Add files via upload
This commit is contained in:
@ -19,6 +19,25 @@
|
||||
}
|
||||
FormHall::processesForm($data);
|
||||
}
|
||||
|
||||
if(isset($_POST['edit_hall'])){
|
||||
$data = array("option" => "edit_hall","number" => $_POST["number"],"cols" => $_POST["cols"],"rows" => $_POST["rows"], "cinema" => $_SESSION["cinema"],"seats" => 0);
|
||||
//Check what checkboxs are seats or not
|
||||
for($i = 1;$i<=$data["rows"];$i++){
|
||||
for($j=1; $j<=$data["cols"]; $j++){
|
||||
if(!empty($_POST['checkbox'.$i.$j.''])){
|
||||
$data[$i][$j] = $_POST['checkbox'.$i.$j.''];
|
||||
$data["seats"]++;
|
||||
} else $data[$i][$j] = "-1";
|
||||
}
|
||||
}
|
||||
FormHall::processesForm($data);
|
||||
}
|
||||
|
||||
if(isset($_POST['delete_hall'])){
|
||||
$data = array("option" => "delete_hall","number" => $_POST["number"], "cinema" => $_SESSION["cinema"]);
|
||||
FormHall::processesForm($data);
|
||||
}
|
||||
|
||||
if(isset($_POST['new_session'])){
|
||||
$data = array("option" => "new_session","film" => $_POST["film"],"hall" => $_POST["hall"],"date" => $_POST["date"],"start" => $_POST["start"]
|
||||
|
Reference in New Issue
Block a user