SW/panel_manager/includes/processForm.php

19 lines
757 B
PHP
Raw Normal View History

2021-05-04 21:14:38 +02:00
<?php
//General Config File:
2021-05-04 21:14:38 +02:00
require_once('../../assets/php/config.php');
2021-05-04 21:14:38 +02:00
$prefix ="../../";
include_once('formHall.php');
include_once('formSession.php');
2021-05-04 21:14:38 +02:00
if(isset($_POST['new_hall'])){
$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);
}
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
?>