From ade555d392865c5346c7b6811d4e410726e99a7e Mon Sep 17 00:00:00 2001 From: Markines16 <80280295+Markines16@users.noreply.github.com> Date: Thu, 3 Jun 2021 12:52:17 +0200 Subject: [PATCH] Delete processForm.php --- panel_manager/includes/processForm.php | 65 -------------------------- 1 file changed, 65 deletions(-) delete mode 100644 panel_manager/includes/processForm.php diff --git a/panel_manager/includes/processForm.php b/panel_manager/includes/processForm.php deleted file mode 100644 index f818d41..0000000 --- a/panel_manager/includes/processForm.php +++ /dev/null @@ -1,65 +0,0 @@ - "new_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['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"] - ,"price" => $_POST["price"],"format" => $_POST["format"],"repeat" => $_POST["repeat"], "cinema" => $_SESSION["cinema"]); - FormSession::processesForm($data); - } - - if(isset($_POST['edit_session'])){ - $data = array("option" => "edit_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"] - , "origin_hall"=>$_SESSION["or_hall"],"origin_date"=> $_SESSION["or_date"],"origin_start"=> $_SESSION["or_start"]); - - $_SESSION["or_hall"] = ""; - $_SESSION["or_date"] = ""; - $_SESSION["or_start"] = ""; - FormSession::processesForm($data); - } - - if(isset($_POST['delete_session'])){ - $data = array("option" => "delete_session","cinema" => $_SESSION["cinema"], "hall"=> $_POST["origin_hall"] - ,"date"=> $_POST["origin_date"],"start"=> $_POST["origin_start"]); - FormSession::processesForm($data); - } - -?> \ No newline at end of file