From de8ab2ad8e87d7956f7bcdb2cc2b64010f3794b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mu=C3=B1oz=20Garcia?= <73303506+danimu03@users.noreply.github.com> Date: Mon, 12 Apr 2021 12:25:17 +0200 Subject: [PATCH] Add files via upload --- panel_admin/manage_films/add_film.php | 16 +++++ panel_admin/manage_films/manage_films.php | 73 +++++++++++++++++++++++ 2 files changed, 89 insertions(+) create mode 100644 panel_admin/manage_films/add_film.php create mode 100644 panel_admin/manage_films/manage_films.php diff --git a/panel_admin/manage_films/add_film.php b/panel_admin/manage_films/add_film.php new file mode 100644 index 0000000..5a6631b --- /dev/null +++ b/panel_admin/manage_films/add_film.php @@ -0,0 +1,16 @@ +addFilm($film); + } + + } + header("Location: ../panel_admin/index.php?state=mf"); + +?> \ No newline at end of file diff --git a/panel_admin/manage_films/manage_films.php b/panel_admin/manage_films/manage_films.php new file mode 100644 index 0000000..dab944d --- /dev/null +++ b/panel_admin/manage_films/manage_films.php @@ -0,0 +1,73 @@ + + + + Id + Título + Duracion + Idioma + Descripcion + + + "; + foreach($films as $f){ + echo " + + " . $f->getId() . " + " . $f->getTittle() . " + " . $f->getDuration() . " + ". $f->getLanguage() . " + ". $f->getDescription()." + + "; + } + echo " + \n"; + } + function addFilm(){ + echo'
+

Añadir pelicula

+
+
+
+ Datos de pelicula +
+ +
+
+ +
+
+ +
+
+ +
+
+
+ + +
+
+
+
'."\n"; + } + + drawFilms($bd->allFilmData()); + addFilm(); + + + ?> \ No newline at end of file