//=====================================================================================================
include_once "../core/go.login.inc.php";
include_once "../core/core.error.inc.php";
include_once "../core/core.html.inc.php";
include_once "../core/core.init.inc.php";
include_once "../core/core.db.inc.php";
$theFile = __FILE__;
$permiso = getSIPAKALPermissions($theFile);
if ($permiso === false) {
    header("location:../404.php?i=999");
}
$_SESSION["current_file"] = addslashes($theFile);
//=====================================================================================================
$xHP = new cHPage();
$xHP->setTitle($xHP->lang(array("imprimir", "solicitud", "de", "credito")));
echo $xHP->getHeader();
?>
<body>
<?php 
$idsolicitud = $_GET["solicitud"];
if (!$idsolicitud) {
    exit("NO HAY SUFICIENTES DATOS PARA LLEVAR A CABO EL INFORME");
}
// enumera los conceptos a imprimir, por defecto todos estan aceptado.
?>
<fieldset>
<legend>IMPRIMIR SOLICITUD DE CREDITO.- OPCIONES DE IMPRESION</legend>
<form name="frmlist" action="rptsolicitudcredito1.php" method="post">
<table>
	<tr>
		<td><input name="siavales" type="checkbox" checked>AGREGAR RELACION DE AVALES</td>
<?php

//=====================================================================================================
//=====>	INICIO_H
include_once "../core/go.login.inc.php";
include_once "../core/core.error.inc.php";
include_once "../core/core.html.inc.php";
include_once "../core/core.init.inc.php";
$theFile = __FILE__;
$permiso = getSIPAKALPermissions($theFile);
if ($permiso === false) {
    header("location:../404.php?i=999");
}
$_SESSION["current_file"] = addslashes($theFile);
//<=====	FIN_H
//=====================================================================================================
$xP = new cHPage("Cobranza.- Efectivo");
$xP->setIncludes();
echo $xP->getHeader();
$xP->setBodyinit();
$xFrm = new cHForm("frmCobrosEnEfectivo", "cobro-efectivo.frm.php");
$xTxt = new cHText("id");
//$xTxt->setIncludeLabel();
$xFrm->addHElem($xTxt->getDeMoneda("iMontoOperacion", "Monto de la Operacion"));
$xFrm->addHElem($xTxt->getDeMoneda("iMontoRecibido", "Monto Recibido"));
$xFrm->addHElem($xTxt->getDeMoneda("iMontoCambio", "Monto de Cambio"));
echo $xFrm->get();
$xP->setBodyEnd();
//=====>	INICIO_H
include_once "../core/go.login.inc.php";
include_once "../core/core.error.inc.php";
include_once "../core/core.html.inc.php";
include_once "../core/core.init.inc.php";
$theFile = __FILE__;
$permiso = getSIPAKALPermissions($theFile);
if ($permiso === false) {
    header("location:../404.php?i=999");
}
$_SESSION["current_file"] = addslashes($theFile);
//<=====	FIN_H
$iduser = $_SESSION["log_id"];
//=====================================================================================================
$xPage = new cHPage(HP_FORM, "Admitir Socios");
echo $xPage->getHeader();
?>
<body>
<fieldset>
	<legend>SOCIO(S) NO ADMITIDO(S)</legend>
<form name="frmAdmitir" action="frmadmitirsocios.php" method="post">


<?php 
$sqlSNA = "SELECT\n\t`socios_general`.`codigo`,\n\t`socios_general`.`nombrecompleto` AS 'nombre',\n\t`socios_general`.`apellidopaterno` AS 'apellido_paterno',\n\t`socios_general`.`apellidomaterno` AS 'apellido_materno',\n\t`socios_general`.`fechaentrevista` AS 'fecha_de_entrevista',\n\t`socios_general`.`sucursal` \nFROM\n\t`socios_general` `socios_general` \nWHERE\n\t(`socios_general`.`estatusactual` =99)\nORDER BY\n\t`socios_general`.`fechaentrevista` DESC\nLIMIT 0,20\t";
$tSoc = new cTabla($sqlSNA);
$tSoc->setWidth();
$tSoc->addEspTool("<input type=\"checkbox\"  id=\"chk" . STD_LITERAL_DIVISOR . "_REPLACE_ID_\" />");
$tSoc->setTdClassByType();
$tSoc->Show("", false);
?>
    }
    //$tab -> add(TabSetValue::getBehavior('idnumpagos', $OConv->obj()->pagos_maximo()->v()));
    return $tab->getString();
}
function jsCheckCreditos($persona)
{
}
$jxc->exportFunction('jsaPrevalidarCredito', array('idsocio', 'iidsolicitud', 'idnumpagos', 'idperiocidadpagos', 'idtipoconvenio', 'idcontratocorriente', 'idFechaMinistracion', 'idFechaVencimiento', 'idmontosol'), "#idfrmval");
$jxc->exportFunction('jsaGetNumeroDeCredito', array('idsocio'));
$jxc->exportFunction('jsaValidarMontoDeCredito', array('idsocio', 'idtipoconvenio', 'idmontosol'));
$jxc->exportFunction('jsaGetLetrasByNumero', array('idmontosol'), "#idmontoletras");
$jxc->exportFunction('jsRiesgoDelCredito', array("idsocio"), "#informacion");
$jxc->exportFunction('getNombre_FechaDeMinistracion', array("ideldia1", "idelmes1", "idelanno1"), "#swFechaMin");
$jxc->exportFunction('jsaCargarDatosDeConvenio', array("idtipoconvenio"));
$jxc->process();
echo $xHP->getHeader(true);
$xFRM = new cHForm("frm", "./");
$xBtn = new cHButton();
$xTxt = new cHText();
$xDate = new cHDate();
$xSel = new cHSelect();
$xFRM->addJsBasico();
$xFRM->addPersonaBasico();
?>
<body>
<fieldset>
	<legend><?php 
echo $xHP->getTitle();
?>
</legend>
		<form name="frmsolicitud" id="frmsolicitud" action="clssolicitudcredito_v102.php" method="POST" id="idfrmsolicitud">
 function setOut($out = OUT_HTML)
 {
     if ($out == SYS_DEFAULT) {
         $out = OUT_HTML;
     }
     $xHP = new cHPage("", HP_REPORT);
     $this->mOut = $out;
     switch ($out) {
         case OUT_EXCEL:
             //NADA
             break;
         case OUT_TXT:
             //NADA
             break;
         default:
             $xHP->setTitle($this->mTitulo);
             $xHP->setDevice($out);
             //setLog($out);
             foreach ($this->mCSSList as $key => $file) {
                 $xHP->addCSS($file);
             }
             $this->mHeader = $xHP->getHeader() . $this->mHeader;
             //$this->mHeader	.= "<style>.logo{ margin-left: .5em; max-height: 5em; max-width: 5em;	margin-top: 0 !important; border-color: #808080; z-index: 100000 !important;}</style>";
             //$this->mHeader	.= $xHP->setBodyinit("javascript:window.print();");
             $this->mHeader .= "<body>";
             $this->mFooter .= "</body></html>";
             break;
     }
 }