<?= form_open('reportes/analisis_venta/descargar',array('id' => 'frm_analisis_vta','name' => 'frm_analisis_vta','novalidate' => 'novalidate','class' => 'form-horizontal','role' => 'form','onkeypress' =>'return validar_enter(event)','onsubmit' => 'if(confirm(\'¿Está seguro?\'))this.form.submit();return false;')); ?>
	<div class="page-header">
		<h2> Análisis de Ventas Maquinaria y Equipo</h2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<small>Información de los prospectos, cotizaciones y ventas</small>
	</div>

	<hr class="separator" />

	<?= my_validation_errors(validation_errors()); ?>

	<div class='form-group row'>
		<?= form_label('Fecha Inicio: ','',array('class' => 'col-sm-2 control-label')) ?>
		<div class='col-sm-4'>
			<div class='input-group date' id='dt_fecha_inicio'>
				<?= form_input(array('class' => 'form-control','type' => 'text','name' => 'txt_fecha_inicio','id' => 'txt_fecha_inicio','placeholder' => 'Fecha Inicio','data-format' => 'YYYY-MM-DD')) ?>
				<span class='input-group-text'>
                    <svg class='bi bi-calendar3-fill' width='1em' height='1em' viewBox='0 0 16 16' fill='currentColor' xmlns='http://www.w3.org/2000/svg' onblur='calcularEdad()'>
                      <path d='M0 2a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2H0z'/>
                      <path fill-rule='evenodd' d='M0 3h16v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3zm6.5 4a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm4-1a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm2 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm-8 2a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm2 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm4-1a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm2 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm-8 2a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm2 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm4-1a1 1 0 1 1-2 0 1 1 0 0 1 2 0z'/>
                    </svg>
                </span>
			</div>
		</div>
		<?= form_label('Fecha Fin: ','',array('class' => 'col-sm-2 control-label')) ?>
		<div class='col-sm-4'>
			<div class='input-group date' id='dt_fecha_fin'>
				<?= form_input(array('class' => 'form-control','type' => 'text','name' => 'txt_fecha_fin','id' => 'txt_fecha_fin','placeholder' => 'Fecha Fin','data-format' => 'YYYY-MM-DD')) ?>
				<span class='input-group-text'>
                    <svg class='bi bi-calendar3-fill' width='1em' height='1em' viewBox='0 0 16 16' fill='currentColor' xmlns='http://www.w3.org/2000/svg' onblur='calcularEdad()'>
                      <path d='M0 2a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2H0z'/>
                      <path fill-rule='evenodd' d='M0 3h16v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3zm6.5 4a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm4-1a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm2 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm-8 2a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm2 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm4-1a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm2 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm-8 2a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm2 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm4-1a1 1 0 1 1-2 0 1 1 0 0 1 2 0z'/>
                    </svg>
                </span>
			</div>
		</div>
	</div>
	<center>
		<div class='form-group row'>
		   	<div class="col-sm-4 offset-sm-4">
				<?= form_label('Selecciona una Sucursal: ','') ?>
				<?= combos($sucursal,"pk_cat_sucursal","nombre","fk_cat_sucursal","fk_cat_sucursal","") ?>
			</div>
		</div>
		<?= form_button(array('type' => 'button','content' => 'Mostrar','class' => 'btn btn-primary','onclick' => 'loading(\'div_info\');xajax_cargar_info(xajax.getFormValues(\'frm_analisis_vta\'));')) ?>
	</center>
	<script type="text/javascript">
		$(function () {
			$('#dt_fecha_inicio').datetimepicker({
				pickTime: false
			});
		});
		$(function () {
			$('#dt_fecha_fin').datetimepicker({
				pickTime: false
			});
		});
	</script>

	<div id='div_info'></div>
	
<?= form_close(); ?>