diff --git a/index.php b/index.php index aac636c..c72a724 100644 --- a/index.php +++ b/index.php @@ -1,16 +1,16 @@ get_prefix(); + //General Config File: + require_once('./assets/php/config.php'); //List of the tittles of the movies: - include_once($prefix.'showtimes/includes/loadFilms.php'); - $loadFilms = new loadFilms(); - $films = $loadFilms->getFilms(); + require_once($prefix.'panel_admin/includes/film_dao.php'); + $films = new Film_DAO("complucine"); + $films_array = $films->allFilmData(); + $tittles = array(); + foreach($films_array as $key => $value){ + $tittles[$key] = $value->getTittle(); + } ?> - print_head(); - ?> + print_head(); + ?> - print_header(); - ?> + print_header(); + ?> +
@@ -34,9 +36,9 @@
- getReply(); - ?> +
@@ -44,8 +46,10 @@ - print_footer(); - ?> + print_footer(); + ?> + - + + \ No newline at end of file diff --git a/showtimes/index.php b/showtimes/index.php index 7dc7eef..0c20517 100644 --- a/showtimes/index.php +++ b/showtimes/index.php @@ -1,18 +1,20 @@ -get_prefix(); +getFilms(); - $descriptions = $loadFilms->getDescription(); - + require_once($prefix.'panel_admin/includes/film_dao.php'); + $loadFilms = new Film_DAO("complucine"); + $films = $loadFilms->allFilmData(); + $titles = array(); + $descriptions = array(); + $times = array(); + foreach($films as $key => $value){ + $titles[$key] = $value->getTittle(); + $descriptions[$key] = $value->getDescription(); + $times[$key] = $value->getDuration(); + } ?>