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/manage_films.php b/panel_admin/manage_films.php index 4011d5b..2348ed8 100644 --- a/panel_admin/manage_films.php +++ b/panel_admin/manage_films.php @@ -44,7 +44,16 @@ - + +
+ + + + + + +
+ '; } echo' diff --git a/panel_admin/panelAdmin.php b/panel_admin/panelAdmin.php index f39057d..bdd7138 100644 --- a/panel_admin/panelAdmin.php +++ b/panel_admin/panelAdmin.php @@ -8,6 +8,7 @@ function showPanel() { switch($this->state) { + case 'df': require('deleteFilm.php');break; case 'ef': require('editFilm.php');break; case 'mc': require('manage_cinemas.php'); break; case 'mf': require('manage_films.php'); break;