コード例 #1
0
?>
"><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>
コード例 #2
0
		<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']);
?>
		</select><br>
		<input type="submit" value="<?php 
echo $data['submit'];
?>
">
	</form>
コード例 #3
0
	<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>
コード例 #4
0
<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>
コード例 #5
0
	<label for "nif">DNI/NIE:</label>
	<input type="text" name="nif" maxlength="11" value="<?php 
isset($data['persona']['nif']) ? HelperFunctions::mostrarDatos($data['persona'], 'nif') : "";
?>
" autofocus><br>
	<?php 
if (isset($data['errores']['nif'])) {
    HelperFunctions::mostrarErrores($data['errores']['nif']);
}
?>
</p>

<p>
	<label for "telefono">Telefono:</label>
	<input type="tlf" name="telefono" maxlength="15" value="<?php 
isset($data['persona']['telefono']) ? HelperFunctions::mostrarDatos($data['persona'], 'telefono') : "";
?>
" autofocus><br>
	<?php 
if (isset($data['errores']['telefono'])) {
    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';
}
コード例 #6
0
	</p>
	<p>
		<label for "pass1">Password:</label>
		<input type="password" name="pass1" maxlength="30" value="<?php 
isset($_POST['pass1']) ? HelperFunctions::mostrarDatos($data['persona'], 'pass1') : "";
?>
" required autofocus><br>
		<!--?php if (isset($data['errores']['pass1'])) HelperFunctions::mostrarErrores($data['errores']['pass1']); ?>-->
	</p>
	<?php 
if ($data['submit'] === "Crear") {
    ?>
	<p>
		<label for "pass2">Repetir password:</label>
		<input type="password" name="pass2" maxlength="30" value="<?php 
    isset($_POST['pass2']) ? HelperFunctions::mostrarDatos($data['persona'], 'pass2') : "";
    ?>
" required autofocus><br>
		<!--<?php 
    if (isset($data['errores']['pass2'])) {
        HelperFunctions::mostrarErrores($data['errores']['pass2']);
    }
    ?>
-->
	</p>

	<?php 
}
?>
	<p>
		<label for "categoria">Categoria del usuario:</label>