<?php
	session_start();	
	$ruta = '../';
	  require_once("clases/covensol_cxc_c_cuentasxcobrar.php");
	  $objcxc = new covensol_cxc_cuentasxcobrar();
	  $combo_pais = $objcxc->combo_paises();
	  $combo_zonas = $objcxc->combo_zonas();
	  $combo_vendedores = $objcxc->combo_vendedores();
	  $combo_tipos = $objcxc->combo_tipos_cliente();
	  $combo_estfactura = $objcxc->combo_estfactura(); 
	  $combo_monedas = $objcxc->combo_monedas();
	  $combo_condpago = $objcxc->combo_condpago();
	  $combo_transporte = $objcxc->combo_transporte();
	  $cmbFormPag = $objcxc->comboFormPag();
	  $cmbEstMovCxc = $objcxc->comboEstMovCob();
	  //$_SESSION['autent_administrador'] = 1;
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>CONSULTA DE CUENTAS POR COBRAR</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="../shared/css/ventanas.css" rel="stylesheet" type="text/css">
<link href="../shared/css/general.css" rel="stylesheet" type="text/css">
<link href="../shared/css/tablas.css" rel="stylesheet" type="text/css">
<link href="../shared/css/catalogos.css" rel="stylesheet" type="text/css">
<link href="../shared/js/css_intra/datepickercontrol.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="../shared/tooltips/tooltip.js"></script>
<link rel="stylesheet" href="../shared/tooltips/tooltip.css" type="text/css" />
<style type="text/css">
<!--
a:link {
	color: #006699;
	
}
a:visited {
	color: #006699;
}
a:active {
	color: #006699;
}

#opciones_add {
	position:absolute;
	left:0px;
	top:0px;	
	z-index:1;
	visibility:hidden;	
}

#panel_busqueda {
	position:absolute;	
	left:0px;
	top:0px;	
	z-index:1;
	visibility:hidden;	
}

#boton_opciones{
	cursor:pointer;
	font-size:10px;
	font-weight:bold;
	height:18px;
	vertical-align:text-top;
	
	/*background-color:#003399;
	color:#FFFFEE;*/
}
.Estilo2 {font-size: 12px;
	font-weight: bold;
}
.body{ background-color:#C6D4E6;}
body {
	background-color: #DFE8F6;
}
-->
</style>
</head>
<script src="../base/librerias/js/jquery/jquery.js" type="text/javascript"></script>
<script src="../base/librerias/js/jquery/jquery.ui.draggable.js" type="text/javascript"></script>
<script src="../base/librerias/js/jquery/jquery.alerts.js" type="text/javascript"></script>
<link href="../base/librerias/js/jquery/jquery.alerts.css" rel="stylesheet" type="text/css" media="screen" />
<script language="JavaScript" type="text/JavaScript" src="../shared/js/js_ajax.js"></script>
<script language="JavaScript" src="../shared/js/sigesp_js.js"></script>
<script language="JavaScript" type="text/JavaScript" src="js/covensol_cxc_cat_cuentasxcobrar.js"></script>
<script language="javascript" src="../shared/js/js_intra/datepickercontrol.js"></script>
<?php 


//$valido = $obj_principal->io_corresp->validar_usuario($opciones);
?>

<body>

<form name="form1" method="post" action="">
 
<table width="954" height="25" border="0" align="center" cellpadding="1" cellspacing="1">
    <tr>
      <td width="925" height="20" colspan="2" class="titulo-ventana">CONSULTA DE CUENTAS POR COBRAR</td>
    </tr>
  </table>
<table width="951" height="23" border="0" align="center" cellpadding="0" cellspacing="0" class="formato-azul">
  <tr>
    <td width="590" height="20" ><div align="left"> Oficina: <span align="left"class="texto-azul" ><?php echo $_SESSION['autent_ofic'];?></span></div></td>
    <td width="347" ><div align="right"> Usuario: <span align="right" class="texto-azul" ><b><?PHP print $_SESSION["la_logusr"];?></b></span></div></td>
  </tr>
</table>
<br>
 <div id="panel_busqueda">
<table width="945" border="0" align="center" cellpadding="1" cellspacing="0" class="formato-blanco">
  <tr>
    <td height="22" colspan="4" align="center" bgcolor="#9EC1E4"><strong><strong><strong><strong>
      <span class="texto-azul">A&ntilde;o:</span>
      <select name="ano_consulta" id="ano_consulta">
      <option value="<?php echo date("Y"); ?>">- <?php echo date("Y"); ?> -</option>
        <?php for($anos = 2014; $anos<2050; $anos++) { ?>
        <option value="<?php echo $anos ?>"><?php echo $anos?></option>
        <?php } ?>
      </select>
    </strong></strong></strong></strong></td>
    </tr>
  <tr>
    <td height="22" class="sin-borde"><div align="right">Sucursal</div></td>
    <td class="sin-borde" ><input name="txtcodsuc" type="text" id="txtcodsuc"  style="text-align:center" value="<?php echo $datos['codsuc']; ?>" size="10" readonly="readonly" />
        <a href="javascript: buscar_catalogo('sucursal');"><img src="../shared/imagebank/tools15/buscar.gif" alt="" width="15" height="15" border="0" /></a>
        <input name="txtnomsuc" type="text" class="sin-borde" id="txtnomsuc" value="<?php print $datos['nomsuc'] ?>" size="30" /></td>
    <td height="22" class="sin-borde"><div align="right">Caja</div></td>
    <td class="sin-borde" ><input name="txtcodcaj" type="text" id="txtcodcaj"  style="text-align:center" value="<?php echo $datos['codsuc']; ?>" size="10" readonly="readonly" />
        <a href="javascript: buscar_catalogo('caja');"><img src="../shared/imagebank/tools15/buscar.gif" alt="" width="15" height="15" border="0" /></a>
        <input name="txtnomcaj" type="text" class="sin-borde" id="txtnomcaj" value="<?php print $datos['nomsuc'] ?>" size="30" /></td>
  </tr>
  <tr>
    <td height="22" align="right">N° Fact</td>
    <td height="22"><input name="txt_numfact" type="text" id="txt_numfact" <?php echo $disabled ?> />
      <input type="radio" name="orden" id="radio2" value="numfact"></td>
    <td width="97" height="22" align="right">Fec. factura</td>
    <td valign="bottom"><input name="txt_fecd" type="text" id="txt_fecd" size="15" maxlength="10" datepicker="true">
    --
      <input name="txt_fech" type="text" id="txt_fech" size="15" maxlength="10" datepicker="true">
    &nbsp;&nbsp;
      <input type="radio" name="orden" id="radio11" value="fecfact"></td>
    </tr>
  <tr>
    <td height="22" align="right">Control</td>
    <td height="22"><input name="txt_numcont" type="text" id="txt_numcont" <?php echo $disabled ?> />
        <input type="radio" name="orden" id="radio2" value="numcont"></td>
    <td height="22" align="right">Estatus Fact.:</td>
    <td height="22"><?php echo $combo_estfactura; ?>
        <input name="orden" type="radio" id="radio13" value="id_estfact"></td>
  <tr>
    <td width="107" height="22" align="right">Nombre Cliente</td>
    <td height="22" align="left" div="div"><input name="txt_nomcliente" type="text" id="txt_nomcliente" size="30" />
      <input name="orden" type="radio" id="radio3" value="f.codcondpago"></td>
    <td height="22" align="right">Cuenta Cli.</td>
    <td height="22" align="left" div="div"><input name="txtcontable" type="text" id="txtcontable"  style="text-align:center" readonly="readonly" />
      <a href="javascript: buscar_catalogo('cuenta');"><img src="../shared/imagebank/tools15/buscar.gif" alt="" width="15" height="15" border="0" /></a><a href="javascript: limpiar_cuenta();"><img src="../shared/imagebank/tools20/eliminar.gif" alt="Eliminar" width="15" height="15" border="0" title="Eliminar" /></a>
      <input name="orden" type="radio" id="radio6" value="sc_cuenta">
      <input name="txtdencuenta" type="text" class="sin-borde" id="txtdencuenta" size="30" /></td>
  <tr>
    <td height="22" align="right">Cod. Cliente </td>
    <td height="22"><input name="txtcodcliente" type="text" id="txtcodcliente" size="14" <?php echo $disabled ?> />
      <a href="javascript: buscar_catalogo('cliente');"><img src="../shared/imagebank/tools15/buscar.gif" alt="" width="15" height="15" border="0" /></a><a href="javascript: limpiar_cliente();"><img src="../shared/imagebank/tools20/eliminar.gif" alt="Eliminar" width="15" height="15" border="0" title="Eliminar" /></a>
      <input type="radio" name="orden" id="radio2" value="codcliente">
      <input name="txtnombre_cliente" type="text" id="txtnombre_cliente" size="30" /></td>
    <td height="22" align="right">Transporte.</td>
    <td height="22"><?php echo $combo_transporte; ?>
      <input type="radio" name="orden" id="radio14" value="desctransp"></td>
  </tr>
  <tr>
    <td width="107" height="22" align="right">Rif/C&eacute;dula</td>
    <td width="357" height="22"><select name="cmbtipperrif" id="cmbtipperrif">
      <option value=""  >- Seleccione -</option>
      <option value="J" >J </option>
      <option value="G" >G </option>
      <option value="V" >V </option>
      <option value="E" >E </option>
    </select>
      <span class="Estilo2">-</span>
      <input name="txtnumpririf" type="text" id="txtnumpririf" style="text-align:center" tabindex="8"  onKeyPress="return keyRestrict(event,'1234567890');" size="10" maxlength="8" />
      <label></label>
<input name="orden" type="radio" id="radio13" value="numpririf"></td>
    <td height="22" align="right">Moneda.</td>
    <td width="374" height="22"><?php echo $combo_monedas; ?>
      <input type="radio" name="orden" id="radio14" value="descmoneda"></td>
 </tr>
  <tr>
    <td height="22" align="right">Tipo:</td>
    <td height="22"><?php echo $combo_tipos; ?><input name="orden" type="radio" id="radio13" value="id_tipo_cliente"></td>
    <td height="22" align="right">Cond. Pago</td>
    <td height="22" align="left" div><?php echo $combo_condpago; ?>
      <input type="radio" name="orden" id="radio15" value="desccondpago"></td>
  <tr>
    <td height="22" align="right">Clasificaci&oacute;n</td>
    <td height="22"><input name="txtclasifcliente" type="text" id="txtclasifcliente" size="40" />
    <a href="javascript: buscar_catalogo('zona');">
    <input name="orden" type="radio" id="radio4" value="clasif_cliente">
      </a></td>
    <td height="22" align="right">Zonas</td>
    <td height="22"><?php echo $combo_zonas; ?>
      <input type="radio" name="orden" id="radio" value="zona"></td>
  </tr>
  <tr>
    <td height="22" align="right">Estatus</td>
    <td height="22" align="left" div="div"><select name="cmb_estatus" id="cmb_estatus">
      <option value=""  >- Seleccione -</option>
      <option value="A"  >Activo</option>
      <option value="I"  >Inactivo</option>
      <option value="B"  >Bloqueado</option>
      <option value="S"  >Suspendido</option>
    </select>
      <input name="orden" type="radio" id="radio3" value="estclient"></td>
    <td height="22" align="right">Fec. Mov Cob.</td>
    <td valign="bottom"><input name="txtfecmovcobd" type="text" id="txtfecmovcobd" size="15" maxlength="10" datepicker="true">
      --
      <input name="txtfecmovcobh" type="text" id="txtfecmovcobh" size="15" maxlength="10" datepicker="true">
  &nbsp;&nbsp;
  <input type="radio" name="orden" id="radio11" value="mc.fecmovcob"></td>
  </tr>
  <tr>
    <td height="22" class="sin-borde"><div align="right">Servicio</div></td>
    <td class="sin-borde" ><input name="txtcodser" type="text" id="txtcodser"  style="text-align:center" value="<?php echo $datos['codsuc']; ?>" size="10" readonly="readonly" />
        <a href="javascript: buscar_catalogo('servicio');"><img src="../shared/imagebank/tools15/buscar.gif" alt="" width="15" height="15" border="0" /></a>&nbsp;&nbsp;<a href="javascript: limpiar('servicio');"><img src="../shared/imagebank/tools20/eliminar.gif" alt="Eliminar" width="15" height="15" border="0" title="Eliminar" /></a>
        <input name="txtdenser" type="text" class="sin-borde" id="txtdenser" value="<?php print $datos['nomsuc'] ?>" size="30" /></td>
    <td height="22" class="sin-borde"><div align="right">Estatus CXC</div></td>
    <td height="22" align="left" div><label>
      <select name="cmbestcxc" id="cmbestcxc">
        <option value="" selected>- Seleccione -</option>
        <option value="VENCIDO">VENCIDO</option>
        <option value="CERRADO">CERRADO</option>
        <option value="VIGENTE">VIGENTE</option>
      </select>
    </label></td>
  </tr>
  <tr>
    <td height="22" class="sin-borde"><div align="right">Art&iacute;culo</div></td>
    <td class="sin-borde" ><input name="txtcodart" type="text" id="txtcodart"  style="text-align:center" value="<?php echo $datos['codsuc']; ?>" size="10" readonly="readonly" />
        <a href="javascript: buscar_catalogo('articulo');"><img src="../shared/imagebank/tools15/buscar.gif" alt="" width="15" height="15" border="0" /></a>&nbsp;&nbsp;<a href="javascript: limpiar('articulo');"><img src="../shared/imagebank/tools20/eliminar.gif" alt="Eliminar" width="15" height="15" border="0" title="Eliminar" /></a>
        <input name="txtdenart" type="text" class="sin-borde" id="txtdenart" value="<?php print $datos['nomsuc'] ?>" size="30" /></td>
    <td height="22" class="sin-borde"><div align="right">Omitir Cerradas</div></td>
    <td height="22" align="left" div><label>
      <input type="checkbox" name="chkomitcer" id="chkomitcer">
    </label></td>
  </tr>
  <tr>
    <td height="22" class="sin-borde"><div align="right">Concepto</div></td>
    <td class="sin-borde" ><input name="txtcodconfac" type="text" id="txtcodconfac"  style="text-align:center" value="<?php echo $datos['codsuc']; ?>" size="10" readonly="readonly" />
        <a href="javascript: buscar_catalogo('concepto');"><img src="../shared/imagebank/tools15/buscar.gif" alt="" width="15" height="15" border="0" /></a>&nbsp;&nbsp;<a href="javascript: limpiar('concepto');"><img src="../shared/imagebank/tools20/eliminar.gif" alt="Eliminar" width="15" height="15" border="0" title="Eliminar" /></a>
        <input name="txtdenconfac" type="text" class="sin-borde" id="txtdenconfac" value="<?php print $datos['nomsuc'] ?>" size="30" /></td>
    <td height="22" class="sin-borde"><div align="right">Forma Cobro</div></td>
    <td height="22" align="left" div><?php echo $cmbFormPag; ?>&nbsp;</td>
  </tr>
  <tr>
    <td height="22" align="right">Vendedor</td>
    <td height="22" align="left" div><input name="txt_nomvend" type="text" id="txt_nomvend" size="24">
        <input type="radio" name="txtnomvend" id="radio15" value="nomvend"></td>
    <td height="22" class="sin-borde"><div align="right">Estatus Mov. Cob.</div></td>
    <td height="22" align="left" div><?php echo $cmbEstMovCxc; ?></td>
  </tr> 
  <tr>
      <td height="22" colspan="4" align="center" valign="top">
      <table width="188" border="0" cellpadding="0" cellspacing="5">
          <tr>
            <td width="178"><label>
              <div align="center">
                <input name="boton_opciones" type="button" class="titulo-ventana" id="boton_opciones" onClick="opciones_adicionales()" value="Mas Opciones" onMouseOver="boton_s_f('sobre')" onMouseOut="boton_s_f('fuera')">
              </div>
            </label></td>
          </tr>
        </table>        </td>
  </tr>
  </table>
  </div>
  
  <div id="opciones_add"> 
  <table width="943" border="0" align="center" cellpadding="1" cellspacing="0" class="formato-blanco">
    <tr>
      <td height="22" align="right">Pa&iacute;s:</td>
      <td height="22" align="left" div><input name="txt_pais" type="text" id="txt_estado4" value="<?php echo $ls_estado; ?>">
          <input type="radio" name="orden" id="radio36" value="nombre_pais"></td>
      <td width="142" height="22" align="right">Vendedores (Cliente)</td>
      <td height="22" align="left" div><?php echo $combo_vendedores; ?></td>
    </tr>
    <tr>
      <td width="92" height="22" align="right">Estado:</td>
      <td width="235" height="22" align="left" div><input name="txt_estado" type="text" id="txt_estado4" value="<?php echo $ls_estado; ?>">
          <input type="radio" name="orden" id="radio36" value="entidad_federal"></td>
      <td height="22" align="right">Monto</td>
      <td width="464" height="22" align="left" div><input name="txt_monto" type="text" id="txt_monto">
        <select name="cmb_criterio" id="cmb_criterio">
          <option value="igual" selected>Igual a (=)</option>
          <option value="mayor">Mayor a (&gt;)</option>
          <option value="menor">Menor a (&lt;)</option>
        </select></td>
    </tr>   
    <tr>
      <td height="22" align="right">Municipio:</td>
      <td height="22" align="left" div><input name="txt_municipio" type="text" id="txt_municipio" value="<?php echo $ls_municipio; ?>">
          <input type="radio" name="orden" id="radio34" value="municipio"></td>
      <td height="22" align="right">&nbsp;</td>
      <td height="22" align="left">&nbsp;</td>
    </tr>
    <tr>
      <td height="22" align="right">Parroquia:</td>
      <td height="22" align="left" div><input name="txt_parroquia" type="text" id="txt_parroquia">
          <input type="radio" name="orden" id="radio32" value="parroquia"></td>
      <td height="22" align="right">&nbsp;</td>
      <td height="22" align="left" div>&nbsp;</td>
    </tr>
  </table>
</div>
<?php 



?>
  <table width="945" border="0" align="center" cellpadding="1" cellspacing="0" class="formato-blanco">
    <tr>
      <td width="941" height="22">
<div align="right">
  <label>Tipo de Reporte:
  <select name="sel_tiprep" id="sel_tiprep">
    <option value="CXC_MONEDA_LOCAL">LISTADO DE CXC EN MONEDA LOCAL</option>
    <option value="CXC_MULTIMONEDA">LISTADO DE CXC MULTIMONEDA</option>
    <option value="MOVIMIENTOS_COBRO_MONEDA_LOCAL">MOVIMIENTOS DE COBRO MONEDA LOCAL</option>
    <option value="MOVIMIENTOS_COBRO_MULTIMONEDA">MOVIMIENTOS DE COBRO MULTIMONEDA</option>
                      </select>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </label>
                <a href="javascript: opcionesx();">
                      
                      <img src="../shared/imagenes/Find24.gif" alt="" width="20" height="20" border="0">                </a>
          <a href="javascript: opcionesx();">Opciones de Busqueda</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <a href="javascript: buscarx('IMPRIMIR_REPORTE');"><img src="../shared/imagebank/tools20/imprimir.gif" alt="" width="20" height="20" border="0"></a>
                <a href="javascript: buscarx('IMPRIMIR_REPORTE');">Imprimir</a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <a href="javascript: buscarx('IMPRIMIR_REPORTE_EXCEL');"><img src="../shared/imagebank/tools20/excel.jpg" alt="" width="20" height="20" border="0"></a>
                <a href="javascript: buscarx('IMPRIMIR_REPORTE_EXCEL');">Imprimir</a> &nbsp;&nbsp;
                <a href="javascript: buscarx();"><img src="../shared/imagebank/tools20/buscar.gif" alt="" width="20" height="20" border="0"></a>
          <a href="javascript: buscarx();">Buscar/procesar</a>        </div>
      </td>
  </table>
  <p>
  <div id="resultados" align="center"></div>	
  </p>
<p>
<?php //echo $valido['permisos']; ?>
<?php //echo  $obj_principal->io_corresp->permisos_ventana_html; ?>
</p>
<input name="nombre_form"  type="hidden" id="nombre_form"  value="CATALOGO_FACTURAS"> 
<script language="javascript">
	
</script>
</form>      
</body>
</html>

