From a3bc2311e5cee8e7c4e4a142c46b864854d44123 Mon Sep 17 00:00:00 2001 From: Markines16 <80280295+Markines16@users.noreply.github.com> Date: Thu, 15 Apr 2021 21:43:06 +0200 Subject: [PATCH] Add files via upload --- panel_manager/edit_sessions.php | 185 +++++++++++++++--------------- panel_manager/index.php | 4 +- panel_manager/manage_sessions.php | 71 ++++++------ 3 files changed, 130 insertions(+), 130 deletions(-) diff --git a/panel_manager/edit_sessions.php b/panel_manager/edit_sessions.php index 1970f2f..e7811d9 100644 --- a/panel_manager/edit_sessions.php +++ b/panel_manager/edit_sessions.php @@ -1,6 +1,6 @@ processesForm(null, $cinema, null, null, "list"); $filmList = new Film_DAO('complucine'); + if($filmList){ $films = $filmList->allFilmData(); }else { $films = null; } - if(isset($_REQUEST['option']) && $_REQUEST['option'] == 'edit') { - echo "
-

Editar/Eliminar Sesion

-
-
-
- Datos - - -
- + if(isset($_REQUEST['option']) && $_REQUEST['option'] == 'edit') { + echo "
+

Editar/Eliminar Sesion

+ +
+
+ Datos + + +
+ +
+ +
+
+
+ Horario +
+ +
+
+ +
+
+
+ + +
- -
- -
- Horario -
- -
-
- -
-
-
- - -
-
- -
-
- \n"; foreach($films as $f){ if($f->getId() == $_POST['idfilm']){ - echo ""; + echo " \n"; }else{ - echo ""; + echo " \n"; } } - echo "
"; + echo "
"; } else{ - echo "
-

Crear Sesion

-
-
-
- Datos - -
- -
- +
+ +
+ + echo " +
+ +
+
+
+ Horario +
+ +
+
+ +
+
+
Introducir un numero para añadir esta sesion a los futuros X dias + +
+
+
+ +
- -
- Horario -
- -
-
- -
-
-
Introducir un numero para añadir esta sesion a los futuros X dias - -
-
-
- -
-
-
-
-
- \n"; foreach($films as $f){ - echo ""; + echo " \n"; } - echo "
"; + echo "
"; } ?> diff --git a/panel_manager/index.php b/panel_manager/index.php index 22ae826..9849209 100644 --- a/panel_manager/index.php +++ b/panel_manager/index.php @@ -2,7 +2,8 @@
- "; function drawSessions($sessions,$bd){ - echo " -
- - - - - - - - - - "; + echo " + +
+
HoraPeliculaFormatoPrecio
+ + + + + + + + + "; foreach($sessions as $s){ $film = mysqli_fetch_array($bd->FilmData($s->getIdfilm())); echo " - - - - - - - - getId()."\"> - getIdfilm()."\"> - getIdhall()."\"> - getIdcinema()."\"> - getDate()."\"> - getStartTime()."\"> - getSeatPrice()."\"> - getFormat()."\"> - - - - "; + + + + + + + getId()."\"> + getIdfilm()."\"> + getIdhall()."\"> + getIdcinema()."\"> + getDate()."\"> + getStartTime()."\"> + getSeatPrice()."\"> + getFormat()."\"> + + + "; } echo " - -
HoraPeliculaFormatoPrecio
" . date('H:i', strtotime( $s->getStartTime())) . " " . str_replace('_', ' ', $film["tittle"]) . " " . $s->getFormat() . " " . $s->getSeatPrice() . "
" . date('H:i', strtotime( $s->getStartTime())) . " " . str_replace('_', ' ', $film["tittle"]) . " " . $s->getFormat() . " " . $s->getSeatPrice() . "
- -
"; + + + +
\n"; } if($formSession->getReply()){ @@ -107,6 +106,6 @@

No hay ninguna session en la sala ". $placeholder_hall . " el dia ". $placeholder_date . "

-
"; +
\n"; } ?> \ No newline at end of file