-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcai3_gerfinanc007.php
executable file
·115 lines (108 loc) · 4.06 KB
/
cai3_gerfinanc007.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<?
/*
* E-cidade Software Publico para Gestao Municipal
* Copyright (C) 2009 DBselller Servicos de Informatica
* www.dbseller.com.br
* e-cidade@dbseller.com.br
*
* Este programa e software livre; voce pode redistribui-lo e/ou
* modifica-lo sob os termos da Licenca Publica Geral GNU, conforme
* publicada pela Free Software Foundation; tanto a versao 2 da
* Licenca como (a seu criterio) qualquer versao mais nova.
*
* Este programa e distribuido na expectativa de ser util, mas SEM
* QUALQUER GARANTIA; sem mesmo a garantia implicita de
* COMERCIALIZACAO ou de ADEQUACAO A QUALQUER PROPOSITO EM
* PARTICULAR. Consulte a Licenca Publica Geral GNU para obter mais
* detalhes.
*
* 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
*/
// select k00_numpre,k00_numpar,k00_receit from arrecad where k00_numpre = 11111454;
require("libs/db_stdlib.php");
require("libs/db_conecta.php");
require("classes/db_notificacao_classe.php");
//include("libs/db_sessoes.php");
//include("libs/db_sql.php");
parse_str($HTTP_SERVER_VARS['QUERY_STRING']);
//db_postmemory($HTTP_SERVER_VARS,2);
?>
<html>
<head>
<title>Documento sem título</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script>
function js_recebenotif(notifi){
js_OpenJanelaIframe('top.corpo','db_iframe_notificacao','cai3_gerfinanc019.php?notifi='+notifi,'Recebimento de Notificação',true);
}
</script>
<style>
.fonte {
font-family:Arial, Helvetica, sans-serif;
}
</style>
<link href="estilos.css" rel="stylesheet" type="text/css">
<script language="JavaScript" src="scripts/scripts.js"></script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="parent.document.getElementById('processando').style.visibility = 'hidden'">
<center>
<?
if(isset($erro1)) { ?>
<br><br><br><Br><h3>Débitos recentemente pagos!</h3>
<?
}else{
?>
<table width="100%" border="0" cellpadding="0" cellspacing="5">
<tr>
<td align="left" ><h3> Notificações Enviadas ao Contribuinte:</h3>
<?
$clnotificacao = new cl_notificacao;
$numpres = "";
if(isset($matric)){
$numpres .= " k55_matric = $matric and ";
}else if(isset($inscr)){
$numpres .= " k56_inscr = $inscr and ";
}else if(isset($numcgm)){
$numpres .= " k57_numcgm = $numcgm and ";
}else if(isset($numpre)){
$numpres .= " notidebitos.k53_notifica = notificacao.k50_notifica and notidebitos.k53_numpre = $numpre and ";
}else{
$numpres = "";
}
$sql = $clnotificacao->sql_query(""," distinct k50_notifica,k50_dtemite,k52_hora,k51_descr,k50_obs,db_usuarios.nome,k54_data,k54_hora,k54_assinante::text,k54_obs"," k50_notifica ",$numpres." k52_id_usuario = db_usuarios.id_usuario");
db_lovrot($sql,10,"()","16","js_recebenotif|0",null,"NoMe",array(),false);
$result = pg_exec("select k03_msg from numpref where k03_anousu = ".db_getsession("DB_anousu"));
if(pg_numrows($result)!=0){
$str = str_replace("\n","<br>",pg_result($result,0,0));
?>
</td>
</tr>
<tr>
<td align="left" class="fonte"><h3>Mensagem aos Usuários:</h3></td>
</tr>
<tr>
<td class="fonte" align="justify" valign="top">
<?
echo str_replace(" "," ",$str);
?>
</td>
</tr>
<?
}
?>
<tr>
<td align="center"> </td>
</tr>
</table>
<?
}
?>
</center>
</body>
</html>