}
if (isset($_POST['idTramiteExc'])) {
    $idTramiteExcEdit = $_POST['idTramiteExc'];
    $_arreglo = array();
    $cnn = new conexion();
    $queryIdTramiteEdit = "SELECT IFNULL(ex_mensaje,'') AS 'ex_mensaje',IFNULL(ex_diferencia,'') AS 'dif_exc' FROM comprobaciones \n\tINNER JOIN detalle_comprobacion\n\tON dc_comprobacion = co_id\n\tLEFT JOIN excepciones\n\tON ex_comprobacion_detalle = dc_id\n\tWHERE co_tramite = (SELECT co_tramite FROM comprobaciones WHERE co_mi_tramite = {$idTramiteExcEdit})";
    //error_log($queryIdTramiteEdit);
    $rstEdit = $cnn->consultar($queryIdTramiteEdit);
    while ($fila = mysql_fetch_assoc($rstEdit)) {
        $_arreglo[] = array('ex_mensaje' => utf8_encode($fila['ex_mensaje']), 'dif_exc' => utf8_encode($fila['dif_exc']));
    }
    echo json_encode($_arreglo);
}
if (isset($_POST["proveedorRFC"])) {
    $cnn = new conexion();
    $proveedorNombre = scapeUTF8(UTF8_decode($_POST['proveedorNombre']));
    $sql = "SELECT COUNT(pro_id) AS result\n\t\t\tFROM proveedores \n\t\t\tWHERE pro_rfc = '" . $_POST['proveedorRFC'] . "' \n\t\t\tAND pro_proveedor LIKE '{$proveedorNombre}'";
    $res = $cnn->consultar($sql);
    $row = mysql_fetch_assoc($res);
    echo $row["result"];
}
//funcion que nos permitira activar el campo de comentarios si el parametro ha sido excedido
if (isset($_POST["tramiteComentario"])) {
    $tramiteIdComentario = $_POST['tramiteComentario'];
    $conceptoIdComentario = $_POST['conceptoIdComentario'];
    $cnn = new conexion();
    $parameter = new Parametro();
    $conceptoC = new Concepto();
    $sv_viaje = "";
    $datosConcepto = array();
    $nombreParametro = "";
 public function em_addContent($id, $content, $type = self::EM_CONTENTTYPE_HTML, $isUTF8 = true)
 {
     $this->debug(__METHOD__, 2, __LINE__);
     if (isset($this->mailers[$id])) {
         if ($isUTF8) {
             $content = UTF8_decode($content);
         }
         $this->mailers[$id]['Body'] = $this->clean_html_content($content);
         $this->mailers[$id]['ContentType'] = $type;
     } else {
         return $this->setError(self::ERROR_EM_NOTCONSTRUCTED);
     }
 }
示例#3
0
            } else {
                echo $response = "OK";
            }
        } else {
            if ($tipo == 'multa') {
                $id = $_POST['id'];
                $nome = $_POST['nome'];
                $valor = $_POST['valor'];
                $sql = "UPDATE multa SET nome='{$nome}', valor='{$valor}'\r\n\t\t\t\t\t\t\t  WHERE id='{$id}'";
                if (!mysqli_query($conexao, UTF8_decode($sql))) {
                    echo $response = mysqli_error($conexao);
                } else {
                    echo $response = "OK";
                }
            } else {
                if ($tipo == 'tempo') {
                    $id = $_POST['id'];
                    $nome = $_POST['nome'];
                    $dias = $_POST['dias'];
                    $sql = "UPDATE tipo_emprestimo SET nome='{$nome}', dias='{$dias}'\r\n\t\t\t\t\t\t\t  WHERE id='{$id}'";
                    if (!mysqli_query($conexao, UTF8_decode($sql))) {
                        echo $response = mysqli_error($conexao);
                    } else {
                        echo $response = "OK";
                    }
                }
            }
        }
    }
}
mysqli_close($conexao);