本文整理汇总了PHP中TinyAjax类的典型用法代码示例。如果您正苦于以下问题:PHP TinyAjax类的具体用法?PHP TinyAjax怎么用?PHP TinyAjax使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了TinyAjax类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: header
header("location:../404.php?i=999");
}
$_SESSION["current_file"] = addslashes($theFile);
//<===== FIN_H
$iduser = $_SESSION["log_id"];
//=====================================================================================================
include_once "../core/entidad.datos.php";
include_once "../core/core.deprecated.inc.php";
include_once "../core/core.fechas.inc.php";
include_once "../libs/sql.inc.php";
include_once "../core/core.config.inc.php";
include_once "../core/core.common.inc.php";
include_once "../core/core.html.inc.php";
include_once "../core/core.operaciones.inc.php";
require_once "." . TINYAJAX_PATH . "/TinyAjax.php";
$jxc = new TinyAjax();
$xCaja = new cCaja();
if ($xCaja->getEstatus() == TESORERIA_CAJA_CERRADA) {
header("location:../404.php?i=200");
}
function calcula_ica($solicitud, $form)
{
$sql = "SELECT * FROM creditos_solicitud WHERE numero_solicitud={$solicitud}";
$mysolicitud = obten_filas($sql);
$socio = $mysolicitud["numero_socio"];
// Numero de Socio
$diasaut = $mysolicitud["dias_autorizados"];
// Dias Autorizados
$montoMin = $mysolicitud["monto_autorizado"];
// Monto Autorizado
$tasaInt = $mysolicitud["tasa_interes"];
示例2: getSIPAKALPermissions
//=====> 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("", HP_FORM);
$jxc = new TinyAjax();
//Mvtos
$poliza = parametro("n", false, MQL_INT);
$periodo = parametro("p", false, MQL_INT);
$tipo = parametro("t", false, MQL_INT);
$ejercicio = parametro("e", false, MQL_INT);
$keypoliza = "";
$str_action = "frm_poliza_movimientos.php?n={$poliza}&p={$periodo}&e={$ejercicio}&t={$tipo}";
$m_mvto = 1;
$me_mvto = 2;
$d_concepto = "";
$k_mvto = "";
$fecha = fechasys();
function save_mvto($keymvto, $cuenta, $cargo, $abono, $referencia, $concepto, $mfecha, $form)
{
if (isset($cuenta) and ($cargo > 0 or $abono > 0)) {
开发者ID:Cywaithaka,项目名称:S.A.F.E.-Open-Source-Microfinance-Suite,代码行数:31,代码来源:frm_poliza_movimientos.anterior.php
示例3: parametro
//$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));
return $tab->getString();
}
$jxc->exportFunction('jsaGetIDE', array('idsocio', "idmonto", "idtipo_pago"));
$jxc->process();
echo $xHP->getHeader();
$xFRM = new cHForm("depositoahorro", "frmdepositoinversion.php?action=next");
$xBtn = new cHButton();
$xTxt = new cHText();
示例4: cHPage
$xHP = new cHPage("TR.Editor de contratos");
$oficial = elusuario($iduser);
$idcontrato = parametro("idcontrato", 0, MQL_INT);
$a = parametro("s");
$jscallback = parametro("callback");
$tiny = parametro("tiny");
$form = parametro("form");
$action = parametro("action", SYS_NINGUNO);
$xHP->addJsFile("../js/ckeditor/ckeditor.js");
$xFRM = new cHForm("frmeditor", "frmeditor_contratos.php?action=1");
$xBtn = new cHButton();
$xTxt = new cHText();
$xDate = new cHDate();
$xSel = new cHSelect();
$xFMT = new cFormato(false);
$jxc = new TinyAjax();
function jsAgregarContrato($id, $nombre)
{
$xForma = new cFormato();
}
//$jxc ->exportFunction('jsAgregarContrato', array('idsolicitud', 'idparcialidad'), "#iddatos_pago");
$jxc->process();
//ini_set("display_errors", "on");
$xHP->init("initComponents()");
if ($action == SYS_NINGUNO) {
$xFRM->addHElem($xFMT->getSelectDeFormatos()->get(true));
$xFRM->addSubmit();
} elseif ($action == SYS_UNO) {
//editar
$xFMT->init($idcontrato);
$titulo = $xFMT->getTitulo();
示例5: getSIPAKALPermissions
$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"];
//=====================================================================================================
require_once "." . TINYAJAX_PATH . "/TinyAjax.php";
$cuenta = isset($_POST["NumeroDeCuenta"]) ? $_POST["NumeroDeCuenta"] : false;
$xP = new cHPage("Guia Contable");
$xP->setIncludes();
echo $xP->getHeader();
$oficial = elusuario($iduser);
$jxc = new TinyAjax();
function jsaSaveOperacion($cuenta, $operacion, $descripcion)
{
}
$jxc->exportFunction('jsaSaveOperacion', array('idCuenta', 'idOperacion', 'idDescripcion'));
$jxc->process();
$xHTxt = new cHText("id");
$xHTxt->setIncludeLabel();
$jsb = new jsBasicForm("frmGuia");
$jsb->setIncludeJQuery();
$jsb->show();
$jxc->drawJavaScript(false, true);
?>
<style>
#wrapper {
示例6: getSIPAKALPermissions
$permiso = getSIPAKALPermissions($theFile);
if ($permiso === false) {
header("location:../404.php?i=999");
}
$_SESSION["current_file"] = addslashes($theFile);
//<===== FIN_H
$iduser = $_SESSION["log_id"];
//=====================================================================================================
include_once "../core/entidad.datos.php";
include_once "../core/core.deprecated.inc.php";
include_once "../core/core.fechas.inc.php";
include_once "../libs/sql.inc.php";
include_once "../core/core.config.inc.php";
require_once "." . TINYAJAX_PATH . "/TinyAjax.php";
$oficial = elusuario($iduser);
$jxc = new TinyAjax();
function jsGetCreditosByCriteria($convenio, $estatus, $periocidad, $oficial)
{
$ByConvenio = "";
$ByEstatus = "";
$ByPeriocidad = "";
$ByOficial = "";
$ByInclude = "";
if ($estatus != "todas") {
$ByEstatus = " AND\n\t\t(`creditos_solicitud`.`estatus_actual` = {$estatus}) ";
}
if ($oficial != "todas") {
$ByOficial = "\tAND\n\t(`creditos_solicitud`.`oficial_credito` = {$oficial})";
}
if ($convenio != "todas") {
$ByConvenio = "\t AND\n\t(`creditos_solicitud`.`tipo_convenio` ={$convenio}) ";
开发者ID:Cywaithaka,项目名称:S.A.F.E.-Open-Source-Microfinance-Suite,代码行数:31,代码来源:asignar_monto_de_parcialidad.frm.php
示例7: getSIPAKALPermissions
//=====> 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.Panel de Control de personas", HP_FORM);
$jxc = new TinyAjax();
$xql = new cSQLListas();
$ql = new MQL();
$xImg = new cHImg();
$xF = new cFecha();
$jsTabs = "";
$idempresa = 0;
$oficial = elusuario($iduser);
$idsocio = parametro("idsocio", false, MQL_INT);
$idsocio = parametro("persona", $idsocio, MQL_INT);
$idsocio = parametro("socio", $idsocio, MQL_INT);
$xJsB = new jsBasicForm("extrasocios");
function jsaReVivienda($idsocio)
{
$ql = new cSQLListas();
$sqlvv = "SELECT socios_vivienda.idsocios_vivienda AS 'num',\n\t\t\n\t\t\t\t\tCONCAT('Calle ', socios_vivienda.calle, ' Num. ',\n\t\t\t\t\tsocios_vivienda.numero_exterior, '-', socios_vivienda.numero_interior, ' Col. ',\n\t\t\t\t \tsocios_vivienda.colonia, ', ', socios_vivienda.localidad, ', ', estado)\n\t\t\t\t\tAS 'domicilio_completo',\n\t\t\t\t\tgetBooleanMX(socios_vivienda.principal) AS 'es_principal'\n\t\t\t\t FROM socios_vivienda WHERE socio_numero={$idsocio} LIMIT 0,10";
示例8: getSIPAKALPermissions
//=====> 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("Generar Planes de Pagos");
$jxc = new TinyAjax();
$xF = new cFecha();
$solicitud = isset($_POST["idsolicitud"]) ? $_POST["idsolicitud"] : 0;
$altSocio = DEFAULT_SOCIO;
$altCred = DEFAULT_CREDITO;
$altOC = 0;
$altIDOC = OPERACION_CLAVE_DE_COBRANZA;
// 1005;
$creditosDiasDePago = CREDITO_DEFAULT_DIAS_DE_PAGO;
$defFechaMinistracion = fechasys();
$defFechaAbono = fechasys();
$defCuentaCorriente = CTA_GLOBAL_CORRIENTE;
$defFormaDePago = CREDITO_DEFAULT_TIPO_PAGO;
$urlsend = "";
$idrecibo = DEFAULT_RECIBO;
$urctr = "";
开发者ID:Cywaithaka,项目名称:S.A.F.E.-Open-Source-Microfinance-Suite,代码行数:31,代码来源:frmcreditosplandepagos.php
示例9: settype
// Tipo de code_type
settype($v_0f743, "string");
// Tipo de description_short
settype($v_41f88, "string");
// Tipo de estructura_de_la_formula
$v_b62df = trim($_POST['c_b62df']);
// Variable de aplicado_a
$v_23088 = trim($_POST['c_23088']);
// Variable de code_type
$v_0f743 = trim($_POST['c_0f743']);
// Variable de description_short
$v_41f88 = trim($_POST['c_41f88']);
// Variable de estructura_de_la_formula
//Tiny Ajax en Accion
require_once "." . TINYAJAX_PATH . "/TinyAjax.php";
$jxc = new TinyAjax();
//Funcion que rellena los datos del Form
function jsGetRegistro($filter, $form)
{
$n_type = gettype($filter);
if ($n_type == "string") {
$filter = "'{$filter}'";
}
$sql = "SELECT * FROM general_formulas WHERE aplicado_a = {$filter} LIMIT 0,1";
$rs = mysql_query($sql, cnnGeneral());
if (!$rs) {
saveError(2, $_SESSION["SN_b80bb7740288fda1f201890375a60c8f"], "Depurar :" . mysql_error() . "|Numero: " . mysql_errno() . "|Instruccion SQL:" . $sql);
}
$nfields = mysql_num_fields($rs) - 1;
$tab = new TinyAjaxBehavior();
while ($rw = mysql_fetch_array($rs)) {
示例10: getSIPAKALPermissions
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("", HP_FORM);
$xQL = new MQL();
$xLi = new cSQLListas();
$xF = new cFecha();
$msg = "";
$jxc = new TinyAjax();
$jxc->exportFunction('datos_del_pago', array('idsolicitud', 'idparcialidad'), "#iddatos_pago");
$jxc->process();
$fecha = parametro("idfecha-0", false, MQL_DATE);
$fecha = parametro("idfechaactual", $fecha, MQL_DATE);
$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");
示例11: getSIPAKALPermissions
//=====================================================================================================
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";
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("", HP_FORM);
$DDATA = $_REQUEST;
$jxc = new TinyAjax();
function jsaGetListadoDeAvisos($tipo, $fecha_inicial, $fecha_final)
{
$tipo = $tipo == SYS_TODAS ? false : $tipo;
$xF = new cFecha();
$xAl = new cAml_alerts();
$xlistas = new cSQLListas();
$xBtn = new cHButton();
$xImg = new cHImg();
$fecha_inicial = $xF->getFechaISO($fecha_inicial);
$fecha_final = $xF->getFechaISO($fecha_final);
$sql = $xlistas->getListadoDeRiesgosConfirmados($fecha_inicial, $fecha_final, $tipo);
// getListadoDeAlertas($tipo, $fecha_inicial, $fecha_final, false, " AND `estado_en_sistema`= " . SYS_UNO);
$xT = new cTabla($sql);
$xT->addEspTool($xImg->get24("check", " onclick=\"jsConfirmRiesgo(_REPLACE_ID_)\" "));
$xT->addEspTool($xImg->get24("delete", " onclick=\"jsDescartarRiesgo(_REPLACE_ID_)\" "));
开发者ID:Cywaithaka,项目名称:S.A.F.E.-Open-Source-Microfinance-Suite,代码行数:31,代码来源:posibles_operaciones.frm.php
示例12: getSIPAKALPermissions
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("", HP_FORM);
$xQL = new MQL();
$xLi = new cSQLListas();
$xF = new cFecha();
$jxc = new TinyAjax();
function jsaGuardarCastigo($credito, $fecha, $razones)
{
$xCred = new cCredito($credito);
$xCred->init();
$xCred->setCastigado($razones, $fecha);
return $xCred->getMessages();
}
$jxc->exportFunction('jsaGuardarCastigo', array('idsolicitudactual', "idfecha", "idrazones"), "#idmsgs");
$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);
开发者ID:Cywaithaka,项目名称:S.A.F.E.-Open-Source-Microfinance-Suite,代码行数:31,代码来源:castigo_de_cartera.frm.php
示例13: getSIPAKALPermissions
*/
//=====================================================================================================
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";
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.Buscar Grupos", HP_FORM);
$jxc = new TinyAjax();
function jsaGetGrupos($txt)
{
$nombre = $txt;
$xLi = new cSQLListas();
$ByNombre = $nombre != "" ? " AND (`nombre_gruposolidario` LIKE '%{$nombre}%' OR `representante_nombrecompleto` LIKE '%{$nombre}%' OR `vocalvigilancia_nombrecompleto` LIKE '%{$nombre}%') " : "";
$sql = $xLi->getListadoDeGrupos() . "\n\t{$ByNombre}\n\tORDER BY\n\t`nombre_gruposolidario`\n\tLIMIT 0,10 ";
$xT = new cTabla($sql);
return $xT->Show();
}
$jxc->exportFunction('jsaGetGrupos', array('idbusqueda'), "#listabusqueda");
$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);
示例14: getSIPAKALPermissions
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.Cobro de Comisiones");
$xCaja = new cCaja();
$xF = new cFecha();
$jxc = new TinyAjax();
function jsaGetSumas($com1, $com2, $com3)
{
$suma = $com1 + $com2 + $com3;
$iva = round($suma * TASA_IVA, 2);
$tab = new TinyAjaxBehavior();
$tab->add(TabSetValue::getBehavior("idsuma", $suma + $iva));
$tab->add(TabSetValue::getBehavior("idiva", $iva));
return $tab->getString();
}
function jsaGetComisionPorApertura($idcredito)
{
$xCred = new cCredito($idcredito);
$xCred->init();
$tasa = $xCred->getOProductoDeCredito()->getTasaComisionApertura();
return round($xCred->getMontoAutorizado() * $tasa, 2);
开发者ID:Cywaithaka,项目名称:S.A.F.E.-Open-Source-Microfinance-Suite,代码行数:31,代码来源:cobro_de_comisiones.frm.php
示例15: cFileLog
$xRe->setFinalizarRecibo();
$msg .= $xSoc->getMessages(OUT_TXT);
$msg .= $xCred->getMessages(OUT_TXT);
$msg .= $xRe->getMessages(OUT_TXT);
$xF = new cFileLog();
$xF->setWrite($msg);
$xF->setClose();
return $xF->getLinkDownload("Descarga de Log");
}
function jsaSetCambiarPersona($credito, $nuevapersona)
{
$xUtil = new cUtileriasParaCreditos();
$xUtil->setCambiarPersonaDeCredito($credito, $nuevapersona);
return $xUtil->getMessages(OUT_HTML);
}
$jxc = new TinyAjax();
$jxc->exportFunction('jsaCambiarMontoAutorizado', array('idsolicitud', 'idmontoaut'), "#avisos");
$jxc->exportFunction('jsaCambiarMontoMinistrado', array('idsolicitud', 'idmonto'), "#avisos");
$jxc->exportFunction('jsaCambiarFechaMinistracion', array('idsolicitud', 'idfecha-1'), "#avisos");
$jxc->exportFunction('jsaCambiarEstadoActual', array('idsolicitud', 'idestadoactual', 'idfecha-3'), "#avisos");
$jxc->exportFunction('jsaVincularEmpresa', array('idsolicitud', 'idobservacionesw', 'idcodigodeempresas'), "#avisos");
$jxc->exportFunction('jsaCambiarProducto', array('idsolicitud', 'idpdto', 'idtasa', 'idtasamora'), "#avisos");
$jxc->exportFunction('jsaCambiarPeriocidad', array('idsolicitud', 'idperiocidad', 'idtipopago', 'idpagos', 'idfecha-2', 'idpagoactual'), "#avisos");
$jxc->exportFunction('jsaEliminarCredito', array('idsolicitud'), "#avisos");
$jxc->exportFunction('jsaReestructurarIntereses', array('idsolicitud'), "#avisos");
$jxc->exportFunction('jsaSetCambiarPersona', array('idsolicitud', 'idnuevapersona'), "#avisos");
//
$jxc->process();
$xHP->init();
echo "<input type='hidden' id='idsolicitud' value='{$credito}'>";
$xCred = new cCredito($credito);
开发者ID:Cywaithaka,项目名称:S.A.F.E.-Open-Source-Microfinance-Suite,代码行数:31,代码来源:credito.actualizar.frm.php