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; }
$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"]; $msg = ""; $afectable = parametro("idaplicar", false, MQL_BOOL); $prePath = PATH_BACKUPS; $lim = 1; //sizeof($usrFiles) -1;
$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); $estado = $cEs->clave_numerica()->v(); if ($eliminar == true) { my_query("DELETE FROM `general_colonias` WHERE `codigo_de_estado` = {$estado} "); my_query("DELETE FROM `general_municipios` WHERE `clave_de_entidad` = {$estado} "); //my_query("DELETE FROM `catalogos_localidades` WHERE `clave_de_estado` = $estado "); } } } $xFRM->addSubmit(); echo $xFRM->get(); echo $xHP->setBodyEnd(); //$jxc ->drawJavaScript(false, true); ?>
$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(); $xFRM->addHTML("<h2>" . PERSONAS_TITULO_PARTES . "</h2>"); $xFRM->addHTML($xTbl->get()); $xFRM->addHTML('<div id="ListaDeRelaciones"></div>'); } } if ($agregardom == true and setNoMenorQueCero($persona) > 0) { $xSoc->set($persona); if ($xSoc->init() == true) { $xCol = null; $nexterior = parametro("idnumeroexterior"); $tipo_acceso = parametro("idtipoacceso", "calle", MQL_RAW); $ninterior = parametro("idnumerointerior"); $referencia = parametro("idreferencias");
//$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"); $importar = parametro("idimporta", false, MQL_BOOL); $aml = parametro("idaml", false, MQL_BOOL); $producto_destino = parametro("idproductocaptacion", CAPTACION_PRODUCTO_ORDINARIO, MQL_INT); class cTmp { public $ID_PERSONA = 1;
$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> var xG = new Gen(); function jsVincularAval(){ jsaVincularAval(); setTimeout("jsClose()",2500); }
<legend>Rango de Niveles</legend> <select name="rangoNiveles" id="idrangoNiveles"> <option value="1">Titulo</option> <option value="2">SubTitulo</option> <option value="3">Mayor</option> <option value="99">Personalizar</option> <option value="0">Todas</option> </select> </fieldset></td> </tr> <tr> <td> <fieldset> <legend>Otras opciones</legend> <?php echo $xChk->get("TR.Solo Afectables", "soloAfectables"); ?> <p><input type="checkbox" name="QueAcumulenA" />Que Acumulen a :</p> <p><input type='text' name='ci' value='<?php echo ZERO_EXO; ?> ' id="idci" size="35" onchange="getCuentaFmt('idci');" /></p> <?php echo $xChk->get("TR.Mostrar Todos", "mostrarTodos"); ?> <!-- <p><input type="checkbox" name="mMostrarTodos" />Mostrar Todas las Cuentas(Es Tardado)</p> --> </fieldset> </td> </tr>
<?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();
$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(); $xFRM = new cHForm("frmcreditos_tipoconvenio", "creditos_tipoconvenio"); $xFRM->addSubmit(); $xEmp = new cEmpresas(100);
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}"); }
$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); $xSoc->init(); $xSoc->addMemo($tipomemo, $txtmemo, $credito, $fechamemo, $notificar, $notificar); $xFRM->addAviso("EL REGISTRO SE HA HECHO SATISFACTORIAMENTE"); if (MODO_DEBUG == true) { $xFRM->addLog($xSoc->getMessages()); }
$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 }); } </script> <?php } else { $table = strtolower($table); $xHP = new cHPage("TR.Editar estructura", HP_GRID);
$xCP = new cHText(); $xFRM->addHElem($xCP->getNumero("idcodigopostal", $xLoc->DomicilioCodigoPostal(), "TR.codigo_postal")); $xFRM->addHElem($xSel->getListaDeEntidadesFed("", true)->get(true)); $xHSel->setEnclose(false); $xHSel->addOptions(array("calle" => "Calle", "avenida" => "Avenida", "andador" => "Andador", "camino_rural" => "Camino Rural")); $xTxtE->setDivClass(""); $xFRM->addDivSolo($xHSel->get("idtipoacceso", "", "TR.calle"), $xTxtE->getNormal("idnombreacceso", ""), "tx14", "tx34"); $xFRM->addHElem($xTxt->getNormal("idnumeroexterior", "", "TR.Numero_Exterior")); $xFRM->addHElem($xTxt->getNormal("idnumerointerior", "", "TR.Numero_Interior")); $xFRM->addHElem($xTx3->getDeNombreDeColonia("idnombrecolonia", EACP_COLONIA, "TR.Colonia")); $xFRM->addHElem("<div class='tx4' id='txtmunicipio'></div>"); $xFRM->addHElem("<div class='tx4' id='txtlocalidad'></div>"); $xFRM->addHElem($xTxt->getNumero("idtelefono1", "", "TR.TELEFONO_FIJO")); $xFRM->addHElem($xTxt->getNumero("idtelefono2", "", "TR.TELEFONO_MOVIL")); $xFRM->addObservaciones(); $xFRM->addHElem($xChk->get("TR.Domicilio Principal?", "idprincipal")); $xFRM->addFootElement("<input type='hidden' id='idcolonia' name='idcolonia' value='' />"); $xFRM->addFootElement("<input type='hidden' id='idsocio' name='idsocio' value='{$persona}' />"); echo $xFRM->get(); $jxc->drawJavaScript(false, true); ?> <script> var mEdoAc = <?php echo $xLoc->DomicilioEstadoClaveNum(); ?> ; var xGen = new Gen(); var xVal = new ValidGen(); $(document).ready(function () { $('#id-frmvivienda').isHappy({ fields: {
$xA->setAgregarProgramacion($titulo, $contenido, $destinatarios, $programacion, $generadoen, $medios, $precomandos, $intentcheck); $msg .= $xA->getMessages(); $msg .= $xHP->lang(MSG_READY_SAVE); } } $xPRG = new cAlertasDelSistema(); $xSel2 = new cHSelect(); $xSel2->addOptions($xPRG->getATipoDeEvento()); $xSel2->addEvent("jsaListadoDeEventos()", "onblur"); $xFRM->addHElem($xTxt->getNormal("idtitulo", $titulo, "TR.Titulo del Aviso")); $xFRM->addHElem($xSel2->get("idgeneradoen", "TR.Generado")); $xSel->addOptions($xPRG->getTipoDeProgramacion()); $xFRM->addHElem($xSel->get("idtipodeprogramacion", "TR.Programado")); $xFS2 = new cHFieldset("TR.Destinatarios"); $xFS = new cHFieldset("TR.Medios de envio"); $xFS->addHElem($xChk->get("TR.Aviso por Telefono", "portelefono")); $xFS->addHElem($xChk->get("TR.Aviso por Email", "pormail")); $xFS->addHElem($xChk->get("TR.Aviso por SMS", "porsms")); $xFRM->addHElem($xFS->get()); $xFRM->addHElem("<div id='lstevento'></div>"); $xFRM->addSeccion("iddestinatarios", "TR.Destinatarios"); $xOficiales = $xSel->getListaDeOficiales(); $xOficiales->addEvent("onchange", "jsAddItem(this, '#idoficiales')"); $xFRM->addDivSolo($xOficiales->get(), $txtA->get("idoficiales", $oficiales), "tx2", "tx2"); $xEmpresas = $xSel->getListaDeEmpresas("", true); $xEmpresas->addEvent("onchange", "jsAddItem(this, '#idempresas')"); $xFRM->addDivSolo($xEmpresas->get(), $txtA->get("idempresas", $empresas), "tx2", "tx2"); $xFRM->addHElem($txtA->get("idpersonas", $personas, "TR.Personas")); $xFRM->addHElem($txtA->get("idmails", $mails, "TR.Correos electronicos")); $xFRM->addAviso($msg); $xFRM->endSeccion();