Datos

Horario

'; if($data['option'] == "new_session") $htmlform .= '

'; if($data['option'] == "edit_session"){ $_SESSION["session"] = $data['id'] ?? Session::getThisSessionId($cinema, $hall, $start, $date)["id"]; $htmlform .= '

'; } $htmlform .= "
"; if($film["tittle"]){ $htmlform .= "
".$film["tittle"]."

".$film["tittle"]."


".$film["description"]."

Duración: ".$film["duration"]." minutos

"; } $htmlform .= 'Seleccionar una Pelicula
'; return $htmlform; } //Methods: //Process form: public static function processesForm($data){ if($data["option"] == "new_session"){ $_SESSION['msg'] = Session::create_session($data); header( "Location: ../?state=success" ); }else if($data["option"] == "edit_session"){ $_SESSION['msg'] = Session::edit_session($data); header( "Location: ../?state=success" ); } else if($data["option"] == "delete_session") { $_SESSION['msg'] = Session::delete_session($data); header( "Location: ../?state=success" ); } } } ?>