<?php
if (isset($conexion)) {
    ?>
	<div id="nuevaCaja" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="display: none;">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
					<h4 class="modal-title"><i class='fa fa-edit'></i> Apertura de Caja</h4>
				</div>
				<div class="modal-body">
					<form class="form-horizontal" method="post" id="guardar_caja" name="guardar_caja">
						<div id="resultados_ajax"></div>
						<div class="row">
							<div class="col-md-6">
								<div class="form-group">
									<label for="fecha" class="control-label">FECHA:</label>
									<input type="date" class="form-control UpperCase" id="fecha" name="fecha" value="<?php echo $fecha_actual; ?>" autocomplete="off" required>
								</div>
							</div>
							<div class="col-md-6">
								<div class="form-group">
									<label for="hora" class="control-label">HORA INICIO:</label>
									<input type="time" class="form-control UpperCase" id="hora" name="hora" value="<?php echo $hora_actual; ?>"  autocomplete="off" required>
								</div>
							</div>
						</div>
						<div class="row">
							<div class="col-md-3"></div>
							<div class="col-md-6">
								<div class="form-group">
									<label for="s_inicial" class="control-label">SALDO INICIAL $:</label>
									<input type="text" style=" background-color:#AED6F1; border-radius: 5px; border: 1px solid #39c; text-align: center; font-size: 30px; height: 50px" class="form-control UpperCase" id="s_inicial" name="s_inicial" placeholder="0.00" autocomplete="off" pattern="^[0-9]{1,5}(\.[0-9]{0,2})?$" title="Ingresa sólo números con 0 ó 2 decimales" required>
								</div>
							</div>
						</div>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-secondary waves-effect" data-dismiss="modal">Cerrar</button>
						<button type="submit" class="btn btn-primary waves-effect waves-light" id="guardar_datos">Guardar</button>
					</div>
				</form>
			</div>
		</div>
	</div><!-- /.modal -->
	<?php
}
?>