From 1c41cdb32f2d4f34174b3020cbf45e90ff6c0933 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20M=C3=A9ndez?= <45081533+FerMdez@users.noreply.github.com> Date: Fri, 16 Apr 2021 12:57:10 +0200 Subject: [PATCH] Add files via upload --- panel_admin/add_film.php | 13 ++++ panel_admin/deleteFilm.php | 30 ++++++++ panel_admin/delete_film.php | 12 +++ panel_admin/editFilm.php | 37 +++++++++ panel_admin/edit_film.php | 11 +++ panel_admin/index.php | 5 +- panel_admin/template_index.php | 76 +++++++++++++++++++ panel_admin/validade.php | 66 ++++++++++++++++ panel_manager/edit_sessions.php | 4 +- panel_manager/includes/listFilms.php | 53 +++++++++++++ panel_manager/includes/listSessions.php | 55 ++++++++++++++ panel_manager/includes/room_dao.php | 39 ++++++++++ panel_manager/includes/room_dto.php | 37 +++++++++ panel_manager/includes/room_dto_interface.php | 12 +++ panel_manager/includes/session_dao.php | 4 +- panel_manager/room_dto.php | 30 ++++++++ panel_manager/session_dto.php | 44 +++++++++++ panel_manager/user_registered_view.php | 4 + panel_manager/user_unregistered_view.php | 3 + panel_manager/validate.php | 74 ++++++++++++++++++ panel_user/index.php | 6 +- 21 files changed, 604 insertions(+), 11 deletions(-) create mode 100644 panel_admin/add_film.php create mode 100644 panel_admin/deleteFilm.php create mode 100644 panel_admin/delete_film.php create mode 100644 panel_admin/editFilm.php create mode 100644 panel_admin/edit_film.php create mode 100644 panel_admin/template_index.php create mode 100644 panel_admin/validade.php create mode 100644 panel_manager/includes/listFilms.php create mode 100644 panel_manager/includes/listSessions.php create mode 100644 panel_manager/includes/room_dao.php create mode 100644 panel_manager/includes/room_dto.php create mode 100644 panel_manager/includes/room_dto_interface.php create mode 100644 panel_manager/room_dto.php create mode 100644 panel_manager/session_dto.php create mode 100644 panel_manager/user_registered_view.php create mode 100644 panel_manager/user_unregistered_view.php create mode 100644 panel_manager/validate.php diff --git a/panel_admin/add_film.php b/panel_admin/add_film.php new file mode 100644 index 0000000..a334ac8 --- /dev/null +++ b/panel_admin/add_film.php @@ -0,0 +1,13 @@ +processesForm(null, $_REQUEST['tittle'], $_REQUEST['duration'], $_REQUEST['language'], $_REQUEST['description'], "new"); + $_SESSION['message'] = $film->getReply(); + header("Location: ../panel_admin/index.php?state=mf"); + } + +?> \ No newline at end of file diff --git a/panel_admin/deleteFilm.php b/panel_admin/deleteFilm.php new file mode 100644 index 0000000..0e2eb31 --- /dev/null +++ b/panel_admin/deleteFilm.php @@ -0,0 +1,30 @@ + +

Editar pelicula

+
+
+
+ ¿Estás seguro de que quieres eliminar esta pelicula? + +

Id: '.$_REQUEST['id'].'

+

Título: '.$_REQUEST['tittle'].'

+

Duración: '.$_REQUEST['duration'].'

+

Idioma: '.$_REQUEST['language'].'

+

Descripción: '.$_REQUEST['description'].'

+
+
+ + +
+
+
+ '; + + } + + +?> \ No newline at end of file diff --git a/panel_admin/delete_film.php b/panel_admin/delete_film.php new file mode 100644 index 0000000..990d4b5 --- /dev/null +++ b/panel_admin/delete_film.php @@ -0,0 +1,12 @@ +processesForm($_REQUEST['id'],null,null,null,null,"del"); + $_SESSION['message'] = $film->getReply(); + + } + header("Location: ../panel_admin/index.php?state=mf"); +?> \ No newline at end of file diff --git a/panel_admin/editFilm.php b/panel_admin/editFilm.php new file mode 100644 index 0000000..3ac8f90 --- /dev/null +++ b/panel_admin/editFilm.php @@ -0,0 +1,37 @@ + +

Editar pelicula

+
+
+
+ Datos de pelicula + +
+ +
+
+ +
+
+ +
+
+ +
+
+
+ + +
+
+
+ '; + + } + + +?> \ No newline at end of file diff --git a/panel_admin/edit_film.php b/panel_admin/edit_film.php new file mode 100644 index 0000000..2dae5d1 --- /dev/null +++ b/panel_admin/edit_film.php @@ -0,0 +1,11 @@ +processesForm($_REQUEST['id'], $_REQUEST['tittle'], $_REQUEST['duration'], $_REQUEST['language'], $_REQUEST['description'], "edit"); + $_SESSION['message'] = $film->getReply(); + header("Location: ../panel_admin/index.php?state=mf"); + } +?> \ No newline at end of file diff --git a/panel_admin/index.php b/panel_admin/index.php index ffd917c..6ccb11c 100644 --- a/panel_admin/index.php +++ b/panel_admin/index.php @@ -1,9 +1,8 @@ +// TO DO: Delete + + + + + print_head(); + ?> + + + print_header(); + ?> + + + print_main(); + ?> + + +
+ + + +
+
+
+

AQUÍ EL CONTENIDO DE CADA FUNCIONALIDAD.

+

Debe variar dinámicamente según el botón del panel izquierdo que se pulse (sin cargar una página diferente, aunque tendrá que recargar el contido, eso sí).

+

Tendréis que rehacer todo el "PANEL" con PHP.

+
+
+
+
+ + + print_footer(); + ?> + + + + diff --git a/panel_admin/validade.php b/panel_admin/validade.php new file mode 100644 index 0000000..7120e49 --- /dev/null +++ b/panel_admin/validade.php @@ -0,0 +1,66 @@ +processesForm($id, $_POST["title"], $_POST["duration"], $_POST["languaje"],$_POST["description"], $action); + $reply = $session->getReply(); +?> + + + + + print_head(); + ?> + + + print_header(); + ?> + + +
+
+
+ + +
+
+
+
+
+ +
+
+
+
+
+ + + print_footer(); + ?> + + + + \ No newline at end of file diff --git a/panel_manager/edit_sessions.php b/panel_manager/edit_sessions.php index 44e275b..da6e69f 100644 --- a/panel_manager/edit_sessions.php +++ b/panel_manager/edit_sessions.php @@ -36,7 +36,7 @@
Datos
- +
- +