2021-05-04 21:14:38 +02:00
|
|
|
<?php
|
2021-05-05 21:10:46 +02:00
|
|
|
//General Config File:
|
2021-05-04 21:14:38 +02:00
|
|
|
require_once('../../assets/php/config.php');
|
2021-05-05 21:10:46 +02:00
|
|
|
|
2021-05-04 21:14:38 +02:00
|
|
|
$prefix ="../../";
|
|
|
|
include_once('formHall.php');
|
2021-05-05 21:10:46 +02:00
|
|
|
include_once('formSession.php');
|
2021-05-04 21:14:38 +02:00
|
|
|
|
|
|
|
if(isset($_POST['new_hall'])){
|
2021-05-05 21:10:46 +02:00
|
|
|
$data = array("option" => "new_hall","number" => $_POST["number"],"cols" => $_POST["cols"],"rows" => $_POST["rows"], "cinema" => $_SESSION["cinema"]);
|
2021-05-04 21:14:38 +02:00
|
|
|
FormHall::processesForm($data);
|
|
|
|
}
|
|
|
|
|
2021-05-05 21:10:46 +02:00
|
|
|
if(isset($_POST['new_session'])){
|
|
|
|
$data = array("option" => "new_session","film" => $_POST["film"],"hall" => $_POST["hall"],"date" => $_POST["date"],"start" => $_POST["start"]
|
|
|
|
,"price" => $_POST["price"],"format" => $_POST["format"],"repeat" => $_POST["repeat"], "cinema" => $_SESSION["cinema"]);
|
|
|
|
FormSession::processesForm($data);
|
|
|
|
}
|
2021-05-04 21:14:38 +02:00
|
|
|
?>
|