• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP my_query函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: jsaSaveNote

function jsaSaveNote($id, $note)
{
    $msg = "";
    $date = date("Y-m-d");
    $sqlUN = "UPDATE seguimiento_llamadas\n    \t\t\tSET observaciones=CONCAT(observaciones, '\n{$date}\t', '{$note}')\n    \t\t\tWHERE  idseguimiento_llamadas={$id}";
    $n = my_query($sqlUN);
    if ($n["stat"] != false) {
        $msg = "Se Actualizo la Llamada #{$id} con la Nota [{$note}]";
    }
    return $msg;
}
开发者ID:Cywaithaka,项目名称:S.A.F.E.-Open-Source-Microfinance-Suite,代码行数:11,代码来源:calendario_de_llamadas.frm.php


示例2: checkEmailKey

function checkEmailKey($key, $userID)
{
    $curDate = date("Y-m-d H:i:s");
    $sql = "SELECT `UserID` FROM `recoveryemails` WHERE `Key` = ? AND `UserID` = ? AND `expDate` >= ?";
    $data = my_query('sis', array(&$key, &$userID, &$curDate), $sql);
    $numRows = getNumRows('sis', array(&$key, &$userID, &$curDate), $sql);
    if ($numRows > 0 && $data['UserID'] != '') {
        return array('status' => true, 'userID' => $data['UserID']);
    }
    return false;
}
开发者ID:alvinsee,项目名称:bugTracker,代码行数:11,代码来源:functions.php


示例3: collection_id

function collection_id($session_id)
{
    $query = sprintf('SELECT collection_id FROM session WHERE session_id=%d', $session_id);
    $result = my_query($query);
    if ($row = mysql_fetch_assoc($result)) {
        $collection_id = $row['collection_id'];
    } else {
        $collection_id = -1;
    }
    return $collection_id;
}
开发者ID:retsil,项目名称:sqa,代码行数:11,代码来源:session.inc.php


示例4: Common_97de3870795ecc1247287ab941d9719b

/**
 * Funcion que califica a las Referencias
 *
 * @param string $params
 */
function Common_97de3870795ecc1247287ab941d9719b($params)
{
    $stdDiv = STD_LITERAL_DIVISOR;
    $DPar = explode($stdDiv, $params, STD_MAX_ARRAY_JS);
    $control = trim($DPar[0]);
    $score = trim($DPar[1]);
    $sql = "UPDATE socios_relaciones \n    \t\t\t\tSET calificacion_del_referente={$score}\n    \t\t\t\tWHERE  idsocios_relaciones={$control}";
    $Stat = my_query($sql);
    if ($Stat["stat"] == false) {
        return "Hubo un problema al Guardar el Registro";
    } else {
        return "Registro Exitoso por " . $score . "!!";
    }
}
开发者ID:Cywaithaka,项目名称:S.A.F.E.-Open-Source-Microfinance-Suite,代码行数:19,代码来源:socios.common.js.php


示例5: xul_add_record

function xul_add_record($ajax_idcontable_centrodecostos, $ajax_nombre_centrodecostos)
{
    $msg = "";
    settype($ajax_idcontable_centrodecostos, "integer");
    settype($ajax_nombre_centrodecostos, "string");
    $strSQL_Insert = "INSERT INTO contable_centrodecostos(idcontable_centrodecostos, nombre_centrodecostos) \r\n                        VALUES ({$ajax_idcontable_centrodecostos}, '{$ajax_nombre_centrodecostos}')";
    $action = my_query($strSQL_Insert);
    if ($action["stat"] == false) {
        $msg = "Se Fallo al Agregar el Registro";
    } else {
        $msg = "El Registro se Agrego Exitosamente";
    }
    return $msg;
}
开发者ID:Cywaithaka,项目名称:S.A.F.E.-Open-Source-Microfinance-Suite,代码行数:14,代码来源:f_379bf460.php


示例6: xul_add_record

function xul_add_record($jx_idbancos_entidades, $jx_rfc_de_la_entidad, $jx_nombre_de_la_entidad)
{
    $msg = "";
    settype($jx_idbancos_entidades, "integer");
    settype($jx_rfc_de_la_entidad, "string");
    settype($jx_nombre_de_la_entidad, "string");
    $strSQL_Insert = "INSERT INTO bancos_entidades(idbancos_entidades, rfc_de_la_entidad, nombre_de_la_entidad)\n                        VALUES ({$jx_idbancos_entidades}, '{$jx_rfc_de_la_entidad}', '{$jx_nombre_de_la_entidad}')";
    $action = my_query($strSQL_Insert);
    if ($action["stat"] == false) {
        $msg = "Se Fallo al Agregar el Registro";
    } else {
        $msg = "El Registro se Agrego Exitosamente";
    }
    return $msg;
}
开发者ID:Cywaithaka,项目名称:S.A.F.E.-Open-Source-Microfinance-Suite,代码行数:15,代码来源:f_0955ca27.php


示例7: jsaGetLetras

function jsaGetLetras($idcredito, $idfecha)
{
    $xCred = new cCredito($idcredito);
    $xCred->init();
    //$xPlas	= $xCred->getPlanDePago();
    $xF = new cFecha();
    $idfecha = $xF->getFechaISO($idfecha);
    $xQL = new MQL();
    //$xQL->setRawQuery("SET @fecha_de_corte:='$idfecha';");
    my_query("SET @fecha_de_corte:='{$idfecha}';");
    $sql = "SELECT\r\n\t`letras`.`socio_afectado` AS `persona`,\r\n\t`letras`.`docto_afectado` AS `credito`,\r\n\t`letras`.`periodo_socio`  AS `parcialidad`,\r\n\t`letras`.`fecha_de_pago`,\r\n\r\n\t`letras`.`capital`,\r\n\t`letras`.`interes`,\r\n\t`letras`.`iva`,\r\n\t`letras`.`ahorro`,\r\n\t`letras`.`otros`,\r\n\t`letras`.`letra`,\t\r\n\t\r\n\t(`creditos_solicitud`.`tasa_moratorio`*100) AS `tasa_de_mora`,\r\n\t(`creditos_solicitud`.`tasa_interes`*100)   AS `tasa_de_interes` ,\r\n\tDATEDIFF(getFechaDeCorte(), fecha_de_pago) AS 'dias',\r\n\t ((letras.capital * DATEDIFF(getFechaDeCorte(), fecha_de_pago) * (`creditos_solicitud`.`tasa_moratorio` + `creditos_solicitud`.`tasa_interes`))/getDivisorDeInteres()) AS 'mora'\r\n\tFROM\r\n\t\t`creditos_solicitud` `creditos_solicitud` \r\n\t\t\tINNER JOIN `letras` `letras` \r\n\t\t\tON `creditos_solicitud`.`numero_solicitud` = `letras`.`docto_afectado`\r\n\t\r\n\t WHERE capital >0 AND docto_afectado={$idcredito} AND fecha_de_pago <= getFechaDeCorte()";
    $xT = new cTabla($sql);
    $xT->setFootSum(array(4 => "capital", 5 => "interes", 6 => "iva", 7 => "ahorro", 8 => "otros", 9 => "letra", 13 => "mora"));
    return $xT->Show();
}
开发者ID:Cywaithaka,项目名称:S.A.F.E.-Open-Source-Microfinance-Suite,代码行数:15,代码来源:creditos.letras-pendientes.frm.php


示例8: xul_add_record

function xul_add_record($ajax_idsocios_region, $ajax_descripcion_region, $ajax_oficial_de_credito, $ajax_region)
{
    $msg = "";
    settype($ajax_idsocios_region, "integer");
    settype($ajax_descripcion_region, "string");
    settype($ajax_oficial_de_credito, "integer");
    settype($ajax_region, "integer");
    $strSQL_Insert = "INSERT INTO socios_region(idsocios_region, descripcion_region, oficial_de_credito, region)\r\n                        VALUES ({$ajax_idsocios_region}, '{$ajax_descripcion_region}', {$ajax_oficial_de_credito}, {$ajax_region})";
    $action = my_query($strSQL_Insert);
    if ($action["stat"] == false) {
        $msg = "Se Fallo al Agregar el Registro";
    } else {
        $msg = "El Registro se Agrego Exitosamente";
    }
    return $msg;
}
开发者ID:Cywaithaka,项目名称:S.A.F.E.-Open-Source-Microfinance-Suite,代码行数:16,代码来源:socios_regiones.frm.php


示例9: xul_add_record

function xul_add_record($jx_idreport, $jx_descripcion_reports, $jx_aplica, $jx_idgeneral_reports, $jx_explicacion)
{
    $msg = "";
    settype($jx_idreport, "integer");
    settype($jx_descripcion_reports, "string");
    settype($jx_aplica, "string");
    settype($jx_idgeneral_reports, "string");
    settype($jx_explicacion, "string");
    $strSQL_Insert = "INSERT INTO general_reports(idreport, descripcion_reports, aplica, idgeneral_reports, explicacion)\n                        VALUES ({$jx_idreport}, '{$jx_descripcion_reports}', '{$jx_aplica}', '{$jx_idgeneral_reports}', '{$jx_explicacion}')";
    $action = my_query($strSQL_Insert);
    if ($action["stat"] == false) {
        $msg = "Se Fallo al Agregar el Registro";
    } else {
        $msg = "El Registro se Agrego Exitosamente";
    }
    return $msg;
}
开发者ID:Cywaithaka,项目名称:S.A.F.E.-Open-Source-Microfinance-Suite,代码行数:17,代码来源:editar_reportes.xul.php


示例10: Common_3de8e697db5bb95c43c3139743a47d8b

/**
* Funcion que actualiza el estado de la Notificacuon
* @
*/
function Common_3de8e697db5bb95c43c3139743a47d8b($params)
{
    $stdDiv = STD_LITERAL_DIVISOR;
    $DPar = explode($stdDiv, $params, STD_MAX_ARRAY_JS);
    $id = 0;
    settype($id, "integer");
    $id = $DPar[0];
    $estat = $DPar[1];
    $msg = "";
    $arrEstat = array(1 => "pendiente", 2 => "efectuado", 3 => "comprometido", 4 => "cancelado", 5 => "vencido");
    $sqlUNO = "UPDATE seguimiento_notificaciones\n    \t\t\tSET  estatus_notificacion='" . $arrEstat[$estat] . "'\n    \t\t\tWHERE idseguimiento_notificaciones={$id}";
    $x = my_query($sqlUNO);
    if ($x["stat"] != false) {
        if ($estat != "efectuado") {
            $msg = "Se Actualizo la Notificacion #{$id} A " . $arrEstat[$estat] . " Exitosamente!!!";
        }
    } else {
        $msg = "Se produjo un Error al Actualizar #{$id}";
    }
    return $msg;
}
开发者ID:Cywaithaka,项目名称:S.A.F.E.-Open-Source-Microfinance-Suite,代码行数:25,代码来源:seguimiento.common.js.php


示例11: fechasys

</head>
	<link href="<?php 
echo CSS_GENERAL_FILE;
?>
" rel="stylesheet" type="text/css">
	<script   src="../js/jsrsClient.js"></script>
<body>
<fieldset>
<legend>Linea de Credito Autorizada</legend>
<?php 
$idsocio = $_POST["idsocio"];
$montolinea = $_POST["montolinea"];
$observaciones = $_POST["observaciones"];
$numerohipoteca = $_POST["numerohipoteca"];
$montohipoteca = $_POST["montohipoteca"];
$fechavenc = $_POST["elanno0"] . "-" . $_POST["elmes0"] . "-" . $_POST["eldia0"];
$fechaalta = fechasys();
$eacp = EACP_CLAVE;
$sucursal = getSucursal();
$estado = 1;
// VIGENTE
$sqllcf = "numero_socio, monto_linea, observaciones, numerohipoteca, monto_hipoteca, \r\n\t\t\t\t\tfecha_de_vencimiento, fecha_de_alta, estado, idusuario, sucursal, eacp";
$sqllcv = "{$idsocio}, {$montolinea}, '{$observaciones}', '{$numerohipoteca}', {$montolinea}, \r\n\t\t\t\t'{$fechavenc}', '{$fechaalta}', {$estado}, {$iduser}, '{$sucursal}', '{$eacp}'";
$sqllc = "INSERT INTO creditos_lineas({$sqllcf}) VALUES ({$sqllcv})";
my_query($sqllc);
echo "<p class='aviso'>la Linea de Credito ha Sido Agregada como Autorizada, de esta fecha en adelante, el Socio <b>" . getNombreSocio($idsocio) . "</b>\r\n\tsera tomado en cuenta para Ministrarse Creditos por un monto no mayor a {$montolinea}; por lo que se tendra que respetar dicha cantidad.</p> \r\n\t<input type='button' name='btnprint' value='IMPRIMIR AUTORIZACION'>\r\n\t";
?>
</fieldset>
</body>
</html>
开发者ID:Cywaithaka,项目名称:S.A.F.E.-Open-Source-Microfinance-Suite,代码行数:30,代码来源:clscreditoslineas.php


示例12: sumardias

             //Generar la Notificacion si existe una Llamada sin compromiso
             if ($afected_row > 0) {
                 $fecha_venc_notif = sumardias($fecha_default, $dias_para_notificar);
                 $sql_notif = "INSERT INTO seguimiento_notificaciones\n\t\t\t\t\t\t\t\t(socio_notificado, numero_solicitud, numero_notificacion, fecha_notificacion, oficial_de_seguimiento, fecha_vencimiento,\n\t\t\t\t\t\t\t\tprocedimiento_proximo, capital, interes, moratorio, otros_cargos, total, observaciones, estatus_notificacion, tipo_credito, domicilio_completo)\n\t\t\t\t\t\t\t\tVALUES\n\t\t\t\t\t\t\t\t({$socio}, {$solicitud}, {$idnnew}, '{$fecha_default}', {$iduser}, '{$fecha_venc_notif}', '{$tnotif}',\n\t\t\t\t\t\t\t\t{$mletra}, {$interes}, {$interes_moratorio}, {$otros_cargos}, {$total}, '{$observaciones}', 'pendiente', 'automatizado', '{$domicilio}')";
                 $x = my_query($sql_notif);
                 if ($x["stat"] == false) {
                     $msg .= date("H:s:i") . "\t\t" . $x[SYS_MSG] . "\t\n";
                 } else {
                     $msg .= date("H:s:i") . "\t\t" . $x["info"] . "\t\n";
                 }
             }
         } else {
             //Generar la Notificacion
             $fecha_venc_notif = sumardias($fecha_default, $dias_para_notificar);
             $sql_notif = "INSERT INTO seguimiento_notificaciones\n\t\t\t\t(socio_notificado, numero_solicitud, numero_notificacion, fecha_notificacion, oficial_de_seguimiento, fecha_vencimiento,\n\t\t\t\tprocedimiento_proximo, capital, interes, moratorio, otros_cargos, total, observaciones, estatus_notificacion, tipo_credito, domicilio_completo)\n\t\t\t\tVALUES\n\t\t\t\t({$socio}, {$solicitud}, {$idnnew}, '{$fecha_default}', {$iduser}, '{$fecha_venc_notif}', '{$tnotif}',\n\t\t\t\t{$mletra}, {$interes}, {$interes_moratorio}, {$otros_cargos}, {$total}, '{$observaciones}', 'pendiente', 'automatizado', '{$domicilio}')";
             $x = my_query($sql_notif);
             if ($x["stat"] == false) {
                 $msg .= date("H:s:i") . "\t\t" . $x[SYS_MSG] . "\t\n";
             } else {
                 $msg .= date("H:s:i") . "\t\t" . $x["info"] . "\t\n";
             }
         }
     } elseif ($dias_vencidos > 60) {
         //Inicio Proc. Extrajudicial
     }
 }
 //end while
 fwrite($RFile, $msg);
 @mysql_free_result($rsPic);
 /** ***************************************************************************************************************************
  * AVISOS DE PAGOS PARA AUTOMATIZADOS
开发者ID:Cywaithaka,项目名称:S.A.F.E.-Open-Source-Microfinance-Suite,代码行数:31,代码来源:frm_generar_notificaciones.php


示例13: UpdateEditMvto

function UpdateEditMvto($keyMvto, $cuenta, $cargo, $abono, $referencia, $concepto, $diario)
{
    $dMvto = explode("@", $keyMvto);
    $ejercicio = $dMvto[1];
    $periodo = $dMvto[2];
    $poliza = $dMvto[3];
    $tipopoliza = $dMvto[4];
    $mvto = $dMvto[5];
    $cuenta = getCuentaCompleta($cuenta);
    //purgar Mvto
    if ($cargo > 0) {
        $abono = 0;
    }
    if ($cargo > 0) {
        $tmvto = 1;
        $monto = $cargo;
    } else {
        $tmvto = -1;
        $monto = $abono;
    }
    $sqlDatosMvtoAnterior = "SELECT\n\t`contable_movimientos`.*\nFROM\n\t`contable_movimientos` `contable_movimientos`\nWHERE\n\t`contable_movimientos`.`ejercicio` = {$ejercicio}\n\tAND `contable_movimientos`.`periodo` = {$periodo}\n\tAND `contable_movimientos`.`tipopoliza` = {$tipopoliza}\n\tAND `contable_movimientos`.`numeropoliza` = {$poliza}\n\tAND `contable_movimientos`.`numeromovimiento` ={$mvto}";
    $DMAnterior = getFilas($sqlDatosMvtoAnterior);
    $AntCuenta = $DMAnterior["numerocuenta"];
    $AntTMvto = $DMAnterior["tipomovimiento"];
    $AntMonto = $DMAnterior["importe"];
    $AntFecha = $DMAnterior["fecha"];
    //----------------------- Revertir Afectacion ------------------
    $sqldcta = "SELECT\n\t`contable_catalogo`.`numero`,\n\t(`contable_catalogotipos`.`naturaleza` * `contable_catalogotipos`.`naturaleza_del_sector`) AS 'factor'\nFROM\n\t`contable_catalogotipos` `contable_catalogotipos`\n\t\tINNER JOIN `contable_catalogo` `contable_catalogo`\n\t\tON `contable_catalogotipos`.\n\t\t`idcontable_catalogotipos` = `contable_catalogo`.\n\t\t`tipo`\nWHERE `contable_catalogo`.`numero`={$AntCuenta}";
    $dcuenta = getFilas($sqldcta);
    $AntNaturaleza = $dcuenta["factor"];
    setRevertirMvto($AntCuenta, $periodo, $ejercicio, $AntNaturaleza, $AntTMvto, $AntMonto);
    //----------------------- Eliminar Cuenta ----------------------
    $sqlDelMvtoAnterior = "DELETE\n\t\tFROM\n\t\t\t`contable_movimientos`\n\t\tWHERE\n\t\t\t`contable_movimientos`.`ejercicio` = {$ejercicio}\n\t\t\tAND `contable_movimientos`.`periodo` = {$periodo}\n\t\t\tAND `contable_movimientos`.`tipopoliza` = {$tipopoliza}\n\t\t\tAND `contable_movimientos`.`numeropoliza` = {$poliza}\n\t\t\tAND `contable_movimientos`.`numeromovimiento` ={$mvto}";
    my_query($sqlDelMvtoAnterior);
    //----------------------- Insertar Cuenta ----------------------
    $NSqlcta = "SELECT\n\t`contable_catalogo`.`numero`,\n\t(`contable_catalogotipos`.`naturaleza` * `contable_catalogotipos`.`naturaleza_del_sector`) AS 'factor'\nFROM\n\t`contable_catalogotipos` `contable_catalogotipos`\n\t\tINNER JOIN `contable_catalogo` `contable_catalogo`\n\t\tON `contable_catalogotipos`.\n\t\t`idcontable_catalogotipos` = `contable_catalogo`.\n\t\t`tipo`\nWHERE `contable_catalogo`.`numero`={$cuenta}";
    $dNcuenta = getFilas($NSqlcta);
    $naturaleza = $dNcuenta["factor"];
    $sqli_mvto = "INSERT INTO contable_movimientos(ejercicio, periodo, tipopoliza, numeropoliza, numeromovimiento,\nnumerocuenta, tipomovimiento, referencia, importe, diario, moneda, concepto, fecha, cargo, abono)\n    VALUES({$ejercicio}, {$periodo},\n    {$tipopoliza}, {$poliza},\n    {$mvto}, {$cuenta},\n    '{$tmvto}', '{$referencia}',\n    {$monto}, {$diario}, 1,\n    '{$concepto}', '{$AntFecha}',\n    {$cargo}, {$abono})";
    my_query($sqli_mvto);
    setAfectarSaldo($cuenta, $periodo, $ejercicio, $naturaleza, $tmvto, $monto);
}
开发者ID:Cywaithaka,项目名称:S.A.F.E.-Open-Source-Microfinance-Suite,代码行数:42,代码来源:frm_poliza_movimientos.anterior.php


示例14: setOtrosParametros

 function setOtrosParametros($Parametro, $Valor, $FechaDeExpiracion = false)
 {
     $xDb = new cSAFETabla(TCREDITOS_PRODUCTOS_OTROS_PARAMETROS);
     $dpt = $this->mClaveDeConvenio;
     $f = fechasys();
     $FechaDeExpiracion = $FechaDeExpiracion == false ? '2029-01-01' : $FechaDeExpiracion;
     //idcreditos_productos_otros_parametros, clave_del_producto, clave_del_parametro, valor_del_parametro, fecha_de_alta, fecha_de_expiracion
     $insert = $xDb->getInsert("{$dpt}, '{$Parametro}', '{$Valor}', '{$f}', '{$FechaDeExpiracion}' ", $xDb->getCamposSinClaveUnica());
     my_query($insert);
 }
开发者ID:Cywaithaka,项目名称:S.A.F.E.-Open-Source-Microfinance-Suite,代码行数:10,代码来源:core.creditos.inc.php


示例15: header

        if (null == $id) {
            header("Location: index");
        }
        if (!empty($_POST)) {
            // keep track validation errors
            $nameError = null;
            // keep track post values
            $name = $_POST['name'];
            // validate input
            $valid = true;
            if (empty($name)) {
                $nameError = 'Please enter name';
                $valid = false;
            }
            $numRows = getNumRows('s', array(&$name), "SELECT name FROM organization WHERE id=?");
            $db_result = my_query('i', array(&$id), "SELECT name FROM organization where ID=?");
            if ($valid) {
                $params = array(&$name, &$id);
                $sql = "UPDATE organization set name = ? where id = ?";
                my_update('si', $params, $sql);
                $_SESSION['crud_update_success'] = true;
            }
        }
        ?>


<!DOCTYPE html>
<html lang="en">
<head>
      <meta charset="utf-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
开发者ID:alvinsee,项目名称:bugTracker,代码行数:31,代码来源:update.php


示例16: exist_translated_view

 private function exist_translated_view($lan)
 {
     global $conex;
     $view_name = $this->table_name . '_' . $lan;
     $sql = 'SELECT table_name FROM information_schema.tables WHERE table_schema = \'' . $this->database . '\' AND table_name = \'' . $view_name . '\'';
     $sel = my_query($sql, $conex);
     return my_result($sel, 0, 'table_name') == $view_name;
 }
开发者ID:javiercaceres77,项目名称:rooms,代码行数:8,代码来源:oops_comm.php


示例17: my_update

        if (!empty($_POST)) {
            // keep track post values
            $id = $_POST['id'];
            if ($_SESSION['admin'] == 2) {
                //Developer
                $sql = "DELETE FROM user WHERE ID = ?";
                my_update('i', array(&$id), $sql);
            } else {
                //Admin
                $sql = "DELETE FROM user WHERE ID = ? AND OrgID = ?";
                my_update('ii', array(&$id, &$orgID), $sql);
            }
            my_disconnect();
            header("Location: index");
        } else {
            $data = my_query('ii', array(&$id, &$orgID), "SELECT * FROM user where ID = ? AND OrgID = ?");
            if ($data == null) {
                header("Location: index");
            }
        }
        ?>

<!DOCTYPE html>
<html lang="en">
<head>
      <meta charset="utf-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <meta name="description" content="dashboard">

      <title>scalabrine | delete</title>
开发者ID:alvinsee,项目名称:bugTracker,代码行数:30,代码来源:delete.php


示例18: parametro

$frecuencia = parametro("periocidad", SYS_TODAS);
$producto = parametro("convenio", SYS_TODAS);
$producto = parametro("producto", $producto);
$empresa = parametro("empresa", SYS_TODAS);
$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);
$sucursal = parametro("s", SYS_TODAS);
$si_es_por_fecha = "";
$graficos = parametro("graficos", false, MQL_BOOL);
$BySuc = $sucursal == SYS_TODAS ? "" : " AND `creditos_solicitud`.`sucursal`= '{$sucursal}'";
$si_es_por_fecha = " AND fecha_ministracion>='{$FechaInicial}' AND fecha_ministracion<='{$FechaFinal}' ";
$xF->set($FechaFinal);
$ejercicio = $xF->anno();
my_query("SET @ejercicio:={$ejercicio};");
$sql = "\nSELECT\n\t`creditos_tipoconvenio`.`descripcion_tipoconvenio`   AS `convenio`,\n\tCOUNT(`creditos_saldo_mensuales`.`numero_solicitud`) AS `creditos`,\n\tSUM(`creditos_saldo_mensuales`.`enero`)      AS `enero`,\n\tSUM(`creditos_saldo_mensuales`.`febrero`)    AS `febrero`,\n\tSUM(`creditos_saldo_mensuales`.`marzo`)      AS `marzo`,\n\tSUM(`creditos_saldo_mensuales`.`abril`)      AS `abril`,\n\tSUM(`creditos_saldo_mensuales`.`mayo`)       AS `mayo`,\n\tSUM(`creditos_saldo_mensuales`.`junio`)      AS `junio`,\n\tSUM(`creditos_saldo_mensuales`.`julio`)      AS `julio`,\n\tSUM(`creditos_saldo_mensuales`.`agosto`)     AS `agosto`,\n\tSUM(`creditos_saldo_mensuales`.`septiembre`) AS `septiembre`,\n\tSUM(`creditos_saldo_mensuales`.`octubre`)    AS `octubre`,\n\tSUM(`creditos_saldo_mensuales`.`noviembre`)  AS `noviembre`,\n\tSUM(`creditos_saldo_mensuales`.`diciembre`)  AS `diciembre` \n\t\t\nFROM\n\t`creditos_saldo_mensuales` `creditos_saldo_mensuales` \n\t\tINNER JOIN `creditos_tipoconvenio` `creditos_tipoconvenio` \n\t\tON `creditos_saldo_mensuales`.`tipo_convenio` = `creditos_tipoconvenio`.\n\t\t`idcreditos_tipoconvenio`\n\tGROUP BY\n\t\t\n\t\t`creditos_saldo_mensuales`.`tipo_convenio`\n\t\t ";
$xT = new cTabla($sql);
$xT->setFootSum(array(1 => "creditos", 2 => "enero", 3 => "febrero", 4 => "marzo", 5 => "abril", 6 => "mayo", 7 => "junio", 8 => "julio", 9 => "agosto", 10 => "septiembre", 11 => "octubre", 12 => "noviembre", 13 => "diciembre"));
$xRPT->setOut($out);
$xRPT->addContent($xRPT->getEncabezado($xHP->getTitle(), $FechaInicial, $FechaFinal));
$xRPT->setSQL($sql);
$xT->setTipoSalida($out);
$xRPT->addContent($xT->Show());
//$xRPT->addContent("<script>setTimeout('mychart',1500);  function mychart() { $('#sqltable').visualize({type: 'bar', width: '450px'}).appendTo('body'); }</script>");
echo $xRPT->render(true);
开发者ID:Cywaithaka,项目名称:S.A.F.E.-Open-Source-Microfinance-Suite,代码行数:31,代码来源:rpt_saldos_creditos_mensuales.rpt.php


示例19: elseif

    $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();
//echo "$datos_del_contrato[4] en contrato $idcontrato";
$jxc->drawJavaScript(false, true);
?>
</body>
开发者ID:Cywaithaka,项目名称:S.A.F.E.-Open-Source-Microfinance-Suite,代码行数:31,代码来源:frmeditor_contratos.php


示例20: execute

 function execute($socio, $tipo)
 {
     if (isset($this->mFile)) {
         //Mover los Archivos
         $destFile = PATH_TMP . $this->mFile['name'];
         $imgFile = "";
         $onProcess = true;
         if (move_uploaded_file($this->mFile['tmp_name'], $destFile)) {
             $md5FIl = md5_file($destFile);
             switch ($this->mFile["type"]) {
                 case "image/png":
                     $imgFile = imagecreatefrompng($destFile);
                     break;
                 case "image/jpeg":
                     $imgFile = imagecreatefromjpeg($destFile);
                     break;
                 case "image/gif":
                     $imgFile = imagecreatefromgif($destFile);
                     break;
                 default:
                     $onProcess = false;
                     $this->mMsg .= "<br /> EL TIPO DE ARCHIVO (" . $this->mFile["type"] . ") NO ES EL CORRECTO";
                     break;
             }
             if ($onProcess == true) {
                 ob_start();
                 $txt = "[" . date("Ydm H:i:s") . "] " . EACP_NAME;
                 imagettftext($imgFile, 9, 0, 10, 10, 20, "../fonts/arial.ttf", $txt);
                 imagepng($imgFile);
                 //Resize image
                 $png = ob_get_contents();
                 ob_end_clean();
                 $png = str_replace('##', '##', mysql_escape_string($png));
                 $user = $_SESSION["SN_b80bb7740288fda1f201890375a60c8f"];
                 $eacp = EACP_CLAVE;
                 $sucursal = getSucursal();
                 $date = fechasys();
                 //Elimina las firmas anteriores
                 $sqldel = "DELETE FROM socios_firmas WHERE numero_de_cuenta={$cuenta}\n\t\t\t\t\tAND tipo={$tipo}";
                 my_query($sqldel);
                 $rsUQ = "INSERT INTO socios_firmas\n\t\t\t\t\t\t\t\t\t(numero_de_socio, tipo, \n\t\t\t\t\t\t\t\t\tfirma, md5_src, idusuario, sucursal, fecha_carga, eacp) \n    \t\t\t\t\t\t\t\tVALUES\n    \t\t\t\t\t\t\t\t({$socio}, {$tipo}, \"{$png}\", '{$md5FIl}', {$user}, '{$sucursal}', '{$date}', '{$eacp}')";
                 $rsM = my_query($rsUQ);
                 if ($rsM["stat"] == false) {
                     $this->mMsg .= "<br /> ERROR AL GUARDAR EL ARCHIVO EN LA DB, EL SISTEMA DEVOLVIO: " . $rsM["error"];
                 } else {
                     $this->mMsg .= "<br /> PROCESO EXITOSO";
                 }
             } else {
                 $this->mMsg .= "<br /> EL PROCESO NO SE LLEVO A CABO";
             }
             //Elimina el Archivo
             unlink($destFile);
         } else {
             //no se Movio
             $this->mMsg .= "<br /> NO SE CARGO EL ARCHIVO " . $this->mFile["name"] . "(" . $this->mFile["error"] . ")";
         }
     } else {
         $this->mMsg .= "<br /> NO EXISTE EL ARCHIVO ";
     }
 }
开发者ID:Cywaithaka,项目名称:S.A.F.E.-Open-Source-Microfinance-Suite,代码行数:60,代码来源:frmcaptacionfirmas.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP my_serialize函数代码示例发布时间:2022-05-15
下一篇:
PHP my_public_key函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap