����JFIF��H�H����Exif��MM�*���� ��3����V�����3������3�(��������������������3�����
Server IP : 74.208.127.88 / Your IP : 18.221.172.197 Web Server : Apache/2.4.41 (Ubuntu) System : Linux ubuntu 5.4.0-163-generic #180-Ubuntu SMP Tue Sep 5 13:21:23 UTC 2023 x86_64 User : www-data ( 33) PHP Version : 7.4.3-4ubuntu2.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /proc/self/root/var/www/html/app6/core/app/view/ |
Upload File : |
<?php $tipoServer = ConfigurationData::getByPreffix('server')->val; if($tipoServer=='W'){ $server = ConfigurationData::getByPreffix('directorioWin')->val; $rutasdk = ConfigurationData::getByPreffix('sdk')->val; $dominio = 'http://localhost/'; }else{ $server = ConfigurationData::getByPreffix('directorioLinux')->val; $rutasdk = ConfigurationData::getByPreffix('sdk')->val; $dominio = ConfigurationData::getByPreffix('dominio')->val; } $products = FacturaData::getSells(); if(count($products)>0){ // si hay usuarios $total = 0; $subtotal=0; $impuestos=0; ?> <div class="main-content"> <!-- Primary table start --> <div class="col-12 mt-5"> <div class="card"> <div class="card-body"> <h4 class="header-title">Registro de Facturas</h4> <div class="data-tables datatable-primary"> <table id="dataTable2" class="text-center"> <thead class="text-capitalize"> <tr> <th>Email</th> <th>Factura</th> <th>Id</th> <th>Total</th> <th>Cliente</th> <th>UUID</th> <th>Status</th> <th>Correo</th> <th>Fecha</th> <th>Cancelar</th> </tr> </thead> <tbody> <?php foreach($products as $sell2){ ?> <tr> <td> <a title="Enviar Correo Guardado" href="index.php?view=email&id=<?php echo $sell2->sell_id;?>&sale_id=<?php echo $sell2->sale_id;?>&mail=<?php echo $sell2->image;?>" class="btn btn-xs btn-info"><i class="fa fa-send"></i></a> <a title="Enviar Con Mensaje" data-toggle="modal" data-target="#myModal" class="btn btn-xs btn-warning"><i class="fa fa-user"></i></a> </td> <td> <a href="index.php?view=oneFac&id=<?php echo $sell2->sale_id; ?>" class="btn btn-xs btn-success"><i class="fa fa-file"></i></a> <a href="index.php?view=onesell1&id=<?php echo $sell2->sell_id;?>&sale_id=<?php echo $sell2->sale_id;?>" class="btn btn-xs btn-default"><i class="fa fa-eye-open"></i></a> </td> <td><?php echo $sell2->sell_id; ?></td> <td style="width:100px;"> <?php $total= $sell2->price_out+$total; $subtotal = $sell2->subtotal+$subtotal; $impuestos = $sell2->impuestos+$impuestos; echo "<b>$ ".number_format($sell2->price_out,2,".",",")."</b>"; ?> </td> <td> <?php echo $sell2->presentation; ?> </td> <td style="width:200px;"> <?php if($sell2->name==0){ echo "Pre-Factura"; }else{ echo $sell2->name; } ?> </td> <?php if($sell2->is_service>0): ?> <td title="Factura Generada"> G </td> <?php else:?> <td title="Factura Cancelada"> C </td> <?php endif;?> <td> <?php echo $sell2->image; ?> </td> <td> <?php echo $sell2->created_at; ?> </td> <?php if($sell2->is_service>0): ?> <td style="width:40px;"><a href="#" id="oper-<?php echo $sell2->id; ?>" class="btn tip btn-xs btn-danger" title="Eliminar"><i class="fa fa-trash"></i></a> </td> <script> $("#oper-"+<?php echo $sell2->id; ?>).click(function(){ x = confirm("Estas seguro que quieres eliminar la factura, este proceso no se puede restablecer??"); if(x==true){ window.location = "index.php?view=cancela_factura&id=<?php echo $sell->id; ?>"; } }); </script> <?php else:?> <td> </td> <?php endif;?> </tr> <?php } ?> </tbody> </table> <?php echo "<div class='box-body' align='right'><h4>SubTotal : $".number_format($subtotal,2,".",",")."</div></h4>"; echo "</div>"; echo "<div class='box-body' align='right'><h4>Impuestos : $".number_format($impuestos,2,".",",")."</div></h4>"; echo "</div>"; echo "<div class='box-body' align='right'><h3>Gran Total : $".number_format($total,2,".",",")."</div></h3>"; echo "</div>"; ?> </div> </div> </div> </div> <!-- Primary table end --> <?php }else{ echo "<p class='alert alert-danger'>No hay Gastos</p>"; } ?> <script type="text/javascript"> $(document).ready(function(){ $("#dataTable2").DataTable({ "language": { "sProcessing": "Procesando...", "sLengthMenu": "Mostrar _MENU_ registros", "sZeroRecords": "No se encontraron resultados", "sEmptyTable": "Ningún dato disponible en esta tabla", "sInfo": "Mostrando registros del _START_ al _END_ de un total de _TOTAL_ registros", "sInfoEmpty": "Mostrando registros del 0 al 0 de un total de 0 registros", "sInfoFiltered": "(filtrado de un total de _MAX_ registros)", "sInfoPostFix": "", "sSearch": "Buscar:", "sUrl": "", "sInfoThousands": ",", "sLoadingRecords": "Cargando...", "oPaginate": { "sFirst": "Primero", "sLast": "Último", "sNext": "Siguiente", "sPrevious": "Anterior" }, "oAria": { "sSortAscending": ": Activar para ordenar la columna de manera ascendente", "sSortDescending": ": Activar para ordenar la columna de manera descendente" } } }); }); </script> <!-- Modal --> <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> <h4 class="modal-title" id="myModalLabel">Enviar Factura por Correo</h4> </div> <div class="modal-body"> <form method="post" action="./?action=email&id=<?php echo $sell2->sell_id;?>"> <div class="form-group"> <label for="exampleInputEmail1">Usuario:</label> <select class="form-control" name="user_to" required> <option value="">-- SELECCIONE --</option> <?php foreach(UserData::getAll() as $u):?> <?php if($u->id!=$_SESSION["user_id"]):?> <option value="<?php echo $u->id; ?>"><?php echo $u->name." ".$u->lastname; ?></option> <?php endif; ?> <?php endforeach;?> </select> </div> <input type="hidden" name="sale_id" id="sale_id" value="<?php echo $sell2->sale_id;?>"> <div class="form-group"> <label for="exampleInputEmail1">Correo:</label> <input class="form-control" type="text" name="email" id="email" placeholder="Correo eletronico"required> </div> <div class="form-group"> <label for="exampleInputPassword1">Mensaje:</label> <textarea class="form-control" name="message" id="message" rows="3" placeholder="Mensaje">Envio de Factura Folio <?php echo $sell2->sell_id;?></textarea> </div> <button type="submit" class="btn btn-default">Enviar Mensaje</button> </form> </div> </div> </div> </div> <!-- offset area end --> <!-- jquery latest version --> <script src="assets/js/vendor/jquery-2.2.4.min.js"></script> <!-- bootstrap 4 js --> <script src="assets/js/popper.min.js"></script> <script src="assets/js/bootstrap.min.js"></script> <script src="assets/js/owl.carousel.min.js"></script> <script src="assets/js/metisMenu.min.js"></script> <script src="assets/js/jquery.slimscroll.min.js"></script> <script src="assets/js/jquery.slicknav.min.js"></script> <!-- Start datatable js --> <script src="https://cdn.datatables.net/1.10.19/js/jquery.dataTables.js"></script> <script src="https://cdn.datatables.net/1.10.18/js/jquery.dataTables.min.js"></script> <script src="https://cdn.datatables.net/1.10.18/js/dataTables.bootstrap4.min.js"></script> <script src="https://cdn.datatables.net/responsive/2.2.3/js/dataTables.responsive.min.js"></script> <script src="https://cdn.datatables.net/responsive/2.2.3/js/responsive.bootstrap.min.js"></script> <!-- others plugins --> <script src="assets/js/plugins.js"></script> <script src="assets/js/scripts.js"></script>