This commit is contained in:
Daniel Muñoz Garcia
2021-06-08 15:27:37 +02:00
committed by GitHub
parent ff7c9d103d
commit a53006592c
13 changed files with 83 additions and 73 deletions

View File

@ -17,14 +17,16 @@ class formAddManager extends Form{
}
protected function generaCamposFormulario($datos, $errores = array()){
$html = "";
if (!isset($_SESSION['message'])) {
// Se generan los mensajes de error si existen.
$htmlErroresGlobales = self::generaListaErroresGlobales($errores);
$errorId = self::createMensajeError($errores, 'id', 'span', array('class' => 'error'));
$errorIdCinema = self::createMensajeError($errores, 'idcinema', 'span', array('class' => 'error'));
$html = '<fieldset id="film_form"><pre>'.$htmlErroresGlobales.'</pre>
$html .= '<h3>AÑADIR GERENTE</h3>
<fieldset id="film_form"><pre>'.$htmlErroresGlobales.'</pre>
<legend>Selecciona usuario.</legend><pre>'.$errorId.'</pre>'
.$this->showUsers().
'</fieldset>
@ -38,7 +40,7 @@ class formAddManager extends Form{
</div>
</div>
';
}
return $html;
}