����JFIF��H�H����Exif��MM�*���� ��3����V�����3������3�(��������������������3�����403WebShell
403Webshell
Server IP : 74.208.127.88  /  Your IP : 216.73.216.221
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/muebles/mueblesOLDMAYO/pos11/core/app/view/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/self/root/var/www/html/muebles/mueblesOLDMAYO/pos11/core/app/view/paymenthistory-view.php
<?php
$client = PersonData::getById($_GET["id"]);
//compra a vredito
$total = PaymentData::sumByClientId2($client->contract)->total;
//enganche
$enganche = PaymentData::sumByClientId2($client->contract)->enganche;

$fecha = PaymentData::sumByClientId2($client->contract)->created_at;;
?>

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

    <h1>Estado de Cuenta de Cliente</h1>
    <h4>Cliente: <?php echo $client->name; ?></h4>
    <a href="./?view=credit" class="btn btn-default"> <i class="fa fa-arrow-left"></i> Regresar</a>
	 <a href="./?view=makepayment&id=<?php echo $client->id_cust; ?>" class="btn btn-default"> <i class="fa fa-money"></i>  Alta abono</a>
    <a href="./report/paymenthistory-word.php?id=<?php echo $client->contract; ?>" 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->contract; ?>" class="btn btn-default"> <i class="fa fa-file-text"></i> Descargar Excel (.xlsx)</a>
<br><br>
    <?php
	//solo abonos
    $users = PaymentData::getAllByClientId2($client->contract);
	
	?>
	
	
	
	<?php
    if(count($users)>0){
      // si hay usuarios
      ?>
	<div class="box box-primary">
      <table class="table table-bordered table-hover">
      <thead>
	  <th>Fecha Pago</th>
      <th>Tipo de Pago</th>
      <th>Monto de Abono</th>
      <th>Saldo</th>
     
      <th></th>
      </thead>
	   <tr>  
	   <td><?php echo $fecha;?></td>
	   <td><b>Enganche</b></td>
	   <td><u>$ <?php echo number_format($enganche,2,".",",");?></u></td>
	   <td><u>$ <?php echo number_format($total,2,".",",");?></u> <small>< Saldo inicial despues del enganche ></small></td>
		
	  </tr>
      <?php
      foreach($users as $user){
        ?>
        <tr>
		 <td><?php echo $user->created_at; ?></td>
        <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 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 class="box box-primary">
			  <table class="table table-bordered table-hover">
			  <thead align="right">
			  <th>Saldo Actual de Cliente</th>
			  </thead>
			    <tr>
					 <td>
					<u> $ <?php echo number_format($total,2,".",",");?> </u>
					 </td>
				</tr>
			  </table>
		  </div>
		  
      </div>
	  
      <?php
    }else{
		//solo enganche
			
	 ?>
	 
	 <?php
    if($total>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>Enganche</td>
	   <td>$ <?php echo number_format($enganche,2,".",",");?></td>
	   <td><u>$ <?php echo number_format($total,2,".",",");?></u> <small>< Saldo inicial ></small></td>
	   <td><?php echo $fecha;?></td>
	  </tr>

      </table>
	  
		  <div class="box box-primary">
			  <table class="table table-bordered table-hover">
			  <thead align="right">
			  <th>Saldo Actual de Cliente</th>
			  </thead>
			    <tr>
					 <td>
					<u> $ <?php echo number_format($total,2,".",",");?> </u>
					 </td>
				</tr>
			  </table>
		  </div>
		  
      </div>
	 
	 
	 
	 
 <?php	
		}
    // echo "<p class='alert alert-danger'>No hay Historial del cliente</p>  
    }


    ?>


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

<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>

Youez - 2016 - github.com/yon3zu
LinuXploit