<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Documento sin t&iacute;tulo</title>

<script src="assets/js/funciones.js"></script>


<style type="text/css">
<!--
body {cursor: default; } 

.Estilo16 {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	letter-spacing: 0px;
}
.Estilo20 {color: #FFFFFF; font-family: Arial, Helvetica, sans-serif; font-weight: normal; font-size: 14px; }
-->
</style>
</head>



<body>
<table width="531" border="0" cellpadding="1" cellspacing="1">
  <tr>
    <td width="8" height="31" bgcolor="#397AA8"><div align="center"></div></td>
    <td width="64" bgcolor="#397AA8"><div align="center">
      <div align="left"><span class="Estilo20">C&oacute;digo</span></div>
    </div></td>
    <td width="449" bgcolor="#397AA8"><div align="center">
      <div align="left"><span class="Estilo20">Nombre de cuenta contable </span></div>
    </div></td>
  </tr>
  
  

	<?
	@$xid=$_REQUEST['xid'];
	@$xaccion44=$_REQUEST['xaccion44'];;	
	
	//@$xcriterio22=$_REQUEST['xcriterio2222'];	
	@$xcriterio44=$_REQUEST['xcriterio44'];	
	
	$xcriterio44 = str_replace(' ','%',$xcriterio44);	
	
	//echo "xcriterio44: ".$xcriterio44;
	
	include("conexion.php");
	
	if(isset($xaccion44)){	

		$result1=mysqli_query($conexion,"SELECT * FROM cuentas_contables c
											WHERE cc_nombre like '%$xcriterio44%' 
											OR cc_tipo like '%$xcriterio44%'
											ORDER BY cc_nombre;");
							
	
	}else{
		
		$result1=mysqli_query($conexion,"SELECT * FROM cuentas_contables c
										WHERE 1=0
										ORDER BY cc_nombre;");
		
		
		
	
	}
	
	$nregistros = mysqli_num_rows($result1);
	?>
	
	<script language="javascript">
	parent.document.getElementById('d_nregistros_clientes').innerHTML="<?php echo $nregistros;?> clientes encontrados";
	</script>	
	
	<?php
	$nn=0;
	while($row1=mysqli_fetch_array($result1)){
		$nn=$nn+1;
	
	?>
   
  <tr id="tr<?php echo $nn;?>" style=" cursor:default; background-color:#FFFFFF;" ondblclick="parent.parent.hay_cambios_pedidos(); agregar_cliente_cotizaciones(<?php echo $row1['per_codi'];?>);" onMouseOver="resaltar('#F9F38A',this.id);" onMouseOut="resaltar('#FFFFFF',this.id);" >
    <td class="Estilo16"></td>
    <td class="Estilo16"><div align="left"><?php echo $row1['cc_tipo'];?></div></td>
    <td class="Estilo16"><div align="left"><a href="#" onclick="javascript:parent.document.getElementById('xcuentacontable').value = '<?php echo $row1['cc_codi'];?>'; parent.cerraradicionar('d_busca_cuenta'); " ><?php echo $row1['cc_nombre'];?></a></div></td>
  </tr>
  
	<?
	}
	?>
</table>


<div align="left">
  <iframe id="frame_pedidos_detalle_item" name="frame_pedidos_detalle_item" width="10" height="10" frameborder="0" scrolling="No" marginheight="0" marginwidth="0" allowtransparency="AllowTransparency"></iframe>
</div>

</body>
</html>
