//$jxc ->process();
$jscallback = parametro("callback");
$tiny = parametro("tiny");
$form = parametro("form");
$action = parametro("action", SYS_NINGUNO);
$clave = parametro("id", null, MQL_INT);
$xHP->init();
$xFRM = new cHForm("frm", "./");
$msg = "";
//$xFRM->addJsBasico();
//$xFRM->addCreditBasico();
$xFRM->addSubmit();
$xP = new cCreditos_productos_otros_parametros();
$xGrid = new cHGrid("idotrosdatos", $xHP->getTitle());
$xGrid->addkey($xP->idcreditos_productos_otros_parametros()->get(), "false");
$xGrid->addElement($xP->clave_del_parametro()->get(), "TR.Parametro", "50%");
$xGrid->addElement($xP->valor_del_parametro()->get(), "TR.Valor", "50%");
$where = base64_encode(" `clave_del_producto`={$clave} ");
$xGrid->setListAction("../svc/datos.svc.php?out=jtable&tabla=creditos_productos_otros_parametros&w={$where}");
$xFRM->addHTML($xGrid->getDiv());
echo $xFRM->get();
echo $xGrid->getJsHeaders();
?>
<script>
$(document).ready(function () {
	<?php 
echo $xGrid->getJs(true);
?>
});
</script>
<?php 
$credito = parametro("credito", DEFAULT_CREDITO, MQL_INT);
$credito = parametro("idsolicitud", $credito, MQL_INT);
$credito = parametro("solicitud", $credito, MQL_INT);
$cuenta = parametro("cuenta", DEFAULT_CUENTA_CORRIENTE, MQL_INT);
$cuenta = parametro("idcuenta", $cuenta, MQL_INT);
$jscallback = parametro("callback");
$tiny = parametro("tiny");
$form = parametro("form");
$action = parametro("action", SYS_NINGUNO);
$xHP->init();
$xFRM = new cHForm("frm", "./");
$msg = "";
//$xFRM->addJsBasico();
//$xFRM->addCreditBasico();
//$xFRM->addSubmit();
/* ===========		GRID JS		============*/
$xHG = new cHGrid("personas_domicilios_paises");
$sqlpersonas_domicilios_paises = base64_encode("SELECT * FROM personas_domicilios_paises LIMIT 0,100");
$xHG->setListAction("../svc/datos.svc.php?out=jtable&q={$sqlpersonas_domicilios_paises}");
$xHG->addKey("clave_de_control", "TR.Clave");
$xHG->addElement("nombre_oficial", "TR.nombre", "10%");
$xHG->addElement("es_paraiso_fiscal", "TR.es paraiso_fiscal", "10%");
$xHG->addElement("es_considerado_riesgo", "TR.Nivel_de_riesgo", "10%");
$xHG->addElement("clave_numerica", "TR.Numero", "10%");
$xHG->addElement("clave_alfanumerica", "TR.clave_alfabetica", "10%");
$xFRM->addHTML($xHG->getDiv());
echo $xFRM->get();
//$jxc ->drawJavaScript(false, true);
echo $xHG->getJsHeaders();
echo $xHG->getJs(true, true);
$xHP->fin();