Esta comentado las opciones de sesion
Hay un fallo con film.php que esperamos arreglarlo mañana con el join en sesion y el template
This commit is contained in:
@ -7,7 +7,16 @@
|
||||
include_once('formSession.php');
|
||||
|
||||
if(isset($_POST['new_hall'])){
|
||||
$data = array("option" => "new_hall","number" => $_POST["number"],"cols" => $_POST["cols"],"rows" => $_POST["rows"], "cinema" => $_SESSION["cinema"]);
|
||||
$data = array("option" => "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);
|
||||
}
|
||||
|
||||
@ -16,7 +25,7 @@
|
||||
,"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"]
|
||||
@ -29,4 +38,5 @@
|
||||
,"date"=> $_POST["origin_date"],"start"=> $_POST["origin_start"]);
|
||||
FormSession::processesForm($data);
|
||||
}
|
||||
|
||||
?>
|
Reference in New Issue
Block a user