当前位置: 首页>>代码示例>>PHP>>正文


PHP parametro函数代码示例

本文整理汇总了PHP中parametro函数的典型用法代码示例。如果您正苦于以下问题:PHP parametro函数的具体用法?PHP parametro怎么用?PHP parametro使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了parametro函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: header

    header("location:../404.php?i=999");
}
$_SESSION["current_file"] = addslashes($theFile);
//<=====	FIN_H
$iduser = $_SESSION["log_id"];
//=====================================================================================================
//$xH			= new cHObject(HP_SERVICE);
$xInit = new cHPage(HP_SERVICE);
//header("Content-type: text/xml");
header('Content-type: application/json');
$txt = "";
$action = "";
$DDATA = $_REQUEST;
$action = isset($DDATA["action"]) ? $DDATA["action"] : SVC_LIST;
$arg = parametro("arg1", 0, MQL_FLOAT);
$arg2 = parametro("arg2", AML_CLAVE_MONEDA_LOCAL);
$rs = array();
$money = new cTesoreria_monedas();
$money->setData($money->query()->initByID($arg2));
$valor_local = $money->quivalencia_en_moneda_local()->v();
$valor = $arg * $valor_local;
$letras = convertirletras($valor, $arg2);
$rs["equivalencia"] = $valor;
$rs["letras"] = $letras;
$rs["cotizacion"] = $valor_local;
echo json_encode($rs);
//echo "{ \"valor\" : $valor, \"letras\" : \"$letras\" }";
//$xLog       = new cSystemLog();
//$xLog->setRotate();
//$xLog->setSave($sql);
//$xT->clave_de_actividad()
开发者ID:Cywaithaka,项目名称:S.A.F.E.-Open-Source-Microfinance-Suite,代码行数:31,代码来源:equivalente.moneda.svc.php

示例2: parametro

$iddocto = parametro("idcuenta", DEFAULT_CUENTA_CORRIENTE);
$recibo = parametro("idrecibo");
$reciboIDE = 0;
//
$actload = "";
$Fecha = parametro("idfecha-0", false);
$Fecha = $Fecha == false ? fechasys() : $xF->getFechaISO($Fecha);
$idsocio = parametro("idsocio", false, MQL_INT);
//$xT->cInt($_POST["idsocio"]);
$detalles = parametro("idobservaciones", "");
$monto = parametro("idmonto", 0, MQL_FLOAT);
$cheque = parametro("cheque", DEFAULT_CHEQUE);
$comopago = parametro("ctipo_pago", DEFAULT_TIPO_PAGO, MQL_RAW);
$folio_fiscal = parametro("foliofiscal", DEFAULT_RECIBO_FISCAL);
$msg = parametro(SYS_MSG);
$action = parametro("action", SYS_NINGUNO);
$xCaja = new cCaja();
if ($xCaja->getEstatus() == TESORERIA_CAJA_CERRADA) {
    header("location:../404.php?i=200");
}
if (isset($iddocto)) {
    $actload = " onload='jsImprimirRecibo();' ";
}
$jxc = new TinyAjax();
function jsaGetIDE($socio, $monto, $tipo_de_pago)
{
    $xSoc = new cSocio($socio);
    $xSoc->init();
    $x = $xSoc->getIDExPagarByPeriodo(false, $monto, $tipo_de_pago);
    $tab = new TinyAjaxBehavior();
    $tab->add(TabSetValue::getBehavior("idide", $x));
开发者ID:Cywaithaka,项目名称:S.A.F.E.-Open-Source-Microfinance-Suite,代码行数:31,代码来源:frmdepositoinversion.php

示例3: cHPage

$xHP = new cHPage("TR.REPORTE DE PERSONAS CLASIFICADAS COMO PEPS", HP_REPORT);
$xL = new cSQLListas();
$xF = new cFecha();
$query = new MQL();
$estatus = parametro("estado", SYS_TODAS);
$frecuencia = parametro("periocidad", SYS_TODAS);
$producto = parametro("convenio", SYS_TODAS);
$producto = parametro("producto", $producto);
$empresa = parametro("empresa", SYS_TODAS);
$sucursal = parametro("sucursal", SYS_TODAS, MQL_RAW);
$out = parametro("out", SYS_DEFAULT);
$FechaInicial = parametro("on", false);
$FechaInicial = parametro("fecha-0", $FechaInicial);
$FechaInicial = $FechaInicial == false ? FECHA_INICIO_OPERACIONES_SISTEMA : $xF->getFechaISO($FechaInicial);
$FechaFinal = parametro("off", false);
$FechaFinal = parametro("fecha-1", $FechaFinal);
$FechaFinal = $FechaFinal == false ? fechasys() : $xF->getFechaISO($FechaFinal);
$jsEvent = $out != OUT_EXCEL ? "initComponents()" : "";
$senders = getEmails($_REQUEST);
$xODat = new cPersonasCatalogoOtrosDatos();
$sql = "SELECT\r\n\t`socios`.`codigo`,\r\n\t`socios`.`nombre`,\r\n\t`socios_otros_parametros`.`clave_del_parametro` \r\nFROM\r\n\t`socios_otros_parametros` `socios_otros_parametros` \r\n\t\tINNER JOIN `socios` `socios` \r\n\t\tON `socios_otros_parametros`.`clave_de_persona` = `socios`.`codigo` \r\nWHERE\r\n\t(`socios_otros_parametros`.`clave_del_parametro` ='" . $xODat->AML_PEP_PRINCIPAL . "')\r\n\t\t\tOR\r\n\t(`socios_otros_parametros`.`clave_del_parametro` ='" . $xODat->AML_PEP_AFINIDAD . "')\t\t\t\r\n\tOR\r\n(`socios_otros_parametros`.`clave_del_parametro` ='" . $xODat->AML_PEP_CONSANGUINIDAD . "')\t\t\t\r\n\t\tOR\r\n(`socios_otros_parametros`.`clave_del_parametro` ='" . $xODat->AML_PEP_VINCULO_ECONOM . "')\t";
$titulo = "";
$archivo = "";
$xRPT = new cReportes($titulo);
$xRPT->setFile($archivo);
$xRPT->setOut($out);
$xRPT->setSQL($sql);
$xRPT->setTitle($xHP->getTitle());
//============ Reporte
$xT = new cTabla($sql, 1);
$xT->setTipoSalida($out);
开发者ID:Cywaithaka,项目名称:S.A.F.E.-Open-Source-Microfinance-Suite,代码行数:31,代码来源:personas-pep.rpt.php

示例4: getSIPAKALPermissions

//header("Content-type: text/plain");
//=====================================================================================================
//=====>	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("PAGARE", HP_REPORT);
$oficial = elusuario($iduser);
$idsolicitud = parametro("i", DEFAULT_CREDITO, MQL_INT);
$idsolicitud = parametro("credito", $idsolicitud, MQL_INT);
$idsolicitud = parametro("solicitud", $idsolicitud, MQL_INT);
$formato = parametro("forma", 21, MQL_INT);
$xHP->init();
$xForma = new cFormato($formato);
$xForma->setCredito($idsolicitud);
$xForma->setProcesarVars();
echo $xForma->get();
?>
</body>
</html>
开发者ID:Cywaithaka,项目名称:S.A.F.E.-Open-Source-Microfinance-Suite,代码行数:30,代码来源:rptcreditopagare.php

示例5: addslashes

$_SESSION["current_file"] = addslashes($theFile);
//<=====	FIN_H
$iduser = $_SESSION["log_id"];
//=====================================================================================================
$xHP = new cHPage("TR.Estado de Cuenta de Depositos a la Vista", HP_RPTXML);
$xQL = new MQL();
$xF = new cFecha();
$oficial = elusuario($iduser);
//=====================================================================================================
$idcuenta = parametro("f100", false, MQL_INT);
$idcuenta = parametro("cuenta", $idcuenta, MQL_INT);
$AppByFechas = parametro("f73");
//Boolean por fechas
$fecha_inicial = parametro("on", EACP_FECHA_DE_CONSTITUCION, MQL_DATE);
$fecha_final = parametro("off", $xF->getFechaMaximaOperativa(), MQL_DATE);
$output = parametro("out", SYS_DEFAULT);
$setSql = "SELECT\n\t`socios`.`codigo`,\n\t`socios`.`nombre`,\n\t`captacion_cuentas`.`numero_cuenta`                 AS `numero_de_cuenta`,\n\t`captacion_cuentastipos`.`descripcion_cuentastipos` AS `tipo`,\n\t`captacion_subproductos`.`descripcion_subproductos` AS `producto`,\n\t`captacion_cuentas`.`tasa_otorgada`,\n\t`captacion_cuentas`.`dias_invertidos`,\n\t`captacion_cuentas`.`saldo_cuenta`,\n\t`captacion_cuentas`.`sucursal`,\n\t`captacion_sdpm_historico`.`ejercicio`,\n\t`captacion_sdpm_historico`.`periodo`,\n\t`captacion_sdpm_historico`.`fecha`,\n\t`captacion_sdpm_historico`.`recibo`,\n\t`captacion_sdpm_historico`.`dias`,\n\t`captacion_sdpm_historico`.`tasa`,\n\t`captacion_sdpm_historico`.`monto`\nFROM\n\t`captacion_cuentas` `captacion_cuentas`\n\t\tINNER JOIN `captacion_sdpm_historico` `captacion_sdpm_historico`\n\t\tON `captacion_cuentas`.`numero_cuenta` = `captacion_sdpm_historico`.\n\t\t`cuenta`\n\t\t\tINNER JOIN `captacion_cuentastipos` `captacion_cuentastipos`\n\t\t\tON `captacion_cuentas`.`tipo_cuenta` = `captacion_cuentastipos`.\n\t\t\t`idcaptacion_cuentastipos`\n\t\t\t\tINNER JOIN `socios` `socios`\n\t\t\t\tON `socios`.`codigo` = `captacion_cuentas`.`numero_socio`\n\t\t\t\t\tINNER JOIN `captacion_subproductos` `captacion_subproductos`\n\t\t\t\t\tON `captacion_cuentas`.`tipo_subproducto` =\n\t\t\t\t\t`captacion_subproductos`.`idcaptacion_subproductos`\nWHERE\n\t(`captacion_cuentas`.`numero_cuenta` ={$idcuenta})\n\tAND\n\t(`captacion_sdpm_historico`.`fecha`>='{$fecha_inicial}')\n\tAND\n\t(`captacion_sdpm_historico`.`fecha`<='{$fecha_final}')\nORDER BY\n\t`socios`.`codigo`,\n\t`captacion_cuentas`.`numero_cuenta`,\n\t`captacion_sdpm_historico`.`ejercicio` ASC,\n\t`captacion_sdpm_historico`.`periodo` ASC,\t\n\t`captacion_sdpm_historico`.`fecha` ASC";
//exit($setSql);
if ($output != OUT_EXCEL) {
    $oRpt = new PHPReportMaker();
    $oRpt->setDatabase(MY_DB_IN);
    $oRpt->setUser(RPT_USR_DB);
    $oRpt->setPassword(RPT_PWD_DB);
    $oRpt->setSQL($setSql);
    $oRpt->setXML("../repository/report70.xml");
    $oOut = $oRpt->createOutputPlugin($output);
    $oRpt->setOutputPlugin($oOut);
    $oRpt->run();
    //	*/
} else {
    $filename = $_SERVER['SCRIPT_NAME'];
开发者ID:Cywaithaka,项目名称:S.A.F.E.-Open-Source-Microfinance-Suite,代码行数:31,代码来源:rpt_estado_cta_sdpm.php

示例6: elseif

//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;
    $xF = new cFecha();
    ////Arrays de Control
    $arrTipoIdent = array(1 => 1, 4 => 9);
    $arrEmpresas = array("PARTICULAR" => DEFAULT_EMPRESA, "" => DEFAULT_EMPRESA, "#N/D" => DEFAULT_EMPRESA, "#N/A" => DEFAULT_EMPRESA, "COLOMER" => 120, "LAB. DENTAL R Y E" => 101, "LAB. DENTAL GML" => 102, "REPSSA" => 103, "RATTMI" => 104, "DELTA" => 105, "POLIESSA" => 107, "ORCA" => 108, "SILCER" => 111, "MESSINAS" => 112, "FERVAB" => 113, "DIVACUN" => 115, "CADENITA" => 116, "HECCSA" => 117, "SAGSA" => 118, "MAGRA" => 119, "COLOMER" => 120, "BORDEX" => 121, "SERVICLIMAS" => 123, "CORECO" => 124, "CMV" => 125, "MAYCO" => 126, "TABLAROCA" => 127, "KAUA" => 129, "GONELA" => 130, "SVM" => 109, "ABIMERHI" => 106, "PREVE" => 110, "SEY" => 110, "CASTALDI" => 132, "HINO" => 114, "LAMOL" => 99, "BICIMAYA" => 131, "COUNTRY" => 132, "KOHLBERG" => 128, "POLIOBRAS" => 134, "TZUNCACAB" => 135, "GML" => 102, "RYE" => 101, "OH" => 136, "GRUPO NICXA" => 137, "SAXON" => 138, "EXHIBIT" => 122);
    $arrGeneroInv = array(1 => 2, 2 => 1, 99 => 99);
    $arrGenero = array("HOMBRE" => 1, "MUJER" => 2, "NINGUNO" => 99, "" => 99, "MASCULINO" => 1, "MASCULINA" => 1, "FEMENINO" => 2, "FEMENINA" => 2);
    $arrFJuridica = array("PERSONA FISICA" => 1, "PERSONA MORAL" => 2, "FISICA" => 1, "MORAL" => 2, "NATURAL" => 1, "JURIDICA" => 2, "" => 1, "NINGUNO" => 99);
    $arrEcivil = array("CASADO" => 1, "CASADA" => 1, "SOLTERO" => 2, "SOLTERA" => 2, "NINGUNO" => 99, "" => 99, "DIVORCIADO" => 3, "DIVORCIADA" => 3, "UNION LIBRE" => 4, "VIUDO" => 6);
    $arr2RegMat = array("" => "NINGUNO", "MANCOMUNADO" => "SOCIEDAD_CONYUGAL", "SEPARADOS" => "BIENES_SEPARADOS");
    $arrVivienda = array("PROPIA" => 1, "RENTADA" => 2, "NA" => 99, "NINGUNO" => 99);
    $doc1 = isset($_FILES["idarchivo"]) ? $_FILES["idarchivo"] : false;
    $xFi = new cFileImporter();
开发者ID:Cywaithaka,项目名称:S.A.F.E.-Open-Source-Microfinance-Suite,代码行数:31,代码来源:mae.socios.upload.frm.php

示例7: parametro

     $step = MQL_ADD;
     $clave = $xTabla->query()->getLastID() + 1;
     $xTabla->idseguimiento_llamadas($clave);
 } else {
     $step = MQL_MOD;
     if ($clave != null) {
         $xTabla->setData($xTabla->query()->initByID($clave));
     }
 }
 $xFRM->setAction("llamadas.frm.php?action={$step}");
 if ($step == MQL_MOD) {
     $xFRM->addGuardar();
 } else {
     $xFRM->addSubmit();
 }
 $clave = parametro($xTabla->getKey(), null, MQL_INT);
 if (($action == MQL_ADD or $action == MQL_MOD) and $clave != null) {
     $xTabla->setData($xTabla->query()->initByID($clave));
     $xTabla->setData($_REQUEST);
     if ($action == MQL_ADD) {
         $xTabla->query()->insert()->save();
     } else {
         $xTabla->query()->update()->save($clave);
     }
     $xFRM->addAvisoRegistroOK();
 }
 $xFRM->OMoneda("deuda_total", $xTabla->deuda_total()->v(), "TR.total");
 $xFRM->OText("telefono_uno", $xTabla->telefono_uno()->v(), "TR.telefono 1");
 $xFRM->OText("telefono_dos", $xTabla->telefono_dos()->v(), "TR.telefono 2");
 $xFRM->OText("fecha_llamada", $xTabla->fecha_llamada()->v(), "TR.fecha");
 $xFRM->OText("hora_llamada", $xTabla->hora_llamada()->v(), "TR.hora");
开发者ID:Cywaithaka,项目名称:S.A.F.E.-Open-Source-Microfinance-Suite,代码行数:31,代码来源:llamadas.frm.php

示例8: parametro

$tipoconvenio = parametro("idproducto", 0, MQL_INT);
$numeropagos = parametro("idnumerodepagos", 0, MQL_INT);
$rubro_destino = parametro("iddestinodecredito", 0, MQL_INT);
$amp_destino = parametro("iddescripciondestino");
$observaciones = parametro("idobservaciones");
$monto_solicitado = parametro("idmonto", 0, MQL_FLOAT);
$contrato_corriente = $cuenta;
$tipo_de_pago = parametro("idtipodepago", 0, MQL_INT);
$vencido = parametro("idFechaVencimiento", false);
$ministrado = parametro("idFechaMinistracion", false);
$solicitado = parametro("idFechaSolicitud", false);
$TipoDeAutorizacion = false;
$esrenovado = parametro("idrenovado", false, MQL_BOOL);
$tieneprops = parametro("idpropietario", false, MQL_BOOL);
//propietarios reales
$tieneprovs = parametro("idproveedor", false, MQL_BOOL);
//proveedores de recursos
$fecha_solicitud = $xFecha->getFechaISO($solicitado);
$fecha_ministracion = $xFecha->getFechaISO($ministrado);
$fecha_vencimiento = $xFecha->getFechaISO($vencido);
$oficial_de_credito = getUsuarioActual();
$xBtn = new cHButton();
$xFRM = new cHForm("frmcreditoautorizado");
$xFRM->setTitle($xHP->getTitle());
$xHP->init();
//Correccciones
$contrato_corriente = setNoMenorQueCero($contrato_corriente) <= 0 ? DEFAULT_CUENTA_CORRIENTE : $contrato_corriente;
$xSoc = new cSocio($persona);
$arrDatos = array("periocidad_de_pago" => $periocidad, "tipo_de_producto" => $tipoconvenio, "numero_de_pagos" => $numeropagos, "contrato_corriente_relacionado" => $contrato_corriente, "fecha_de_ministracion" => $ministrado, "fecha_de_vencimiento" => $vencido, "monto_solicitado" => $monto_solicitado);
$sucess = true;
if ($xSoc->isOperable() == true) {
开发者ID:Cywaithaka,项目名称:S.A.F.E.-Open-Source-Microfinance-Suite,代码行数:31,代码来源:solicitud_de_credito.2.frm.php

示例9: getListRecibos

function getListRecibos($tipo, $socio)
{
    $sql = new cSQLListas();
    $cTbl = new cTabla($sql->getListadoDeRecibos($tipo, $socio));
    $xImg = new cHImg();
    $cTbl->setKeyField("idoperaciones_recibos");
    $cTbl->setTdClassByType();
    $cTbl->OButton("TR.Reporte", "jsGetReporteRecibo(" . HP_REPLACE_ID . ")", $cTbl->ODicIcons()->REPORTE);
    $cTbl->OButton("TR.Panel", "var xRec = new RecGen(); xRec.panel(" . HP_REPLACE_ID . ")", $cTbl->ODicIcons()->EJECUTAR);
    $cTbl->setEventKey("setRecibo");
    return $cTbl->Show();
}
$jxc->exportFunction('getListRecibos', array('idTipoRecibo', 'idsocio'), "#lst-resultados");
$jxc->process();
$c = parametro("c", false, MQL_RAW);
$f = parametro("f", false, MQL_RAW);
$xHP->init();
$xFRM = new cHForm("frmsearchrecs", "./");
$xSel = new cHSelect();
$xFRM->addPersonaBasico();
$sqlsel = "SELECT\n\t\t\t\t\t\t\t`operaciones_recibostipo`.`idoperaciones_recibostipo` AS `tipo`,\n\t\t\t\t\t\t\t`operaciones_recibostipo`.`descripcion_recibostipo`   AS `descripcion`\n\t\t\t\t\t\tFROM\n\t\t\t\t\t\t\t`operaciones_recibostipo` `operaciones_recibostipo`";
$mSel = $xSel->getListadoGenerico($sqlsel, "idTipoRecibo");
$mSel->addEspOption(SYS_TODAS);
$mSel->addEvent("onchange", "getListRecibos()");
$xFRM->addHElem($mSel->get("TR.Tipo de Recibo", true));
$xFRM->addCerrar();
$xFRM->OButton("TR.Buscar", "getListRecibos()", "buscar");
//$xFRM->addSubmit();
$xFRM->addJsBasico(iDE_SOCIO);
$xFRM->addHTML('<fieldset><legend>Resultados de la Busqueda</legend><div id="lst-resultados"></div></fieldset>');
echo $xFRM->get();
开发者ID:Cywaithaka,项目名称:S.A.F.E.-Open-Source-Microfinance-Suite,代码行数:31,代码来源:frmbuscarrecibos.php

示例10: cSQLListas

$lis = new cSQLListas();
$xF = new cFecha();
//$persona	= parametro("persona", DEFAULT_SOCIO, MQL_INT);
$credito = parametro("credito", DEFAULT_CREDITO, MQL_INT);
$letra = parametro("letra", 0, MQL_INT);
$monto = parametro("monto", 0, MQL_FLOAT);
$fechaI = parametro("on", fechasys());
$fechaF = parametro("off", fechasys());
$fechaEnv = parametro("to", fechasys());
$observaciones = parametro("observaciones", "");
$empresa = parametro("empresa", false);
$periodo = parametro("periodo", false);
$periocidad = parametro("periocidad", false);
$notas = parametro("notas", false);
$rs = array();
$idnomina = parametro("nomina", false);
$xEmp = new cEmpresas($empresa);
$xEmp->init();
$msg = "";
if (setNoMenorQueCero($idnomina) <= 0) {
    $rs["error"] = true;
    $rs["message"] = "Nomina Invalida {$idnomina} ";
} else {
    if (setNoMenorQueCero($credito) > 1) {
        //sucess
        //eliminar anteriores
        $sqlNS = "SELECT getSaldoPendienteDesdeLetra({$credito}, ({$letra}-1)) AS 'saldo_anterior' ";
        $sdo_anterior = mifila($sqlNS, "saldo_anterior");
        $xO = new cEmpresas_cobranza();
        $idoriginal = $xO->query()->getLastID();
        $xO->idempresas_cobranza($idoriginal);
开发者ID:Cywaithaka,项目名称:S.A.F.E.-Open-Source-Microfinance-Suite,代码行数:31,代码来源:envionomina.svc.php

示例11: getSIPAKALPermissions

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
//=====================================================================================================
$xInit = new cHPage("", HP_SERVICE);
$txt = "";
$ql = new MQL();
$lis = new cSQLListas();
$xF = new cFecha();
$tabla = parametro("tabla", false, MQL_RAW);
$clave = parametro("id", false, MQL_RAW);
$rs = array();
//AND MODO_DEBUG == true
if ($tabla != false and $clave != false) {
    $xObj = new cSAFETabla($tabla);
    if ($xObj->obj() == null) {
        $rs["message"] = "ERROR\tAl eliminar el Registro con ID {$clave} en la Tabla {$tabla}\r\n";
        $rs["error"] = true;
    } else {
        $obj = $xObj->obj();
        $key = $obj->getKey();
        $obj = new cSocios_aeconomica();
        $obj->setData($obj->query()->initByID($clave));
        $data = base64_encode(json_encode($obj->query()->getCampos()));
        $ql->setRawQuery("DELETE FROM {$tabla} WHERE {$key}='{$clave}'");
        $rs["message"] = "OK\tSe elimina el Registro con ID {$clave} en la Tabla {$tabla}\r\n";
开发者ID:Cywaithaka,项目名称:S.A.F.E.-Open-Source-Microfinance-Suite,代码行数:31,代码来源:rm.svc.php

示例12: addslashes

$_SESSION["current_file"] = addslashes($theFile);
//=====================================================================================================
$xHP = new cHPage("TR.Movimientos Bancarios", HP_GRID);
$xF = new cFecha();
$out = isset($_GET["out"]) ? $_GET["out"] : SYS_DEFAULT;
$mx = isset($_GET["mx"]) ? true : false;
if ($mx == true) {
    $fechaInicial = isset($_GET["on"]) ? $xF->getFechaISO($_GET["on"]) : FECHA_INICIO_OPERACIONES_SISTEMA;
    $fechaFinal = isset($_GET["off"]) ? $xF->getFechaISO($_GET["off"]) : fechasys();
} else {
    $fechaInicial = isset($_GET["on"]) ? $_GET["on"] : FECHA_INICIO_OPERACIONES_SISTEMA;
    $fechaFinal = isset($_GET["off"]) ? $_GET["off"] : fechasys();
}
$cuenta = isset($_GET["cuenta"]) ? $_GET["cuenta"] : SYS_TODAS;
$operacion = isset($_GET["operacion"]) ? $_GET["operacion"] : SYS_TODAS;
$busqueda = parametro("busqueda", "", MQL_STRING);
$ByCuenta = ($cuenta != SYS_TODAS and $cuenta != "") ? " AND `bancos_operaciones`.`cuenta_bancaria`={$cuenta} " : "";
$ByOperaciones = ($operacion != SYS_TODAS and $operacion != "") ? " AND `bancos_operaciones`.`tipo_operacion`='{$operacion}' " : "";
$ByBusqueda = $busqueda == "" ? "" : " AND (`bancos_operaciones`.`beneficiario`  LIKE '%{$busqueda}%' ) ";
$filtro1 = "";
$filtro2 = "";
$xHP->setNoDefaultCSS();
echo $xHP->getHeader(true);
//HTML Object END
echo '<body onmouseup="SetMouseDown(false);" ><div id="onGrid">';
// Define your grid
$_SESSION["grid"]->SetDatabaseConnection(MY_DB_IN, USR_DB, PWD_DB);
//Propiedades del GRID
$mGridTitulo = $xHP->getTitle();
$mGridKeyField = "idcontrol";
//Nombre del Campo Unico
开发者ID:Cywaithaka,项目名称:S.A.F.E.-Open-Source-Microfinance-Suite,代码行数:31,代码来源:movimientos_bancarios.grid.php

示例13: parametro

             $iddomicilio = $xSoc->getIDDeVivienda();
         }
     }
 }
 if (setNoMenorQueCero($ingresos) > 0 and setNoMenorQueCero($persona) > 0) {
     $addAct = $xSoc->addActividadEconomica($nombreempresa, $ingresos, "", DEFAULT_TIEMPO, FALLBACK_CLAVE_EMPRESA, $calle . "/" . $nexterior, $nombrelocalidad, $nombremunicipio, $nombre_estado, $tmovil, 0, 0, "", $idactividad, FALLBACK_SECTOR_ECONOMICO, $sucursal, "0", $cpostal, $idlocalidad);
     if ($addAct == false) {
         $msg .= "ERROR\tError al agregar la Actividad Economica \r\n";
     }
 }
 if (setNoMenorQueCero($origen_relacion) > 0 and setNoMenorQueCero($persona) > 0) {
     $documentorelacionado = parametro("iddocumentorelacionado", 0, MQL_INT);
     $personarelacionado = parametro("idpersonarelacionado", 0, MQL_INT);
     $idtipoderelacion = parametro("idtipoderelacion", 0, MQL_INT);
     $dependiente = parametro("dependiente", false, MQL_BOOL);
     $idtipodeparentesco = parametro("idtipodeparentesco", DEFAULT_TIPO_CONSANGUINIDAD, MQL_INT);
     if ($origen_relacion == iDE_CREDITO) {
         $xCred = new cCredito($documentorelacionado);
         $xCred->init();
         $MontoAvalado = $xCred->getMontoAutorizado();
         $addAval = $xCred->addAval($persona, $MontoAvalado, $idtipoderelacion, $idtipodeparentesco, $dependiente, $idobservaciones);
         $msg .= $xCred->getMessages();
     }
     //captacion
     //persona
     if ($origen_relacion == iDE_SOCIO) {
         if ($personarelacionado > 0) {
             $xPer = new cSocio($personarelacionado);
             if ($xPer->init() == true) {
                 $addRel = $xPer->addRelacion($persona, $idtipoderelacion, $idtipodeparentesco, $dependiente, $idobservaciones);
             }
开发者ID:Cywaithaka,项目名称:S.A.F.E.-Open-Source-Microfinance-Suite,代码行数:31,代码来源:registro-personas.frm.php

示例14: header

if ($permiso === false) {
    header("location:../404.php?i=999");
}
$_SESSION["current_file"] = addslashes($theFile);
//<=====	FIN_H
$iduser = $_SESSION["log_id"];
//=====================================================================================================
$xHP = new cHPage("TR.Plan_de_Pagos", HP_REPORT);
$xF = new cFecha();
$ql = new MQL();
$oficial = elusuario($iduser);
$idrecibo = parametro("idrecibo", false, MQL_INT);
$idrecibo = parametro("recibo", $idrecibo, MQL_INT);
$idsolicitud = parametro("is", false, MQL_INT);
$idsolicitud = parametro("credito", $idsolicitud, MQL_INT);
$ShowAvales = parametro("p", false, MQL_BOOL);
if ($idrecibo == false) {
    if ($idsolicitud != false) {
        $xCred = new cCredito($idsolicitud);
        $xCred->init();
        $idrecibo = $xCred->getNumeroDePlanDePagos();
        if (setNoMenorQueCero($idrecibo) > 0) {
        } else {
            exit(JS_CLOSE);
        }
    } else {
        exit(JS_CLOSE);
    }
}
$xHP->setTitle($xHP->getTitle() . " # {$idrecibo}");
echo $xHP->getHeader(true);
开发者ID:Cywaithaka,项目名称:S.A.F.E.-Open-Source-Microfinance-Suite,代码行数:31,代码来源:rptplandepagos.php

示例15: elseif

    $xFRM->addSubmit();
} elseif ($action == SYS_UNO) {
    //editar
    $xFMT->init($idcontrato);
    $titulo = $xFMT->getTitulo();
    $xFRM->setTitle($titulo);
    $xFRM->addHElem($xFMT->getSelectVariables("", "onchange=\"jsAddText()\" "));
    $xFRM->addSubmit("", "", "");
    $text_default = $xFMT->get();
    $xFRM->addHTML("<textarea class=\"ckeditor\" name=\"ckeditor\" id=\"ckeditor\" rows=\"20\" cols=\"15\">{$text_default}</textarea>");
    $xFRM->addFootElement("<input type='hidden' value='{$idcontrato}' name='idcontrato' />");
    $xFRM->setAction("frmeditor_contratos.php?action=2");
} elseif ($action == SYS_DOS) {
    //guardar
    $s = isset($_REQUEST["ckeditor"]) ? $_REQUEST["ckeditor"] : "";
    $i = parametro("idcontrato");
    $text_default = stripslashes($s);
    if ($s != "" && $i != "") {
        $sqluc = "UPDATE general_contratos SET texto_del_contrato='{$s}' WHERE idgeneral_contratos={$i}";
        $x = my_query($sqluc);
        if ($x[SYS_ESTADO] != false) {
            //$xFRM->addSubmit("", "", "");echo $text_default;
            $xFRM->addSubmit("", "getForma({$i})");
        } else {
            $xFRM->addAviso("SURGIO UN PROBLEMA AL GUARDAR");
        }
    } else {
        $xFRM->addAviso("FALTAN PARAMETROS");
    }
}
echo $xFRM->get();
开发者ID:Cywaithaka,项目名称:S.A.F.E.-Open-Source-Microfinance-Suite,代码行数:31,代码来源:frmeditor_contratos.php


注:本文中的parametro函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。