<?php
require '../../../conexion.php';
require '../../../menu/css_lte.ctp';
?>
<form accept-charset="utf8" class="form-horizontal">
    <input name="opcion" value="1" id="op" type="hidden"/>
    <div class="col-md-8 col-md-offset-0">
        <div class="list-group">
            <a href="#" class="list-group-item active" style="background-color: #330; width: 555px">
                Informes de Notas de Credito
            </a>              
        </div>   
        <div class="form-group col-md-12">
            <label class="col-md-1 control-label">Desde: </label>
            <div class="col-md-4">
                <input type="date" required="" placeholder="Especifique fecha" id="desde"  
                       class="form-control" value="<?php echo date("Y-m-d") ?>" 
                       name="vdesde">
            </div>
            <label class="col-md-1 control-label">Hasta: </label>
            <div class="col-md-4">
                <input type="date" required="" placeholder="Especifique fecha"  id="hasta"   
                       class="form-control" value="<?php echo date("Y-m-d") ?>" 
                       name="vhasta">
            </div>
            <div class="form-group col-md-1">
                <div class="col-md-1  pull-right">
                    <a onclick="enviar()" rel="tooltip" data-title="Imprimir"
                       class="btn btn-primary" role="button" style="background-color: #330;">
                        <span class="fa fa-print"> </span></a>  
                </div>
            </div>
        </div> 

    </div> 
</form>

<script>
    function enviar() {
        window.open("/farmmedi/informes/compras/nota/impresion.php?vdesde=" + $('#desde').val()+ '&vhasta=' + $('#hasta').val() +'&vop=' + $('#op').val(), '_blank');
    }
</script>




