����JFIF��H�H����Exif��MM�*���� ��3����V�����3������3�(��������������������3�����
Server IP : 74.208.127.88 / Your IP : 18.116.60.81 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 : /var/www/html/t/sae/appsae/core/app/view/ |
Upload File : |
<section class="content"> <div class="row"> <div class="col-md-12"> <h1>Credito de Clientes</h1> <h4>Lista de clientes con credito</h4> <br> <?php $id="SI"; $users = PersonData::getClientsWithCredit2($id); //print_r($users); if(isset($users)){ // si hay usuarios ?> <a href="./report/credit-word.php" class="btn btn-default"> <i class="fa fa-file-text"></i> Descargar Word (.docx)</a> <a href="./report/credit-excel.php" class="btn btn-default"> <i class="fa fa-file-text"></i> Descargar Excel (.xlsx)</a> <br> <br> **NOTA<p>Tiene que ingresar un primer abono para ver saldo en el historial</p><br> <div class="box box-primary"> <div class="box-header"> <h3 class="box-title">Detalle de creditos</h3></div> <div class="box-body"> <table class="table table-bordered table-hover table-responsive datatable"> <thead> <th>Nombre completo</th> <th></th> <th>Saldo Pendiente</th> <th>Regimen Fiscal</th> <th>Credito </th> <th>Direccion</th> </thead> <?php foreach($users as $user){ $abonos = PaymentData::sumByClientId($user->id_cust)->total; $total = PaymentData::sumByClientId2($user->id_cust)->total; $saldo= $total+$abonos; if($saldo>0){ ?> <tr> <td><?php echo $user->name." ".$user->rfc; ?></td> <td style="width:230px;"> <a href="index.php?view=makepayment&id=<?php echo $user->id_cust;?>" class="btn btn-default btn-xs">Realizar Pago</a> <a href="index.php?view=paymenthistory&id=<?php echo $user->id_cust;?>" class="btn btn-default btn-xs">Historial</a> </td> <td>$ <?php echo number_format( $total+$abonos,2,".",","); ?></td> <td><?php echo $user->phone; ?></td> <td><?php if($user->gender="SI"){ echo "<i class='fa fa-check'></i>"; }; ?></td> <td><?php echo $user->direccion; ?> </td> </tr> <?php } }?> </table> <div id="myWatch"></div> </div> </div> <?php }else{ echo "<p class='alert alert-danger'>No hay clientes</p>"; } ?> </div> </div> </section> <script type="text/javascript"> function getTimeAJAX() { //GUARDAMOS EN UNA VARIABLE EL RESULTADO DE LA CONSULTA AJAX var time = $.ajax({ url: './index.php?action=credit', //indicamos la ruta donde se genera la hora dataType: 'text',//indicamos que es de tipo texto plano async: false //ponemos el parámetro asyn a falso }).responseText; //actualizamos el div que nos mostrará la hora actual document.getElementById("myWatch").innerHTML = " "+ time; } //con esta funcion llamamos a la función getTimeAJAX cada segundo para actualizar el div que mostrará la hora setInterval(getTimeAJAX,1000); </script>