<?php
include '../../../session.php';
?>
<!DOCTYPE html>
<html lang="es">
    <head>
        <?php
        require '../../../conexion.php';
        require '../../../menu/css_lte.ctp';
        ?>
    </head>
    <form accept-charset="utf8" class="form-horizontal">
        <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 Orden
                </a>              
            </div>   
            <div class="form-group col-md-12">
                <div class="row">
                    <div class="col-md-10">                                             
                        <div class="">                                                          
                            <div class="box-body no-padding">                                   
                                <div class="row">                                        
                                    <div class="col-md-4 col-md-offset-0">
                                        <div class="list-group">
                                            <a href="#" class="list-group-item active" style="background-color: #330">
                                                Reportes
                                            </a>
                                            <a  href="#" onclick="obtener_fecha()" class="list-group-item">Por Rango de Fecha</a>
                                            <a  href="#" onclick="obtener_proveedor()" class="list-group-item">Por Proveedores</a>
                                            <a href="#" onclick="obtener_estado()" class="list-group-item">Por Estado</a>
                                        </div>                                                
                                    </div>
                                    <div id="cargando"></div>
                                </div>
                            </div>
                        </div>                      
                    </div>
                </div>
            </div>
        </div> 
    </form>

    <script>
        function obtener_fecha() {
            $.ajax({
                type: "POST",
                url: "/farmmedi/informes/compras/orden/por_fecha.php/",
                cache: false,
                beforeSend: function () {
                    $('#cargando').html('<img src="/farmmedi/img/ajax-loader.gif">  <strong><i>Cargando...</i></strong>');
                },
                success: function (msg) {
                    $('#cargando').html(msg);
                }
            });
        }

        function obtener_proveedor() {
            $.ajax({
                type: "POST",
                url: "/farmmedi/informes/compras/orden/porprv.php/",
                cache: false,
                beforeSend: function () {
                    $('#cargando').html('<img src="/farmmedi/img/ajax-loader.gif">  <strong><i>Cargando...</i></strong>');
                },
                success: function (msg) {
                    $('#cargando').html(msg);
                }
            });
        }

        function obtener_estado() {
            $.ajax({
                type: "POST",
                url: "/farmmedi/informes/compras/orden/por_estado.php/",
                cache: false,
                beforeSend: function () {
                    $('#cargando').html('<img src="/farmmedi/img/ajax-loader.gif">  <strong><i>Cargando...</i></strong>');
                },
                success: function (msg) {
                    $('#cargando').html(msg);
                }
            });
        }



    </script>

</body>
</html>



