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
- +
- +