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

 

Command :


[ Back ]     

Current File : /proc/self/root/var/www/html/app6/core/app/view/sells-view.php
 
<?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 = SellData::getSellAll();
		if(count($products)>0){
			// si hay usuarios
			$total = 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 Ventas</h4>
                                <div class="data-tables datatable-primary">
                                    <table id="dataTable2" class="text-center">
                                        <thead class="text-capitalize">
                                            <tr>
												<th>Facturar</th>
												<th>Folio</th>
												<th>Id</th>		
												<th>Pago</th>
												<th>Entrega</th>
												<th>Total</th>
												<th>Cliente</th>
												<th>Vendedor</th>
												<th>Almacen</th>
												<th>Fecha</th>
												<th></th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                            <?php
												foreach($products as $sell){
											?>
                                            <tr>
                                              	<td style="width:130px;">
													<?php
													$facturada = FacturaData::getByIdFacturada($sell->id);
													//print_r($facturada);
													if(!isset($facturada->sell_id)){	
													?>
													
														<a title="Facturar version 4.0" href="index.php?view=addfactura&id=<?php echo $sell->id;?>&sale_id=<?php echo $sell->sale_id;?>&client_id=<?php echo $sell->getPerson()->id_cust;?>" class="btn btn-info"><i class="fa fa-file"> Facturar 4.0</i></a>
													
													<?php }else{?>
														 <button type="button" class="btn btn-primary mb-3">
															Facturada <span class="badge badge-light">1</span>
														</button>
													<?php }?>
												</td>
                                              	<?php if($sell->getP()->id != 4):?>
													<td >
													<a href="index.php?view=invoice&id=<?php echo $sell->id;?>&sale_id=<?php echo $sell->sale_id;?>" class="btn btn-xs btn-warning"><i class="fa fa-barcode"></i></a><?php echo $sell->sale_id; ?>
													</td>
												<?php else:?>
													<td style="width:130px;">
														<a href="index.php?view=invoiceC&id=<?php echo $sell->sale_id;?>" class="btn btn-xs btn-warning"><i class="fa fa-barcode"></i></a><?php echo $sell->sale_id; ?>
													</td>
												<?php endif;?>
												<td><?php echo $sell->id; ?></td>
												<td><?php echo $sell->getP()->name; ?></td>
												<td><?php echo $sell->getD()->name; ?></td>
												<td style="width:100px;">
													<?php
													$total= $sell->total-$sell->discount;
															echo "<b>$ ".number_format($sell->total,2,".",",")."</b>";
													?>			
												</td>
												<td>
														<?php 
														//buscamos al cliente
														
														echo  $sell->getPerson()->name;
														
														?>
												</td>
												<td> 
													<?php if($sell->user_id!=null){
														
															$c= $sell->getUser();
															if(isset($c->name)){
																echo $c->name." ".$c->lastname;
															}else{
																echo "Vendedor Eliminado";
															}
															
														} 
													?> 
													
														<?php 
														if(isset($sell->id_seller)){
														$c1= UserData::getById2($sell->id_seller);
															if(isset($c1->username)){	
																echo $sell->id_seller."-".$c1->username;
															}else{
																echo "Id Vendedor: ".$sell->id_seller;
															}
														}else{
															echo "sin vendedor";
														}
														
														?>
													</td>
												
												<td><?php 
													if( $sell->id_seller != NULL){
															//verificamos el valor de stock_id en tabla user-
															
															
																 $user = UserData::getById($sell->id_seller);
															if( $sell->id_seller != 0){	 
																echo  utf8_encode(StockData::getById($user->stock_id)->name);
															}else{
																echo "Sin Vendedor asignado";
															}
															
															
														}else{
															echo "Sin Almacen";
														}
													?></td>
												<td><?php echo $sell->created_at; ?></td>
												
												<td style="width:30px;">
												<?php 
													 $nombre_fichero = ''.$rutasdk.'timbrados/cfdi_factura_'.$sell->id.'.pdf'; // Obtenemos la ruta al archivo de tu BD
															if (file_exists($nombre_fichero)) {
													?>
														<a href="<?php echo $dominio;?>sdk2/timbrados/cfdi_factura_<?php echo $sell->id; ?>.pdf" class="btn btn-xs btn-success"><i class="fa fa-file"></i> Ver Factura</a>
													<?php 
															}else{
																echo "No estan archivos XML,PDF";
															}
												?>	
												<a href="index.php?view=factura_demo&id=<?php echo $sell->id;?>&sale_id=<?php echo $sell->sale_id;?>" class="btn btn-xs btn-info" title="Demo de Facturacion Iva Agregado"><i class="fa fa-file"></i></a>
												
												<a href="index.php?view=factura_demo2&id=<?php echo $sell->id;?>&sale_id=<?php echo $sell->sale_id;?>" class="btn btn-xs btn-warning" title="Demo de Facturacion Iva Desglosado"><i class="fa fa-file"></i></a>
												
												<?php if(Core::$user->kind==1):?>
													<a href="index.php?view=delsellSeguridad&id=<?php echo $sell->id; ?>" class="btn btn-xs btn-danger"><i class="fa fa-trash"></i></a>
												<?php endif;?>
												</td>
                                                
                                            </tr>
											<?php
												$total= $sell->total-$sell->discount;
												
												}
												
												?>
                                        </tbody>
                                    </table>
									<?php
												echo "<div class='box-body' align='right'><h4>Gasto Total : $".number_format($total,2,".",",")."</div></h4>";
												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>
  
  
  
  
    <!-- 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>


Youez - 2016 - github.com/yon3zu
LinuXploit