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