function jsaReRelaciones($idsocio) { //Checar compatibilidad numerica entre los dependientes economicos $sqlL = new cSQLListas(); $cBenef = new cTabla($sqlL->getListadoDeRelaciones($idsocio)); $xTbl = new cHTabla("idtblrels"); $xHSel = new cHSelect(); $xChk = new cHCheckBox(); $xText = new cHText(); $xText->setDivClass(""); $xChk->setDivClass(""); $xBtn = new cHButton(); $xUl = new cHUl(); $li = $xUl->getO(); $li->setT("ul"); $li->setClass("tags blue"); $li->add($xBtn->getBasic("TR.Guadar", "jsGuardarReferencia()", $xBtn->ic()->GUARDAR, "idguardar", false, true), ""); $xTbl->initRow(); $xTbl->addTD($xText->getDeNombreDePersona()); $xTbl->addTD($xHSel->getListaDeTiposDeRelaciones("", "")->get("")); $xTbl->addTD($xHSel->getListaDeTiposDeParentesco()->get("")); $xTbl->addTD($xChk->get("TR.es dependiente_economico", "dependiente")); $xTbl->addRaw("<td class='toolbar-24'>" . $xUl->get() . "</td>"); $xTbl->endRow(); $cBenef->addTool(1); $cBenef->addTool(2); $cBenef->setKeyField("idsocios_relaciones"); return $xTbl->get() . $cBenef->Show(); }
function jsaGetCreditos($convenio, $estatus, $periocidad, $oficial) { $xLi = new cSQLListas(); $ByOficial = CREDITO_USAR_OFICIAL_SEGUIMIENTO == true ? "\tAND\t(`creditos_solicitud`.`oficial_seguimiento` != {$oficial}) " : "\tAND\t(`creditos_solicitud`.`oficial_credito` != {$oficial}) "; //saveError( 22, $_SESSION["SN_b80bb7740288fda1f201890375a60c8f"], "$oficial Ingreso al Modulo de Asignacion de Oficiales"); $sqlCred = CREDITO_USAR_OFICIAL_SEGUIMIENTO == true ? $xLi->getListadoDeCreditosConOficialSeguimiento(false, $estatus, $periocidad, $convenio, $ByOficial) : $xLi->getListadoDeCreditosConOficial(false, $estatus, $periocidad, $convenio, $ByOficial); $xTbl = new cTabla($sqlCred, 2); $xChk = new cHCheckBox(); $xTbl->setTdClassByType(); $xTbl->addEspTool($xChk->get("", "chk" . STD_LITERAL_DIVISOR . "_REPLACE_ID_")); $xTbl->setWidth(); return $xTbl->Show(); //return $sqlCred; }
//===================================================================================================== $xHP = new cHPage("TR.Carga de Personas"); ini_set("max_execution_time", 600); $action = isset($_GET["o"]) ? $_GET["o"] : false; $xHP->init(); $xFRM = new cHForm("frmSendFiles", "mae.socios.upload.frm.php?o=u"); $xFRM->setEnc("multipart/form-data"); $xBtn = new cHButton(); $xTxt = new cHText(); $xDate = new cHDate(); $xSel = new cHSelect(); $msg = ""; $ql = new MQL(); $xDiv = new cHDiv(); $xFil = new cHFile(); $xChk = new cHCheckBox(); $xImp = new cFileImporter(); //Si la Operacion es Configurar los Datos if ($action == false) { $xFRM->addHElem($xFil->getBasic("idarchivo", "")); $xFRM->addHElem($xChk->get("TR.Afectar Base de Datos", "idaplicar")); $xFRM->addSubmit(); $xFRM->addFootElement('<input type="hidden" name="MAX_FILE_SIZE" value="1024000">'); } elseif ($action == "u") { //cargar datos alfanumericos del estados $sqlEstados = " SELECT\t`general_estados`.`clave_alfanumerica`,\t`general_estados`.`nombre` FROM\t`general_estados` `general_estados` "; $arrEstados = $ql->getArrayRecord($sqlEstados); $sqlEmpresas = "SELECT\t`socios_aeconomica_dependencias`.`idsocios_aeconomica_dependencias`, `socios_aeconomica_dependencias`.`descripcion_dependencia` FROM\t`socios_aeconomica_dependencias` `socios_aeconomica_dependencias`"; $arrEmpresas = $ql->getArrayRecord($sqlEmpresas); $usrFiles = array(); $usrFiles[0] = $_FILES["idarchivo"];
$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); echo $xHP->getHeader(); echo $xHP->setBodyinit(); $xFRM = new cHForm("frmpugarentidades", "purgar-entidadesfederativas.frm.php?action=next"); $xBtn = new cHButton(); $xTxt = new cHText(); $xDate = new cHDate(); $xSel = new cHSelect(); $xChk = new cHCheckBox(); $msg = ""; $xFRM->setTitle("TR.purgar de entidadades federativas"); $xFRM->addJsBasico(); //$xFRM->addCreditBasico(); $mql = new MQL(); //Obtener lista de estados $sql = "SELECT * FROM `general_estados` "; $data = $mql->getDataRecord($sql); $cEs = new cGeneral_estados(); foreach ($data as $rows) { $cEs->setData($rows); if ($action == SYS_NINGUNO) { $xFRM->addHTML($xChk->get($cEs->nombre()->v(), "estado" . $cEs->clave_numerica()->v())); } else { $eliminar = parametro("estado" . $cEs->clave_numerica()->v(), false, MQL_BOOL);
if (MODO_DEBUG == true) { $msg .= $xGrupo->getMessages(); } } } //Agregar Domicilio si existe $persona = $xSoc->getCodigo(); $xFRM->addHTML($xSoc->getFicha()); $lastpersona = $xCL->getUltimoSocioRegistrado(true); $xFRM->addPersonaComandos($persona); $xFRM->addAvisoRegistroOK(); //==================================== Nuevas Relaciones if ($origen_relacion == false) { $xTbl = new cHTabla("idtblrels"); $xHSel = new cHSelect(); $xChk = new cHCheckBox(); $xText = new cHText(); $xText->setDivClass(""); $xChk->setDivClass(""); $xBtn = new cHButton(); $xUl = new cHUl(); $li = $xUl->getO(); $li->setT("ul"); $li->setClass("tags blue"); $li->add($xBtn->getBasic("TR.Guadar", "jsGuardarReferencia()", $xBtn->ic()->GUARDAR, "idguardar", false, true), ""); $xTbl->initRow(); $xTbl->addTD($xText->getDeNombreDePersona()); $xTbl->addTD($xHSel->getListaDeTiposDeRelaciones("", "")->get("")); $xTbl->addTD($xHSel->getListaDeTiposDeParentesco()->get("")); $xTbl->addTD($xChk->get("TR.es dependiente_economico", "dependiente")); $xTbl->addRaw("<td class='toolbar-24'>" . $xUl->get() . "</td>");
$_SESSION["current_file"] = addslashes($theFile); //===================================================================================================== $xHP = new cHPage("TR.Carga Masiva de Captacion", HP_FORM); ini_set("max_execution_time", 600); //$jxc = new TinyAjax(); //$jxc ->exportFunction('datos_del_pago', array('idsolicitud', 'idparcialidad'), "#iddatos_pago"); //$jxc ->process(); $jscallback = parametro("callback"); $tiny = parametro("tiny"); $form = parametro("form"); $action = parametro("action", SYS_NINGUNO); $xHP->init(); $xFRM = new cHForm("frmcargamasiva", "vista.carga-masiva.frm.php?action=" . MQL_TEST); $msg = ""; $xSel = new cHSelect(); $xChk = new cHCheckBox(); $xFRM->setEnc("multipart/form-data"); if ($action == SYS_NINGUNO) { $xFRM->OFile("idarchivo", ""); $xFRM->addHElem($xSel->getListaDeEmpresas()->get("TR.Empresas", true)); $xFRM->addHElem($xSel->getListaDeCaptacionProductos()->get("TR.Producto de Destino", true)); $xFRM->addHElem($xChk->get("TR.Omitir Importacion", "idimporta")); //if( MODO_MIGRACION == true ){ $xFRM->addHElem($xChk->get("TR.Omitir AML", "idaml")); //} $xFRM->addSubmit("TR.Probar"); $xFRM->OButton("TR.Guardar", "setEnviarDocto()", "ejecutar"); } else { $xFi = new cFileImporter(); $doc1 = isset($_FILES["idarchivo"]) ? $_FILES["idarchivo"] : false; $observaciones = parametro("idobservaciones");
$cuenta = parametro("idcuenta", $cuenta, MQL_INT); $jscallback = parametro("callback"); $tiny = parametro("tiny"); $form = parametro("form"); $action = parametro("action", SYS_NINGUNO); $monto = 0; if (setNoMenorQueCero($persona) <= DEFAULT_SOCIO) { $xDoc = new cCredito($credito); $xDoc->init(); $persona = $xDoc->getClaveDePersona(); $monto = $xDoc->getMontoAutorizado(); } $xHP->init(); $xFRM = new cHForm("frm", "./"); $xHSel = new cHSelect(); $xChk = new cHCheckBox(); $xText = new cHText(); $msg = ""; $xFRM->addPersonaBasico(); $xFRM->addGuardar("jsVincularAval()"); $xFRM->addHElem($xChk->get("TR.es dependiente_economico", "dependiente")); $xFRM->addHElem($xHSel->getListaDeTiposDeRelaciones("", PERSONAS_REL_CLASE_AVAL)->get(true)); $xFRM->addHElem($xHSel->getListaDeTiposDeParentesco()->get(true)); $xFRM->OMoneda("idmonto", $monto, "TR.Monto Avalado"); $xFRM->OHidden("iddocumentorelacionado", $credito, ""); $xFRM->OHidden("idpersonarelacionado", $persona, ""); $xFRM->addAviso(""); echo $xFRM->get(); $jxc->drawJavaScript(false, true); ?> <script>
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("TR.Reporte de Catalogo de Cuentas", HP_FORM); echo $xHP->getHeader(); echo jsBasicContable("frmreports"); $xBtn = new cHButton(""); $xChk = new cHCheckBox(); echo $xHP->setBodyinit("initComponents();"); ?> <form name="frmreports" method="post" action="" class="formoid-default"> <table> <tbody> <tr> <td><fieldset> <legend>Tipo de Cuentas</legend> Tipo de Cuentas :<br /> <?php $cCta = new cSelect("tipocuentas", "", "contable_catalogotipos"); //$cCta->addEspOption("algunas", "Algunas"); $cCta->addEspOption(SYS_TODAS); //$cCta->addEspOption("cuadre", "Cuadre"); $cCta->setOptionSelect(SYS_TODAS);
<?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 $iduser = $_SESSION["log_id"]; //===================================================================================================== $xHP = new cHPage("TR.Reportes de Creditos"); $xHP->init(); $xChk = new cHCheckBox(); $xB = new cPanelDeReportes(iDE_CREDITO, "general_operaciones"); $xB->setTitle($xHP->getTitle()); $xB->setConOperacion(); $xB->setConRecibos(); $xB->addListadDeCuentasBancarias(); $xB->addHTML($xChk->get("TR.Omitir Estadisticos", "estadisticos")); echo $xB->get(); echo $xB->getJs(true); $xHP->fin();
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("Pruebas de Fechas", HP_FORM); echo $xP->getHeader(); echo $xP->setBodyinit(); //Crear formularios $xFRM = new cHForm("frmTest", "./test.php"); $xHTxt = new cHText(""); $xHChk = new cHCheckBox(); $xFRM->setTitle("TR.Pruebas HTML"); //$xFRM->addHTML("<p>Esto es un parrafo de prueba</p>"); $xFRM->addHElem($xHChk->get("id1")); $xFRM->addHElem($xHChk->get("id2")); $xFRM->addHElem($xHChk->get("id3")); $xFRM->addHElem($xHChk->get("id4")); $xSoc = new cSocios_general(); $xSoc->setData($xSoc->query()->initByID(DEFAULT_SOCIO)); var_dump($xSoc->query()->getCampos()); //$xFRM->addAviso( $xSoc->query()->getListaDeCampos() ); $xFRM->OMoneda("ix", 4500, convertirletras("4,455.05")); $xFRM->OMoneda("ix", 4500, convertirletras("4454.455.05")); $xFRM->OMoneda("ix", 4500, convertirletras(45000)); //echo $xFRM->get(); $xTabla = new cCreditos_tipoconvenio();
function addCheckBox($title = "", $parametro = "") { $xChk = new cHCheckBox(); $this->mJsVars .= "var id{$parametro}\t= \$('#id{$parametro}').prop('checked');\r\n"; $this->mURL .= " + \"&{$parametro}=\" + id{$parametro} "; $this->mStruct .= $xChk->get($title, "id{$parametro}"); }
$form = parametro("form"); $action = parametro("action", SYS_NINGUNO); $predef = parametro("d"); $div = STD_LITERAL_DIVISOR; $defval = "{$persona}" . $div . "{$credito}" . $div . "1" . $div . "99" . $div . "ANOTE_AQUI_SU_TEXTO"; if ($predef == "") { $defval = $predef; } $D = explode($div, $defval); $mem = isset($D[4]) ? $D[4] : ""; $xHP->init(); //jsbasic("frmhistorial", "", "."); $xHP->init(); $xFRM = new cHForm("frmhistorial", "./frmhistorialdesocios.php?action=" . MQL_ADD); $xSel = new cHSelect(); $xChk = new cHCheckBox(); $msg = ""; $xFRM->addJsBasico(); $xFRM->addCreditBasico(); $xFRM->addSubmit(); $xFRM->addHElem($xSel->getListaDeTiposDeMemoPersonas()->get(true)); $xFRM->addHElem($xChk->get("TR.Notificar", "idnotificar")); $xFRM->OTextArea("idmemo", $mem, "TR.Texto del memo"); if ($persona > DEFAULT_SOCIO) { $idgrupo = parametro("idgrupo", DEFAULT_GRUPO, MQL_INT); $txtmemo = parametro("idmemo"); $tipomemo = parametro("idtipodememo"); $notificar = parametro("idnotificar", false, MQL_BOOL); $fechamemo = fechasys(); if (trim($txtmemo) != "") { $xSoc = new cSocio($persona);
$table = parametro("ctable", false, MQL_RAW); $actualizar = parametro("forzar", false, MQL_BOOL); if ($actualizar == true) { $table = strtolower($table); $xUtil = new cTableStructure($table); $command = $xUtil->getNumeroDeCampos() > 0 ? SYS_CERO : SYS_UNO; $xUtil->setStructureTableByDemand($command); //0 update } if ($table == false) { $xHP->init(); $xFRM = new cHForm("frmeditstructure", "frm_edit_structure.php"); $xBtn = new cHButton(); $xTxt = new cHText(); $xDate = new cHDate(); $xChk = new cHCheckBox(); //$xSel = new cHSelect(); $xFRM->setTitle("TR.Editar Estructura del Sistema"); $xSel = new cSelect("ctable", "ctable", "SHOW TABLES IN " . MY_DB_IN); $xSel->setEsSql(); $xFRM->addHElem($xSel->get("TR.Nombre de la Tabla", true)); $xFRM->addHElem($xChk->get("TR.Actualizar", "forzar")); $xFRM->addSubmit(); $xFRM->addToolbar($xBtn->getBasic("TR.Respaldo", "jsGetBackup()", "respaldo", "idgetrespaldo", false)); echo $xFRM->get(); ?> <script> var xg = new Gen(); function jsGetBackup(){ var url = "http://localhost/utils/download.php?tabla=general_structure"; xg.w({ url : url, w : 800, h : 600 });
$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("initComponents()"); $xFRM = new cHForm("frmvivienda", "frmsociosvivienda.php?action=2&persona={$persona}"); $xBtn = new cHButton(); $xTxtE = new cHText(); $xTX2 = new cHText(); $xDate = new cHDate(); $xSel = new cHSelect(); $xChk = new cHCheckBox(); $xTxt = new cHText(); $xHSel = new cHSelect(); $xTx3 = new cHText(); if ($action == SYS_NINGUNO) { } else { //agregar $xSoc = new cSocio($persona); $xSoc->init(); $calle = parametro("idnombreacceso"); if (trim($calle) == "") { } else { $xCol = null; $nexterior = parametro("idnumeroexterior"); $tipo_acceso = parametro("idtipoacceso", "calle", MQL_RAW); $ninterior = parametro("idnumerointerior");
$jxc->exportFunction('jsaListadoDeEventos', array('idgeneradoen', "idtipodeprogramacion"), "#lstevento"); $jxc->process(); /*$persona = parametro("persona", DEFAULT_SOCIO, MQL_INT); $persona = parametro("socio", $persona, MQL_INT); $persona = parametro("idsocio", $persona, MQL_INT); $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("frmalertas", "alertas.agregar.frm.php?action=1"); $xBtn = new cHButton(); $xTxt = new cHText(); $xDate = new cHDate(); $xSel = new cHSelect(); $xChk = new cHCheckBox(); $msg = ""; $txtA = new cHTextArea(); $titulo = parametro("idtitulo"); $oficiales = parametro("idoficiales"); $empresas = parametro("idempresas"); $personas = parametro("idpersonas"); $ByTel = parametro("portelefono", false, MQL_BOOL); $ByMail = parametro("pormail", false, MQL_BOOL); $BySMS = parametro("porsms", false, MQL_BOOL); $precomandos = parametro("idcomando", "", MQL_RAW); $intentcheck = parametro("idcomandocheck", "", MQL_RAW); $contenido = parametro("idcontenido", "", MQL_RAW); $programacion = parametro("idprogramacion"); $tipodeprog = parametro("idtipodeprogramacion"); $generadoen = parametro("idgeneradoen");
$li->setClass("tags blue"); $li->add($xBtn->getBasic("TR.Guadar", "jsGuardarPropietario()", $xBtn->ic()->GUARDAR, "idguardar", false, true), ""); $xTbl->initRow(); $xTbl->addTD($xText->getDeNombreDePersona("idpersona1")); $xFRM->OHidden("idtipoderelacion1", PERSONAS_REL_PROP_REAL); $xTbl->addTD($xHSel->getListaDeTiposDeParentesco("idtipodeparentesco1")->get("")); $xTbl->addRaw("<td class='toolbar-24'>" . $xUl->get() . "</td>"); $xTbl->endRow(); $xFRM->addHElem($xTbl->get()); //propietarios reales $xFRM->endSeccion(); $xFRM->addSeccion("idprovs", "TR.Proveedores de recursos"); //proveedor de recursos. $xTbl = new cHTabla("idtblprov"); $xHSel = new cHSelect(); $xChk = new cHCheckBox(); $xText = new cHText(); $xText->setDivClass(""); $xChk->setDivClass(""); $xBtn = new cHButton(); $xUl = new cHUl(); $li = $xUl->getO(); $li->setT("ul"); $li->setClass("tags blue"); $li->add($xBtn->getBasic("TR.Guadar", "jsGuardarProveedor()", $xBtn->ic()->GUARDAR, "idguardar", false, true), ""); $xTbl->initRow(); $xTbl->addTD($xText->getDeNombreDePersona("idpersona2")); $xFRM->OHidden("idtipoderelacion2", PERSONAS_REL_PROV_RECURSOS); $xTbl->addTD($xHSel->getListaDeTiposDeParentesco("idtipodeparentesco2")->get("")); $xTbl->addRaw("<td class='toolbar-24'>" . $xUl->get() . "</td>"); $xTbl->endRow();