} ?> "><br/> <label for="fecha_de_fin">Fecha de Fin(YYYY-MM-DD)</label><br/> <input type="date" name="fecha_de_fin" value="<?php if (isset($data['proyecto'])) { HelperFunctions::mostrarDatos($data['proyecto'], 'fecha de fin'); } ?> "><br/> <?php if (isset($data['errores']['fecha_prevista'])) { HelperFunctions::mostrarErrores($data['errores']['fecha_prevista']); } ?> <label for="fecha_prevista">Fecha Prevista(YYYY-MM-DD)</label><br/> <input type="date" name="fecha_prevista" value="<?php if (isset($data['proyecto'])) { HelperFunctions::mostrarDatos($data['proyecto'], 'fecha prevista'); } ?> "><br/> <label for="estado">Estado</label><br/> <select name="estado"> <?php HelperFunctions::optionList($data['estadolist'], 'descripcion', false, $data['estado_selected']); ?>
?> "><br/><br/> <?php if (isset($data['errores']['fecha_inicio'])) { HelperFunctions::mostrarErrores($data['errores']['fecha_inicio']); } ?> <label for="fecha_inicio">fecha de inicio de la Promocion</label><br/> <input type="date" name="fecha_inicio" value="<?php if (isset($data['promocion'])) { HelperFunctions::mostrarDatos($data['promocion'], 'fecha_inicio'); } ?> "><br/><br/> <?php if (isset($data['errores']['fecha_fin'])) { HelperFunctions::mostrarErrores($data['errores']['fecha_fin']); } ?> <label for="fecha_fin">fecha final de la Promocion</label><br/> <input type="date" name="fecha_fin" value="<?php if (isset($data['promocion'])) { HelperFunctions::mostrarDatos($data['promocion'], 'fecha_fin'); } ?> "><br/><br/> <input type="submit" value="Enviar Promocion"> </form> </div>
" method="post"> <?php if (isset($data['errores']['generic'])) { HelperFunctions::mostrarErrores($data['errores']['generic']); } ?> <br/> <label for="nick">Usuario</label><br/> <?php if (isset($data['errores']['nick'])) { HelperFunctions::mostrarErrores($data['errores']['nick']); } ?> <br/> <input type="text" name="nick" value="<?php echo isset($_POST['nick']) ? $_POST['nick'] : ''; ?> "> <br/> <label for="nick">Contraseña</label><br/> <?php if (isset($data['errores']['passwd'])) { HelperFunctions::mostrarErrores($data['errores']['passwd']); } ?> <br/> <input type="password" name="passwd"> <br/> <input type="submit" value="ENTRAR"> </form> </div>
<h1>Información del Cliente</h1> <p> <label for "nombreCorp">Nombre Corporativo:</label> <input type="text" name="nombreCorp" size="50" maxlength="100" value="<?php if (isset($_POST['nombreCorp'])) { HelperFunctions::mostrarDatos($data['persona'], 'nombreCorp'); } elseif (isset($data['persona']['nombre corporativo'])) { HelperFunctions::mostrarDatos($data['persona'], 'nombre corporativo'); } ?> " required autofocus><br> <?php if (isset($data['errores']['nombreCorp'])) { HelperFunctions::mostrarErrores($data['errores']['nombreCorp']); } ?> </p> <p> <input type="submit" name="persona" value="<?php echo $data['submit']; ?> "> </p> </form> </div>
<div class="container"> <h1>Estado</h1> <form action="<?php echo URL . $data['destino']; ?> " method="post"> <?php if (isset($data['errores']['descripcion'])) { HelperFunctions::mostrarErrores($data['errores']['descripcion']); } ?> <label for="descripcion"></label><br> <input type="text" name="descripcion" value="<?php if (isset($data['estado'])) { HelperFunctions::mostrarDatos($data['estado'], 'descripcion'); } ?> "> <input type="submit" value="<?php echo $data['submit']; ?> "> </form> <br/> <a href="<?php echo URL . 'estado'; ?> ">Atrás</a> </div>
HelperFunctions::mostrarErrores($data['errores']['telefono']); } ?> </p> <p> <label for "newsletter">Suscripción a noticias:</label> <input type="checkbox" name="newsletter" value="newsletter" <?php if (isset($data['persona']['newsletter']) && ($data['persona']['newsletter'] = 'On' || $data['persona']['newsletter'] === "1")) { echo 'checked'; } ?> ><br> <?php if (isset($data['errores']['telefono'])) { HelperFunctions::mostrarErrores($data['errores']['telefono']); } ?> </p> <?php if (isset($data['persona']['id'])) { ?> <p> <input type="hidden" name="id" value="<?php echo $data['persona']['id']; ?> "> </p> <?php }
<div class="container"> <form action="<?php echo URL . 'articulo/nuevoArticulo'; ?> " method="post"> <?php if (isset($data['errores']['titulo'])) { HelperFunctions::mostrarErrores($data['errores']['titulo']); } ?> <label for="titulo">Título del artículo</label><br/> <input type="text" name="titulo"><br/><br/> <?php if (isset($data['errores']['cuerpo'])) { HelperFunctions::mostrarErrores($data['errores']['cuerpo']); } ?> <label for="cuerpo">Cuerpo del artículo</label><br/> <textarea name="cuerpo" cols="80" rows="40"></textarea><br/><br/> <input type="checkbox" name="publicar">Publicar en la web<br><br> <input type="submit" value="Enviar Artículo"> </form> </div>