function jsa_getDatosDeCredito($solicitud)
{
    $xCred = new cCredito($solicitud);
    $xCred->initCredito();
    $xF = new cFecha();
    $xT = new cTipos();
    $dCreds = $xCred->getDatosDeCredito();
    $periocidad = $xCred->getPeriocidadDePago();
    $FMinistracion = $xCred->getFechaDeMinistracion();
    $contrato_corriente = $xCred->getContratoCorriente();
    $xPlanGen = new cPlanDePagosGenerador();
    $xPlanGen->initPorCredito($solicitud);
    $FPrimerAb = $xPlanGen->getFechaDePrimerPago();
    $xF = new cFecha(0, $FMinistracion);
    $FM_d = $xF->dia();
    $FM_a = $xF->anno();
    $FM_m = $xF->mes();
    $xF2 = new cFecha(1, $FPrimerAb);
    $xF2->set($FPrimerAb);
    $PA_d = $xF2->dia();
    $PA_a = $xF2->anno();
    $PA_m = $xF2->mes();
    $tab = new TinyAjaxBehavior();
    //setLog("$PA_d --- $PA_m ---- $PA_a  - - - - - $FPrimerAb");
    $tab->add(TabSetvalue::getBehavior('ideldia1', $FM_d));
    $tab->add(TabSetvalue::getBehavior('idelmes1', $FM_m));
    $tab->add(TabSetvalue::getBehavior('idelanno1', $FM_a));
    $tab->add(TabSetvalue::getBehavior('ideldia0', $PA_d));
    $tab->add(TabSetvalue::getBehavior('idelmes0', $PA_m));
    $tab->add(TabSetvalue::getBehavior('idelanno0', $PA_a));
    $tab->add(TabSetvalue::getBehavior('idDescripcionSolicitud', $xCred->getShortDescription()));
    $tab->add(TabSetvalue::getBehavior('idcuenta', $contrato_corriente));
    //$xCred->getPeriocidadDePago() != CREDITO_TIPO_PERIOCIDAD_CATORCENAL
    if ($xCred->getTipoEnSistema() == CREDITO_PRODUCTO_NOMINA) {
        $tab->add(TabSetvalue::getBehavior('idFormaDePago', $xCred->getTipoDePago()));
        //setLog("El pago es " . $xCred->getPeriocidadDePago() );
        if ($xCred->getPeriocidadDePago() != CREDITO_TIPO_PERIOCIDAD_CATORCENAL) {
            $tab->add(TabSetvalue::getBehavior('idtipo_plan_pagos', CREDITO_TIPO_DIAS_DE_PAGO_PERSONALIZADOS));
        }
    }
    return $tab->getString();
}
$xHP = new cHPage("TR.Gastos en Efectivo");
$xF = new cFecha();
$xCaja = new cCaja();
if ($xCaja->getEstatus() == TESORERIA_CAJA_CERRADA) {
    header("location:../404.php?i=200");
}
echo $xHP->getHeader();
$jscallback = parametro("callback");
$tiny = parametro("tiny");
$form = parametro("form");
$action = parametro("action", SYS_NINGUNO);
$monto = parametro("monto", 0, MQL_FLOAT);
$tipo_de_recibo = parametro("tiporecibo", 0, MQL_INT);
$xJS = new jsBasicForm("frmgtosefvo");
$lowdate = $xF->setSumarDias(DIAS_PAGO_UNICOS);
$ndia = $xF->dia();
$nmes = $xF->mes();
$nano = $xF->anno();
$xFRM = new cHForm("frm", "./");
$xBtn = new cHButton();
$xTxt = new cHText();
$xDate = new cHDate();
$xSel = new cHSelect();
?>
<script>
	function fechaminima() {
			document.frmgtosefvo.eldia0.value = <?php 
echo $ndia;
?>
;
			document.frmgtosefvo.elmes0.value = <?php 
?>
<fieldset>
<legend>Actualizacion / correccion de Datos</legend>

<?php 
$elsocio = isset($_GET["elsocio"]) ? $_GET["elsocio"] : false;
$action = isset($_GET["a"]) ? $_GET["a"] : false;
if ($action == false) {
    if ($elsocio != false) {
        $xSoc = new cSocio($elsocio);
        $xSoc->init();
        $DSoc = $xSoc->getDatosInArray();
        $xF = new cFecha(0, $DSoc["fecha_de_nacimiento"]);
        $anac = $xF->anno();
        $mnac = $xF->mes();
        $dnac = $xF->dia();
        /*
        		codigo, nombrecompleto, apellidopaterno, 
        		apellidomaterno, rfc, curp, fechaentrevista, fechaalta, estatusactual, 
        		region, cajalocal, fechanacimiento, lugarnacimiento, tipoingreso, estadocivil, 
        		genero, eacp, observaciones, idusuario, grupo_solidario, personalidad_juridica, dependencia, 
        		regimen_conyugal, sucursal, fecha_de_revision, tipo_de_identificacion, documento_de_identificacion 
        */
        $pais = $xSoc->getPaisDeOrigen();
    }
    ?>
<form name ='frmsolingreso' METHOD='POST' ACTION='frmupdatesocios.php?a=ok'>
		<input type='hidden' name='uidsocio' value='<?php 
    echo $DSoc["codigo_de_socio"];
    ?>
'>
 function get($label = "", $Fecha = false, $indice = false)
 {
     $xTr = new cLang();
     $label = $xTr->getT($label);
     $maxSize = $this->mLabelSize == 0 ? HP_LABEL_SIZE : $this->mLabelSize;
     if ($indice !== false) {
         $this->mIndex = $indice;
     }
     if (strlen($label) < $maxSize) {
         $rll = $maxSize - strlen(html_entity_decode($label));
     }
     $extraDate = "";
     $label = $label == "" ? "" : "<label for='idfecha-" . $this->mIndex . "'>{$label}</label>";
     $this->set($Fecha);
     $xF = new cFecha($this->mIndex, $this->mFecha);
     $events = $this->mEvents;
     $xF->init(FECHA_FORMATO_MX);
     $id = $this->mId == "" ? "idfecha-" . $this->mIndex . "" : $this->mId;
     if ($this->mTipoFecha == FECHA_TIPO_NACIMIENTO) {
         $anno = $xF->anno() - 18;
         $xF->set("{$anno}-" . $xF->mes() . "-" . $xF->dia());
         $this->set($xF->get());
         $extraDate = ",selectYears: true ";
     }
     $txt = "<input type=\"text\" id=\"{$id}\" value=\"" . $xF->get() . "\" name=\"{$id}\" {$events}><script>\$(\"#{$id}\").pickadate({format: 'dd-mm-yyyy',formatSubmit:'yyyy-mm-dd', editable : true {$extraDate}});</script> ";
     $initDiv = $this->mClassDiv == "" ? "" : "<div class=\"" . $this->mClassDiv . "\">";
     $endDiv = $this->mClassDiv == "" ? "" : "</div>";
     return $this->mSelects == false ? $initDiv . $label . $txt . $endDiv : $initDiv . $label . $xF->show(true, $this->mTipoFecha) . $endDiv;
 }