コード例 #1
0
function db_mensagem($cabecalho, $rodape)
{
    global $DB_mens1, $DB_align1, $DB_mens2, $DB_align2;
    $result = pg_query("select mens,alinhamento from db_confmensagem where (cod = '{$cabecalho}' or cod = '{$rodape}') and instit = " . db_getsession("DB_instit") . " order by cod");
    if (pg_numrows($result) == 0) {
        db_msgbox2("Mensagem não encontrado para: {$cabecalho} {$rodape}");
        //redireciona("index.php");
        exit;
    }
    $DB_mens1 = @pg_result($result, 0, 0);
    $DB_align1 = @pg_result($result, 0, 1);
    $DB_mens2 = @pg_result($result, 1, 0);
    $DB_align2 = @pg_result($result, 1, 1);
}
コード例 #2
0
            $area = "area_{$i}";
            $anoconstr = "anoconstr{$i}";
            if (${$area} + 0 > 0) {
                $str = "insert into db_caritbilan \n                 values({$id_itbi},\n                        " . ${$tipo} . ",\n                        " . ${$area} . ",\n                        '" . ${$carconstr} . "',\n                        " . ${$anoconstr} . "\n                        )";
                pg_exec($str);
            }
        }
        $result = pg_exec("update db_itbi set matricula ='{$cod_matricula}' ,\n                                       areaterreno={$areaterreno},\n                                       areareal={$areareal},\n                                       situacao='{$situacao}',\n                                       areaedificada={$areaedificada},\n                                       nomecomprador='{$nomecomprador}',\n                                       cgccpfcomprador='{$cgccpfcomprador}',\n                                       enderecocomprador='{$enderecocomprador}',\n                                       municipiocomprador='{$municipiocomprador}',\n                                       bairrocomprador='{$bairrocomprador}',\n                                       cepcomprador='{$cepcomprador}',\n                                       ufcomprador='{$ufcomprador}',\n                                       numerocomprador={$numerocomprador},\n                                       complcomprador='{$complcomprador}',\n                                       cxpostcomprador='{$cxpostcomprador}',\n                                       tipotransacao='{$tipotransacao}',\n                                       valortransacao='{$valortransacao}',\n                                       caracteristicas='caracteristicas',\n                                       mfrente={$mfrente},\n                                       mladodireito={$mladodireito},\n                                       mfundos={$mfundos},\n                                       mladoesquerdo={$mladoesquerdo},\n                                       email='{$email}',\n                                       obs='{$obs}'\n                       where id_itbi = {$id_itbi}") or die('Erro no Sql');
        if (pg_cmdtuples($result) == 0) {
            pg_exec("rollback");
            db_msgbox2('Erro ao Gravar Solicitação.');
            redireciona("opcoesitbi.php?" . base64_encode("matricula=" . $cod_matricula));
            exit;
        } else {
            pg_exec("commit");
            db_msgbox2('Solicitação alterada com sucesso');
            redireciona("opcoesitbi.php?" . base64_encode("matricula=" . $cod_matricula));
            exit;
        }
    }
}
mens_help();
parse_str(base64_decode($HTTP_SERVER_VARS["QUERY_STRING"]));
$cod_matricula = 0 + $matricula;
if (!is_int($cod_matricula) or $cod_matricula == "") {
    msgbox("Código da Matrícula Inválido.");
    db_logs("", "", 0, "Código da Matrícula Inválido.");
    redireciona("digitaitbi.php");
}
$result = pg_exec("select * from db_itbi where matricula = {$cod_matricula} and libpref = '1'");
if (pg_numrows($result) > 0) {
コード例 #3
0
parse_str(base64_decode($HTTP_SERVER_VARS["QUERY_STRING"]));
$cod_matricula = 0 + $matricula;
if (!is_int($cod_matricula) or $cod_matricula == "") {
    db_msgbox2("Código Matrícula Inválido.");
    db_logs("", "", 0, "Matrícula Inválida.");
    redireciona('index.php');
}
$result = pg_exec("select * from db_itbi where matricula = {$cod_matricula} and libpref = '1'");
if (pg_numrows($result) > 0) {
    db_msgbox2("Socilitação de Guia de ITBI está em processo de avaliação. Volte mais tarde.");
    db_logs("{$cod_matricula}", "", 0, "Socilitação de Guia de ITBI está em processo de avaliação. Volte mais tarde. Numero: {$cod_matricula}");
    redireciona("opcoesitbi.php?" . base64_encode("matricula=" . $cod_matricula));
}
$result = pg_exec("select * from db_itbi where matricula = {$cod_matricula} and ( datavencimento >= CURRENT_DATE or datavencimento is null)");
if (pg_numrows($result) == 0) {
    db_msgbox2("Socilitação de Guia de ITBI não Efetuada ou Vencida. Solicite Novamente.");
    db_logs("{$cod_matricula}", "", 0, "Socilitação de Guia de ITBI não Efetuada ou Vencida. Solicite Novamente. Numero: {$cod_matricula}");
    redireciona("opcoesitbi.php?" . base64_encode("matricula=" . $cod_matricula));
}
db_fieldsmemory($result, 0);
db_logs("{$cod_matricula}", "", 0, "Verifica Socilitação. Numero: {$id_itbi}");
?>
<html>
<head>
<title><?php 
echo $w01_titulo;
?>
</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" src="scripts/db_script.js"></script>
<script>
コード例 #4
0
 *  Voce deve ter recebido uma copia da Licenca Publica Geral GNU     
 *  junto com este programa; se nao, escreva para a Free Software     
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA          
 *  02111-1307, USA.                                                  
 *  
 *  Copia da licenca no diretorio licenca/licenca_en.txt 
 *                                licenca/licenca_pt.txt 
 */
require "libs/db_conecta.php";
include "libs/db_stdlib.php";
require "fpdf151/scpdf.php";
parse_str($HTTP_SERVER_VARS['QUERY_STRING']);
//db_postmemory($HTTP_SERVER_VARS,2);
$result = pg_exec($conn, "select db_itbi.*,to_char(datavencimento,'DD-MM-YYYY') as datavenctochar\n                       from db_itbi\n    \t\t\t\t   where id_itbi = " . $itbi);
if (pg_numrows($result) == 0) {
    db_msgbox2('Recibo nao gerado. Entre em contato com a prefeitura');
    exit;
    //redireciona();
}
db_fieldsmemory($result, 0);
$proprietarios = '';
$resultprop = pg_exec($conn, "select *\n                       from propri inner join cgm on j42_numcgm = z01_numcgm\n    \t\t\t\t   where j42_matric = " . $matricula);
if (pg_numrows($resultprop) > 0) {
    $traco = '';
    $proprietarios = "\n" . 'OUTROS TRANSMITENTES : ';
    for ($p = 0; $p < pg_numrows($resultprop); $p++) {
        db_fieldsmemory($resultprop, $p);
        $proprietarios .= $traco . trim($z01_nome);
        $traco = ' - ';
    }
}