<?php
include '../../session.php';
?>
<!DOCTYPE html>
<html lang="es">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta name="description" content="">
        <meta name="author" content="">
        <?php
        require '../../conexion.php';
        require '../../menu/css_lte.ctp';
        ?>
    </head>

    <body class="hold-transition skin-blue sidebar-mini">
        <div class="wrapper">
            <?php require '../../menu/cabecera.ctp'; ?><!--BARRA DE HERRAMIENTAS-->
            <?php require '../../menu/izquierda.ctp'; ?><!--BARRA DE HERRAMIENTAS-->

            <div class="content-wrapper">
                <div class="content">   
                    <div class="row">
                        <div class="col-lg-12">
                            <h3 class="page-header">Informes del Módulo Facturacion</h3>
                        </div>     
                        <div class="panel-body">
                            <div class="row">
                                <div class="col-md-10">                                             
                                    <!--div class="box box-primary"-->  
                                    <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_recaudaciones()" class="list-group-item">Recaudaciones a Depositar</a>
                                                        <a href="#" onclick="obtener_cuentas()" class="list-group-item">Cuentas a Cobrar</a>
                                                        <a href="#" onclick="obtener_iva()" class="list-group-item">Libro IVA</a>
                                                    </div>                                                
                                                </div>
                                                <div id="cargando"></div>
                                            </div>
                                        </div>
                                    </div>                      
                                </div>
                            </div>
                        </div>
                    </div> 

                </div>
            </div>
        </div>

        <?php require '../../menu/js_lte.ctp'; ?>

        <script>

            function obtener_recaudaciones() {
                $.ajax({
                    type: "POST",
                    url: "/farmmedi/informes/facturacion/recaudaciones/reporte.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_cuentas() {
                $.ajax({
                    type: "POST",
                    url: "/farmmedi/informes/facturacion/cuentas/reporte.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_iva() {
                $.ajax({
                    type: "POST",
                    url: "/farmmedi/informes/facturacion/libro_iva/reporte.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>



