restructuring and functionality cinemas

This commit is contained in:
Daniel Muñoz Garcia
2021-05-02 17:25:58 +02:00
committed by GitHub
parent d85e933c73
commit dfbe2877b5
8 changed files with 494 additions and 99 deletions

View File

@ -18,8 +18,6 @@ class FormFilm extends Form {
$this->reply = array();
}
public function getReply() {
if($this->correct){
if($this->option == "new"){
@ -34,8 +32,6 @@ class FormFilm extends Form {
$this->reply = "<h1> Operacion realizada con exito </h1><hr />
<p> Se ha eliminado la pelicula correctamente en la base de datos.</p>
<a href='../panel_admin/index.php?state=mf'><button>Cerrar Mensaje</button></a>";
} else if($this->option == "show"){
$this->reply= $this->array;
}
} else {
@ -104,9 +100,7 @@ class FormFilm extends Form {
else{
$this->correct =false;
}
} else if($this->option == "show") {
$this->array = $bd->allFilmData();
}
}
else {$this->correct = false;}
}