-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathcons_servidrhpessoal.php
More file actions
executable file
·202 lines (182 loc) · 7.41 KB
/
cons_servidrhpessoal.php
File metadata and controls
executable file
·202 lines (182 loc) · 7.41 KB
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
<?
/*
* E-cidade Software Publico para Gestao Municipal
* Copyright (C) 2012 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
*/
error_reporting('** CONSULTA FUNCIONAL! **');
session_start();
include("libs/db_conecta.php");
include("libs/db_stdlib.php");
include("libs/db_sql.php");
include("libs/db_utils.php");
include("dbforms/db_funcoes.php");
validaUsuarioLogado();
$aRetorno = array();
parse_str(base64_decode($HTTP_SERVER_VARS["QUERY_STRING"]),$aRetorno);
$id_usuario = $aRetorno['id_usuario'];
$matricula = $aRetorno['matricula'];
$instituicao = $aRetorno['instituicao'];
$numcgm = db_getsession("DB_login");
$anoFolha = db_anofolha($instituicao);
$mesFolha = db_mesfolha($instituicao);
db_logs("","",0,"Consulta Funcional.");
$sUrl = base64_encode("iMatric=".$matricula."&iInstit=".$instituicao);
$sUrlAverba = base64_encode("&averba");
/**
* Caso o cliente seja Bage (codcli = 15)
* Então a variável lBloqueio passa a ser true e não mostrará os menus:
* - Assentamento
* - Averbação do tempo de serviço
* - Férias
*
* Do contrário todos os menus são mostrados normalmente.
*/
$lBloqueio = false;
$rsCodCli = db_query("select db21_codcli from db_config where prefeitura is true limit 1");
$iCodCli = db_utils::fieldsmemory($rsCodCli)->db21_codcli;
if ($iCodCli == 15 ) {
$lBloqueio = true;
}
?>
<html>
<head>
<title><?=$w01_titulo?></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="config/portalservidor.css" rel="stylesheet" type="text/css">
<script language="JavaScript" src="scripts/db_script.js"></script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" bgcolor="<?=$w01_corbody?>">
<table width="100%" border="0" bordercolor="#cccccc" cellpadding="2" cellspacing="0" class="texto">
<tr>
<td><br></td>
</tr>
</table>
<?
if ($id_usuario != "") {
?>
<table width="100%" border="0" cellpadding="2" cellspacing="0" class="texto">
<tr>
<td valign="top" width="10%">
<table width="200" height="10%" id="navigation" border="0">
<tr>
<td nowrap="nowrap" width="100%">
<span class="navText" style="cursor: pointer;" onClick="js_atualizaFrame('dadosCadastrais');">Consulta Dados Cadastrais</span>
</td>
</tr>
<? if ($lBloqueio == false ) { ?>
<tr>
<td nowrap="nowrap" width="100%">
<span class="navText" style="cursor: pointer;" onClick="js_atualizaFrame('assentamentos');">Assentamentos</span>
</td>
</tr>
<tr>
<td nowrap="nowrap" width="100%">
<span class="navText" style="cursor: pointer;" onClick="js_atualizaFrame('averbacao');">Averbação de Tempo de Serviço</span>
</td>
</tr>
<? } ?>
<tr>
<td nowrap="nowrap" width="100%">
<span class="navText" style="cursor: pointer;" onClick="js_atualizaFrame('dependentes');">Dependentes</span>
</td>
</tr>
<? if ($lBloqueio == false ) { ?>
<tr>
<td nowrap="nowrap" width="100%">
<span class="navText" style="cursor: pointer;" onClick="js_atualizaFrame('ferias');">Férias</span>
</td>
</tr>
<? } ?>
<tr>
<td nowrap="nowrap" width="100%">
<span class="navText" style="cursor: pointer;" onClick="js_atualizaFrame('comprovanteRendimentos');">Comprovante de Rendimentos</span>
</td>
</tr>
<tr>
<td nowrap="nowrap" width="100%">
<span class="navText" style="cursor: pointer;" onClick="js_atualizaFrame('fichaFinanceira');">Ficha Financeira</span>
</td>
</tr>
<tr>
<td nowrap="nowrap" width="100%"> </td>
</tr>
<tr>
<td nowrap="nowrap" width="100%">
<span class="navText" style="cursor: pointer;" onClick="js_voltar('<?=$id_usuario?>');">Voltar</span>
</td>
</tr>
</table>
</td>
<td valign="top" width="97%">
<iframe id="iframePortalServidor" name="iframe" src="centro_pref.php" width="100%" height="500px;" style="border:hidden;"></iframe>
</td width="3%">
<td> </td>
</tr>
</table>
<?
} else if ($w13_permfornsemlog == "f") {
?>
<table width="300" align="center" border="0" bordercolor="#cccccc" cellpadding="2" cellspacing="0" class="texto">
<tr height="220">
<td align="center">
<img src="imagens/atencao.gif"><br>
Para acessar suas informações, efetue login.
</td>
</tr>
</table>
<?
}
?>
</body>
</html>
<script>
function imprimir(){
jan=window.open('',
'',
'width='+(screen.availWidth-5)+',height='+(screen.availHeight-40)+',scrollbars=1,location=0');
jan.moveTo(0,0);
}
function js_voltar(id){
var idusuario = id;
document.location.href = 'cons_funcional.php?id_usuario='+idusuario;
}
function js_atualizaFrame( sOpcao ){
var sQuery = '<?=$sUrl?>';
if ( sOpcao == 'dadosCadastrais') {
document.getElementById('iframePortalServidor').src = 'dadosfuncionario.php?'+sQuery;
} else if (sOpcao == 'assentamentos') {
document.getElementById('iframePortalServidor').src = 'dadosassentamentos.php?'+sQuery;
} else if (sOpcao == 'averbacao') {
document.getElementById('iframePortalServidor').src = 'dadosassentamentos.php?'+sQuery+'<?=$sUrlAverba?>';
} else if (sOpcao == 'dependentes') {
document.getElementById('iframePortalServidor').src = 'dependentesservidor.php?'+sQuery;
} else if (sOpcao == 'ferias') {
document.getElementById('iframePortalServidor').src = 'feriasservidor.php?'+sQuery;
} else if (sOpcao == 'comprovanteRendimentos') {
document.getElementById('iframePortalServidor').src = 'comprovanterendimentosservidor.php?'+sQuery;
} else if (sOpcao == 'fichaFinanceira') {
document.getElementById('iframePortalServidor').src = 'fichafinanceiraservidor.php?'+sQuery;
}
}
</script>