Commit a9d3304e9cdceb43ad0c8288cdd08a1a72fcbec4
1 parent
0fe4196f
Exists in
master
and in
1 other branch
Melhoria para que o cadastro de Novo Interessado na base de contatos do SEI pelo…
… Peticionamento de Processo Novo grave também o CPF ou CNPJ formatado no campo Sigla
Showing
1 changed file
with
542 additions
and
542 deletions
Show diff stats
sei/web/modulos/peticionamento/md_pet_interessado_cadastro.php
@@ -7,281 +7,280 @@ | @@ -7,281 +7,280 @@ | ||
7 | */ | 7 | */ |
8 | 8 | ||
9 | try { | 9 | try { |
10 | - | 10 | + |
11 | require_once dirname(__FILE__).'/../../SEI.php'; | 11 | require_once dirname(__FILE__).'/../../SEI.php'; |
12 | - | 12 | + |
13 | session_start(); | 13 | session_start(); |
14 | - | 14 | + |
15 | ////////////////////////////////////////////////////////////////////////////// | 15 | ////////////////////////////////////////////////////////////////////////////// |
16 | InfraDebug::getInstance()->setBolLigado(false); | 16 | InfraDebug::getInstance()->setBolLigado(false); |
17 | InfraDebug::getInstance()->setBolDebugInfra(false); | 17 | InfraDebug::getInstance()->setBolDebugInfra(false); |
18 | InfraDebug::getInstance()->limpar(); | 18 | InfraDebug::getInstance()->limpar(); |
19 | ////////////////////////////////////////////////////////////////////////////// | 19 | ////////////////////////////////////////////////////////////////////////////// |
20 | 20 | ||
21 | - PaginaSEIExterna::getInstance()->setTipoPagina( InfraPagina::$TIPO_PAGINA_SIMPLES ); | 21 | + PaginaSEIExterna::getInstance()->setTipoPagina( InfraPagina::$TIPO_PAGINA_SIMPLES ); |
22 | 22 | ||
23 | switch($_GET['acao']){ | 23 | switch($_GET['acao']){ |
24 | 24 | ||
25 | - case 'md_pet_interessado_cadastro': | ||
26 | - | ||
27 | - if( !isset( $_GET['edicao']) && !isset( $_POST['hdnIdEdicaoAuxiliar']) ){ | ||
28 | - $strTitulo = 'Cadastro de Interessado'; | ||
29 | - } else { | ||
30 | - $strTitulo = 'Alterar Interessado'; | ||
31 | - } | ||
32 | - | ||
33 | - $janelaSelecaoPorNome = SessaoSEIExterna::getInstance()->getAtributo('janelaSelecaoPorNome'); | ||
34 | - if( $janelaSelecaoPorNome != null && $janelaSelecaoPorNome != "" ) { | ||
35 | - | ||
36 | - } else if( isset( $_GET['cpf']) ){ | ||
37 | - $strTitulo .= ' - Pessoa Física'; | ||
38 | - } else if( isset( $_GET['cnpj']) ){ | ||
39 | - $strTitulo .= ' - Pessoa Jurídica'; | ||
40 | - } | ||
41 | - | ||
42 | - $strPrimeiroItemValor = 'null'; | ||
43 | - $strPrimeiroItemDescricao = ' '; | ||
44 | - $strValorItemSelecionado = null; | ||
45 | - $strTipo = 'Cadastro'; | ||
46 | - | ||
47 | - $strItensSelSiglaEstado = UfINT::montarSelectSiglaRI0416('null',' ',null); | ||
48 | - $strItensSelCidade = CidadeINT::montarSelectNomeNome('null',' ','null', null); | ||
49 | - $strItensSelTipoInteressado = MdPetTpCtxContatoINT::montarSelectTipoInteressado($strPrimeiroItemValor, $strPrimeiroItemDescricao, $strValorItemSelecionado, $strTipo); | ||
50 | - $strLinkAjaxCargo = SessaoSEIExterna::getInstance()->assinarLink('modulos/peticionamento/controlador_ajax_externo.php?acao_ajax_externo=md_pet_cargo_montar_select_genero'); | ||
51 | - $strLinkAjaxDadosCargo = SessaoSEIExterna::getInstance()->assinarLink('modulos/peticionamento/controlador_ajax_externo.php?acao_ajax_externo=md_pet_cargo_dados'); | ||
52 | - | ||
53 | - //setando dados no contato que esta sendo cadastrado ou editado | ||
54 | - if( isset( $_POST['hdnCadastrar'] ) ){ | ||
55 | - | ||
56 | - //TODO: Avaliar se é realmente necessário retornar todas as informações de contato | ||
57 | - $objContatoDTO = new ContatoDTO(); | ||
58 | - $objContatoDTO->retTodos(); | ||
59 | - | ||
60 | - $numIdTipoContextoContato = $_POST['tipoInteressado']; | ||
61 | - | ||
62 | - if( !isset( $_POST['hdnIdEdicao'] ) || $_POST['hdnIdEdicao'] == "" ){ | ||
63 | - $objContatoDTO->setNumIdContato(null); | ||
64 | - $objContatoDTO->retNumIdTipoContato(); | ||
65 | - } else { | ||
66 | - $objContatoRN = new ContatoRN(); | ||
67 | - | ||
68 | - $objContatoDTO = new ContatoDTO(); | ||
69 | - $objContatoDTO->retNumIdTipoContato(); | ||
70 | - $objContatoDTO->retStrMatricula(); | ||
71 | - $objContatoDTO->retDblRg(); | ||
72 | - $objContatoDTO->retStrOrgaoExpedidor(); | ||
73 | - $objContatoDTO->retStrTelefoneFixo(); | ||
74 | - $objContatoDTO->retStrEmail(); | ||
75 | - $objContatoDTO->retStrSitioInternet(); | ||
76 | - $objContatoDTO->retStrEndereco(); | ||
77 | - $objContatoDTO->retStrBairro(); | ||
78 | - $objContatoDTO->retStrSiglaUf(); | ||
79 | - $objContatoDTO->retStrNomeCidade(); | ||
80 | - $objContatoDTO->retStrNomePais(); | ||
81 | - $objContatoDTO->retStrCep(); | ||
82 | - $objContatoDTO->retStrObservacao(); | ||
83 | - $objContatoDTO->retNumIdContato(); | ||
84 | - $objContatoDTO->setNumIdContato( $_POST['hdnIdEdicao'] ); | ||
85 | - $objContatoDTO = $objContatoRN->consultarRN0324($objContatoDTO); | ||
86 | - } | ||
87 | - | ||
88 | - $objContatoDTO->setNumIdCargo($_POST['cargo']); | ||
89 | - | ||
90 | - if(isset($_POST['txtNome']) && $_POST['txtNome'] != ""){ | ||
91 | - $objContatoDTO->setStrNome($_POST['txtNome']); | ||
92 | - $objContatoDTO->setStrStaNatureza( ContatoRN::$TN_PESSOA_FISICA ); | ||
93 | - } | ||
94 | - | ||
95 | - else if( isset($_POST['txtRazaoSocial']) && $_POST['txtRazaoSocial'] != "" ){ | ||
96 | - $objContatoDTO->setStrNome($_POST['txtRazaoSocial']); | ||
97 | - $objContatoDTO->setStrStaNatureza( ContatoRN::$TN_PESSOA_JURIDICA ); | ||
98 | - } | ||
99 | - | ||
100 | - $objContatoDTO->setDtaNascimento(''); | ||
101 | - $objContatoDTO->setStrSigla(''); | ||
102 | - $objContatoDTO->setStrStaGenero($_POST['rdoStaGenero']); | ||
103 | - $objContatoDTO->setStrMatriculaOab($_POST['numeroOab']); | ||
104 | - | ||
105 | - //campos manipulados apenas no cadastro (nao na ediçao) | ||
106 | - if(!isset( $_POST['hdnIdEdicao'] ) || $_POST['hdnIdEdicao'] == "") { | ||
107 | - $objContatoDTO->setDblCpf($_POST['txtCPF']); | ||
108 | - $objContatoDTO->setDblCnpj($_POST['txtCNPJ']); | ||
109 | - $objContatoDTO->setStrSinAtivo('S'); | ||
110 | - | ||
111 | - if(isset ( $_POST['hdnIdContextoContato'] ) && $_POST['hdnIdContextoContato'] != "") { | ||
112 | - $objContatoDTO->setNumIdContato( $_POST['hdnIdContextoContato']); | ||
113 | - } | ||
114 | - | ||
115 | - //PF sem vinculo com PJ | ||
116 | - if($_POST['tipoPessoaPF'] == '0'){ | ||
117 | - | ||
118 | - $strSinContexto = 'S'; | ||
119 | - unset($_POST['hdnIdContextoContato']); | ||
120 | - $objContatoDTO->setNumIdTipoContato($numIdTipoContextoContato); | ||
121 | - | ||
122 | - //PF com vinculo com PJ | ||
123 | - } else if($_POST['tipoPessoaPF'] == '1'){ | ||
124 | - | ||
125 | - $strSinContexto = 'N'; | ||
126 | - $objContatoDTO->setNumIdTipoContato($numIdTipoContextoContato); | ||
127 | - } | ||
128 | - //PJ | ||
129 | - else { | ||
130 | - $strSinContexto = 'S'; | ||
131 | - unset( $_POST['hdnIdContextoContato'] ); | ||
132 | - $objContatoDTO->setNumIdTipoContato($numIdTipoContextoContato); | ||
133 | - } | ||
134 | - } | ||
135 | - | ||
136 | - $objContatoDTO->setStrMatricula(''); | ||
137 | - $objContatoDTO->setDblRg($_POST['rg']); | ||
138 | - $objContatoDTO->setStrOrgaoExpedidor($_POST['orgaoExpedidor']); | ||
139 | - $objContatoDTO->setStrTelefoneFixo($_POST['telefone']); | ||
140 | - $objContatoDTO->setStrTelefoneCelular(null); | ||
141 | - $objContatoDTO->setStrComplemento(null); | ||
142 | - $objContatoDTO->setStrEmail($_POST['email']); | ||
143 | - $objContatoDTO->setStrSitioInternet($_POST['sitioInternet']); | ||
144 | - $objContatoDTO->setStrEndereco($_POST['endereco']); | ||
145 | - $objContatoDTO->setStrBairro($_POST['bairro']); | ||
146 | - $objContatoDTO->setStrNomeCidade($_POST['selCidade']); | ||
147 | - $objContatoDTO->setStrNomePais( $_POST['pais']); | ||
148 | - $objContatoDTO->setStrCep($_POST['cep']); | ||
149 | - $objContatoDTO->setStrObservacao(''); | ||
150 | - | ||
151 | - $paisDTO = new PaisDTO(); | ||
152 | - $paisRN = new PaisRN(); | ||
153 | - $paisDTO->retTodos(); | ||
154 | - $paisDTO->setStrNome( $_POST['pais'] ); | ||
155 | - $paisDTO = $paisRN->consultar( $paisDTO ); | ||
156 | - | ||
157 | - $objContatoDTO->setNumIdPais( $paisDTO->getNumIdPais() ); | ||
158 | - $objContatoDTO->setNumIdUf( $_POST['selEstado'] ); | ||
159 | - $objContatoDTO->setNumIdCidade( $_POST['selCidade'] ); | ||
160 | - $objContatoDTO->setStrSinEnderecoAssociado('N'); | ||
161 | - | ||
162 | - //necessario para preencher o campo id_usuario_cadastro ao salvar o contato | ||
163 | - SessaoSEI::getInstance()->setNumIdUsuario(SessaoSEIExterna::getInstance()->getNumIdUsuarioExterno()); | ||
164 | - | ||
165 | - $objContatoRN = new ContatoRN(); | ||
166 | - | ||
167 | - //verificando se é cadastro ou ediçao de contato | ||
168 | - if(!isset( $_POST['hdnIdEdicao'] ) || $_POST['hdnIdEdicao'] == ""){ | ||
169 | - $objContatoDTO->setNumIdContatoAssociado($_POST['hdnIdContextoContato']); | ||
170 | - $objContatoDTO->setStrStaNaturezaContatoAssociado( null ); | ||
171 | - $objContatoDTO = $objContatoRN->cadastrarRN0322($objContatoDTO); | ||
172 | - $idContatoCadastro = $objContatoDTO->getNumIdContato(); | ||
173 | - | ||
174 | - } else if( $_POST['hdnIdEdicao'] != "" ) { | ||
175 | - $idContatoCadastro = $objContatoDTO->getNumIdContato(); | ||
176 | - $objContatoRN->alterarRN0323($objContatoDTO); | ||
177 | - } | ||
178 | - | ||
179 | - //nome / razao social | ||
180 | - if( isset($_POST['txtNome']) && $_POST['txtNome'] != "" ){ | ||
181 | - $nome = $_POST['txtNome']; | ||
182 | - } else if( isset($_POST['txtRazaoSocial']) && $_POST['txtRazaoSocial'] != "" ){ | ||
183 | - $nome = $_POST['txtRazaoSocial']; | ||
184 | - } | ||
185 | - | ||
186 | - //cpf/cnpj | ||
187 | - if( isset($_POST['txtCPF']) && $_POST['txtCPF'] != "" ){ | ||
188 | - $cpfCnpjEditado = $_POST['txtCPF']; | ||
189 | - } else if( isset($_POST['txtCNPJ']) && $_POST['txtCNPJ'] != "" ){ | ||
190 | - $cpfCnpjEditado = $_POST['txtCNPJ']; | ||
191 | - } | ||
192 | - | ||
193 | - //após cadastrar o contato fechar janela modal e preencher campos necessarios | ||
194 | - if(!isset($_POST['hdnIdEdicao'] ) || $_POST['hdnIdEdicao'] == ""){ | ||
195 | - $janelaSelecaoPorNome = SessaoSEIExterna::getInstance()->getAtributo('janelaSelecaoPorNome'); | ||
196 | - | ||
197 | - echo "<script>"; | ||
198 | - if( $janelaSelecaoPorNome == null || $janelaSelecaoPorNome == "" ){ | ||
199 | - echo "window.opener.document.getElementById('txtNomeRazaoSocial').value = '" . str_replace("/", "\/", $nome) . "'; "; | ||
200 | - echo "window.opener.document.getElementById('txtNomeRazaoSocialTratadoHTML').value = '" .PaginaSEIExterna::tratarHTML($nome) . "'; "; | ||
201 | - echo "window.opener.document.getElementById('hdnCustomizado').value = 'true'; "; | ||
202 | - echo "window.opener.document.getElementById('hdnIdInteressadoCadastrado').value = " . $objContatoDTO->getNumIdContato() . "; "; | ||
203 | - } else { | ||
204 | - SessaoSEIExterna::getInstance()->removerAtributo('janelaSelecaoPorNome'); | ||
205 | - } | ||
206 | - | ||
207 | - echo "window.close();"; | ||
208 | - echo "</script>"; | ||
209 | - die; | ||
210 | - | ||
211 | - } else { | ||
212 | - | ||
213 | - echo "<script>"; | ||
214 | - echo "window.opener.atualizarNomeRazaoSocial('". $cpfCnpjEditado ."', '". PaginaSEIExterna::tratarHTML($nome) ."');"; | ||
215 | - echo "window.close();"; | ||
216 | - echo "</script>"; | ||
217 | - die; | ||
218 | - } | ||
219 | - | ||
220 | - } | ||
221 | - | ||
222 | - //obtendo dados do contato que estiver sendo editado | ||
223 | - else if( isset( $_POST['hdnIdEdicaoAuxiliar'] ) ){ | ||
224 | - $objContatoRN = new ContatoRN(); | ||
225 | - $objContatoDTO = new ContatoDTO(); | ||
226 | - $objContatoDTO->retTodos(true); | ||
227 | - $objContatoDTO->setNumIdContato( $_POST['hdnIdEdicaoAuxiliar'] ); | ||
228 | - $objContatoDTO = $objContatoRN->consultarRN0324($objContatoDTO); | ||
229 | - $strItensSelSiglaEstado = UfINT::montarSelectSiglaRI0416('null',' ', $objContatoDTO->getNumIdUf()); | ||
230 | - $strItensSelCidade = CidadeINT::montarSelectIdCidadeNome('null',' ', $objContatoDTO->getNumIdCidade() , $objContatoDTO->getNumIdUf()); | ||
231 | - | ||
232 | - if( isset( $_GET['cpf'] )) { | ||
233 | - $_POST['txtNome'] = $objContatoDTO->getStrNome(); | ||
234 | - } | ||
235 | - | ||
236 | - if( isset( $_GET['cnpj'] )) { | ||
237 | - $_POST['txtRazaoSocial'] = $objContatoDTO->getStrNome(); | ||
238 | - } | ||
239 | - | ||
240 | - $_POST['numeroOab'] = $objContatoDTO->getStrMatriculaOab(); | ||
241 | - $_POST['txtCPF'] = $objContatoDTO->getDblCpf(); | ||
242 | - $_POST['txtCNPJ'] = $objContatoDTO->getDblCnpj(); | ||
243 | - $_POST['rg'] = $objContatoDTO->getDblRg(); | ||
244 | - $_POST['orgaoExpedidor'] = $objContatoDTO->getStrOrgaoExpedidor(); | ||
245 | - $_POST['telefone'] = $objContatoDTO->getStrTelefoneFixo(); | ||
246 | - $_POST['email'] = $objContatoDTO->getStrEmail(); | ||
247 | - $_POST['sitioInternet'] = $objContatoDTO->getStrSitioInternet(); | ||
248 | - $_POST['endereco'] = $objContatoDTO->getStrEndereco(); | ||
249 | - $_POST['bairro'] = $objContatoDTO->getStrBairro(); | ||
250 | - $_POST['estado'] = $objContatoDTO->getStrSiglaUfContatoAssociado(); | ||
251 | - $_POST['cidade'] = $objContatoDTO->getStrNomeCidade(); | ||
252 | - $_POST['pais'] = $objContatoDTO->getStrNomePais(); | ||
253 | - $_POST['cep'] = $objContatoDTO->getStrCep(); | ||
254 | - $_POST['tratamento'] = $objContatoDTO->getNumIdTratamentoCargo(); | ||
255 | - $_POST['vocativo'] = $objContatoDTO->getNumIdVocativoCargo(); | ||
256 | - $_POST['cargo'] = $objContatoDTO->getNumIdCargo(); | ||
257 | - $_POST['hdnIdEdicao'] = $_POST['hdnIdEdicaoAuxiliar']; | ||
258 | - $_POST['hdnIdContextoContato'] = $objContatoDTO->getNumIdContato(); | ||
259 | - | ||
260 | - $objContatoPJVinculadaDTO = new ContatoDTO(); | ||
261 | - $objContatoPJVinculadaDTO->retNumIdContato(); | ||
262 | - $objContatoPJVinculadaDTO->retStrNome(); | ||
263 | - $objContatoPJVinculadaDTO->retNumIdTipoContato(); | ||
264 | - $objContatoPJVinculadaDTO->setNumIdContato( $_POST['hdnIdContextoContato'] ); | ||
265 | - $objContatoPJVinculadaDTO = $objContatoRN->consultarRN0324( $objContatoPJVinculadaDTO ); | ||
266 | - $_POST['tipoInteressado'] = $objContatoDTO->getNumIdTipoContato(); | ||
267 | - | ||
268 | - if( $objContatoDTO->getStrStaNaturezaContatoAssociado() == ContatoRN::$TN_PESSOA_JURIDICA ){ | ||
269 | - $_POST['txtPjVinculada'] = $objContatoDTO->getStrNomeContatoAssociado(); | ||
270 | - } else { | ||
271 | - $_POST['txtPjVinculada'] = ""; | ||
272 | - } | ||
273 | - | ||
274 | - $numIdTipoContextoContato = $_POST['tipoInteressado']; | ||
275 | - $strItensSelTipoInteressado = MdPetTpCtxContatoINT::montarSelectTipoInteressado($strPrimeiroItemValor, $strPrimeiroItemDescricao, $numIdTipoContextoContato, $strTipo); | ||
276 | - | ||
277 | - if( isset( $_GET['cpf'] )) { | ||
278 | - $strItensSelTratamento = TratamentoINT::montarSelectExpressaoRI0467('null',' ', $_POST['tratamento'] ) ; | ||
279 | - $strItensSelVocativo = VocativoINT::montarSelectExpressaoRI0469('null',' ', $_POST['vocativo'] ); | ||
280 | - } | ||
281 | - } | ||
282 | - | ||
283 | - break; | ||
284 | - | 25 | + case 'md_pet_interessado_cadastro': |
26 | + | ||
27 | + if( !isset( $_GET['edicao']) && !isset( $_POST['hdnIdEdicaoAuxiliar']) ){ | ||
28 | + $strTitulo = 'Cadastro de Interessado'; | ||
29 | + } else { | ||
30 | + $strTitulo = 'Alterar Interessado'; | ||
31 | + } | ||
32 | + | ||
33 | + $janelaSelecaoPorNome = SessaoSEIExterna::getInstance()->getAtributo('janelaSelecaoPorNome'); | ||
34 | + if( $janelaSelecaoPorNome != null && $janelaSelecaoPorNome != "" ) { | ||
35 | + | ||
36 | + } else if( isset( $_GET['cpf']) ){ | ||
37 | + $strTitulo .= ' - Pessoa Física'; | ||
38 | + } else if( isset( $_GET['cnpj']) ){ | ||
39 | + $strTitulo .= ' - Pessoa Jurídica'; | ||
40 | + } | ||
41 | + | ||
42 | + $strPrimeiroItemValor = 'null'; | ||
43 | + $strPrimeiroItemDescricao = ' '; | ||
44 | + $strValorItemSelecionado = null; | ||
45 | + $strTipo = 'Cadastro'; | ||
46 | + | ||
47 | + $strItensSelSiglaEstado = UfINT::montarSelectSiglaRI0416('null',' ',null); | ||
48 | + $strItensSelCidade = CidadeINT::montarSelectNomeNome('null',' ','null', null); | ||
49 | + $strItensSelTipoInteressado = MdPetTpCtxContatoINT::montarSelectTipoInteressado($strPrimeiroItemValor, $strPrimeiroItemDescricao, $strValorItemSelecionado, $strTipo); | ||
50 | + $strLinkAjaxCargo = SessaoSEIExterna::getInstance()->assinarLink('modulos/peticionamento/controlador_ajax_externo.php?acao_ajax_externo=md_pet_cargo_montar_select_genero'); | ||
51 | + $strLinkAjaxDadosCargo = SessaoSEIExterna::getInstance()->assinarLink('modulos/peticionamento/controlador_ajax_externo.php?acao_ajax_externo=md_pet_cargo_dados'); | ||
52 | + | ||
53 | + //setando dados no contato que esta sendo cadastrado ou editado | ||
54 | + if( isset( $_POST['hdnCadastrar'] ) ){ | ||
55 | + | ||
56 | + //TODO: Avaliar se é realmente necessário retornar todas as informações de contato | ||
57 | + $objContatoDTO = new ContatoDTO(); | ||
58 | + $objContatoDTO->retTodos(); | ||
59 | + | ||
60 | + $numIdTipoContextoContato = $_POST['tipoInteressado']; | ||
61 | + | ||
62 | + if( !isset( $_POST['hdnIdEdicao'] ) || $_POST['hdnIdEdicao'] == "" ){ | ||
63 | + $objContatoDTO->setNumIdContato(null); | ||
64 | + $objContatoDTO->retNumIdTipoContato(); | ||
65 | + } else { | ||
66 | + $objContatoRN = new ContatoRN(); | ||
67 | + | ||
68 | + $objContatoDTO = new ContatoDTO(); | ||
69 | + $objContatoDTO->retNumIdTipoContato(); | ||
70 | + $objContatoDTO->retStrMatricula(); | ||
71 | + $objContatoDTO->retDblRg(); | ||
72 | + $objContatoDTO->retStrOrgaoExpedidor(); | ||
73 | + $objContatoDTO->retStrTelefoneFixo(); | ||
74 | + $objContatoDTO->retStrEmail(); | ||
75 | + $objContatoDTO->retStrSitioInternet(); | ||
76 | + $objContatoDTO->retStrEndereco(); | ||
77 | + $objContatoDTO->retStrBairro(); | ||
78 | + $objContatoDTO->retStrSiglaUf(); | ||
79 | + $objContatoDTO->retStrNomeCidade(); | ||
80 | + $objContatoDTO->retStrNomePais(); | ||
81 | + $objContatoDTO->retStrCep(); | ||
82 | + $objContatoDTO->retStrObservacao(); | ||
83 | + $objContatoDTO->retNumIdContato(); | ||
84 | + $objContatoDTO->setNumIdContato( $_POST['hdnIdEdicao'] ); | ||
85 | + $objContatoDTO = $objContatoRN->consultarRN0324($objContatoDTO); | ||
86 | + } | ||
87 | + | ||
88 | + $objContatoDTO->setNumIdCargo($_POST['cargo']); | ||
89 | + | ||
90 | + if(isset($_POST['txtNome']) && $_POST['txtNome'] != ""){ | ||
91 | + $objContatoDTO->setStrNome($_POST['txtNome']); | ||
92 | + $objContatoDTO->setStrStaNatureza( ContatoRN::$TN_PESSOA_FISICA ); | ||
93 | + }else if( isset($_POST['txtRazaoSocial']) && $_POST['txtRazaoSocial'] != "" ){ | ||
94 | + $objContatoDTO->setStrNome($_POST['txtRazaoSocial']); | ||
95 | + $objContatoDTO->setStrStaNatureza( ContatoRN::$TN_PESSOA_JURIDICA ); | ||
96 | + } | ||
97 | + | ||
98 | + $objContatoDTO->setDtaNascimento(''); | ||
99 | + $objContatoDTO->setStrSigla(''); | ||
100 | + $objContatoDTO->setStrStaGenero($_POST['rdoStaGenero']); | ||
101 | + $objContatoDTO->setStrMatriculaOab($_POST['numeroOab']); | ||
102 | + | ||
103 | + //campos manipulados apenas no cadastro (nao na ediçao) | ||
104 | + if(!isset( $_POST['hdnIdEdicao'] ) || $_POST['hdnIdEdicao'] == "") { | ||
105 | + // Pessoa Física | ||
106 | + if(isset($_POST['txtNome']) && $_POST['txtNome'] != "" && isset($_POST['txtCPF']) && $_POST['txtCPF'] != ""){ | ||
107 | + $objContatoDTO->setStrSigla(InfraUtil::formatarCpf($_POST['txtCPF'])); | ||
108 | + // Pessoa Jurídica | ||
109 | + }else if(isset($_POST['txtRazaoSocial']) && $_POST['txtRazaoSocial'] != "" && isset($_POST['txtCNPJ']) && $_POST['txtCNPJ'] != ""){ | ||
110 | + $objContatoDTO->setStrSigla(InfraUtil::formatarCnpj($_POST['txtCNPJ'])); | ||
111 | + } | ||
112 | + $objContatoDTO->setDblCpf($_POST['txtCPF']); | ||
113 | + $objContatoDTO->setDblCnpj($_POST['txtCNPJ']); | ||
114 | + $objContatoDTO->setStrSinAtivo('S'); | ||
115 | + | ||
116 | + if(isset ( $_POST['hdnIdContextoContato'] ) && $_POST['hdnIdContextoContato'] != "") { | ||
117 | + $objContatoDTO->setNumIdContato( $_POST['hdnIdContextoContato']); | ||
118 | + } | ||
119 | + | ||
120 | + //PF sem vinculo com PJ | ||
121 | + if($_POST['tipoPessoaPF'] == '0'){ | ||
122 | + $strSinContexto = 'S'; | ||
123 | + unset($_POST['hdnIdContextoContato']); | ||
124 | + $objContatoDTO->setNumIdTipoContato($numIdTipoContextoContato); | ||
125 | + //PF com vinculo com PJ | ||
126 | + } else if($_POST['tipoPessoaPF'] == '1'){ | ||
127 | + $strSinContexto = 'N'; | ||
128 | + $objContatoDTO->setNumIdTipoContato($numIdTipoContextoContato); | ||
129 | + //PJ | ||
130 | + } else { | ||
131 | + $strSinContexto = 'S'; | ||
132 | + unset( $_POST['hdnIdContextoContato'] ); | ||
133 | + $objContatoDTO->setNumIdTipoContato($numIdTipoContextoContato); | ||
134 | + } | ||
135 | + } | ||
136 | + | ||
137 | + $objContatoDTO->setStrMatricula(''); | ||
138 | + $objContatoDTO->setDblRg($_POST['rg']); | ||
139 | + $objContatoDTO->setStrOrgaoExpedidor($_POST['orgaoExpedidor']); | ||
140 | + $objContatoDTO->setStrTelefoneFixo($_POST['telefone']); | ||
141 | + $objContatoDTO->setStrTelefoneCelular(null); | ||
142 | + $objContatoDTO->setStrComplemento(null); | ||
143 | + $objContatoDTO->setStrEmail($_POST['email']); | ||
144 | + $objContatoDTO->setStrSitioInternet($_POST['sitioInternet']); | ||
145 | + $objContatoDTO->setStrEndereco($_POST['endereco']); | ||
146 | + $objContatoDTO->setStrBairro($_POST['bairro']); | ||
147 | + $objContatoDTO->setStrNomeCidade($_POST['selCidade']); | ||
148 | + $objContatoDTO->setStrNomePais( $_POST['pais']); | ||
149 | + $objContatoDTO->setStrCep($_POST['cep']); | ||
150 | + $objContatoDTO->setStrObservacao(''); | ||
151 | + | ||
152 | + $paisDTO = new PaisDTO(); | ||
153 | + $paisRN = new PaisRN(); | ||
154 | + $paisDTO->retTodos(); | ||
155 | + $paisDTO->setStrNome( $_POST['pais'] ); | ||
156 | + $paisDTO = $paisRN->consultar( $paisDTO ); | ||
157 | + | ||
158 | + $objContatoDTO->setNumIdPais( $paisDTO->getNumIdPais() ); | ||
159 | + $objContatoDTO->setNumIdUf( $_POST['selEstado'] ); | ||
160 | + $objContatoDTO->setNumIdCidade( $_POST['selCidade'] ); | ||
161 | + $objContatoDTO->setStrSinEnderecoAssociado('N'); | ||
162 | + | ||
163 | + //necessario para preencher o campo id_usuario_cadastro ao salvar o contato | ||
164 | + SessaoSEI::getInstance()->setNumIdUsuario(SessaoSEIExterna::getInstance()->getNumIdUsuarioExterno()); | ||
165 | + | ||
166 | + $objContatoRN = new ContatoRN(); | ||
167 | + | ||
168 | + //verificando se é cadastro ou ediçao de contato | ||
169 | + if(!isset( $_POST['hdnIdEdicao'] ) || $_POST['hdnIdEdicao'] == ""){ | ||
170 | + $objContatoDTO->setNumIdContatoAssociado($_POST['hdnIdContextoContato']); | ||
171 | + $objContatoDTO->setStrStaNaturezaContatoAssociado( null ); | ||
172 | + $objContatoDTO = $objContatoRN->cadastrarRN0322($objContatoDTO); | ||
173 | + $idContatoCadastro = $objContatoDTO->getNumIdContato(); | ||
174 | + } else if( $_POST['hdnIdEdicao'] != "" ) { | ||
175 | + $idContatoCadastro = $objContatoDTO->getNumIdContato(); | ||
176 | + $objContatoRN->alterarRN0323($objContatoDTO); | ||
177 | + } | ||
178 | + | ||
179 | + //nome / razao social | ||
180 | + if( isset($_POST['txtNome']) && $_POST['txtNome'] != "" ){ | ||
181 | + $nome = $_POST['txtNome']; | ||
182 | + } else if( isset($_POST['txtRazaoSocial']) && $_POST['txtRazaoSocial'] != "" ){ | ||
183 | + $nome = $_POST['txtRazaoSocial']; | ||
184 | + } | ||
185 | + | ||
186 | + //cpf/cnpj | ||
187 | + if( isset($_POST['txtCPF']) && $_POST['txtCPF'] != "" ){ | ||
188 | + $cpfCnpjEditado = $_POST['txtCPF']; | ||
189 | + } else if( isset($_POST['txtCNPJ']) && $_POST['txtCNPJ'] != "" ){ | ||
190 | + $cpfCnpjEditado = $_POST['txtCNPJ']; | ||
191 | + } | ||
192 | + | ||
193 | + //após cadastrar o contato fechar janela modal e preencher campos necessarios | ||
194 | + if(!isset($_POST['hdnIdEdicao'] ) || $_POST['hdnIdEdicao'] == ""){ | ||
195 | + $janelaSelecaoPorNome = SessaoSEIExterna::getInstance()->getAtributo('janelaSelecaoPorNome'); | ||
196 | + | ||
197 | + echo "<script>"; | ||
198 | + if( $janelaSelecaoPorNome == null || $janelaSelecaoPorNome == "" ){ | ||
199 | + echo "window.opener.document.getElementById('txtNomeRazaoSocial').value = '" . str_replace("/", "\/", $nome) . "'; "; | ||
200 | + echo "window.opener.document.getElementById('txtNomeRazaoSocialTratadoHTML').value = '" .PaginaSEIExterna::tratarHTML($nome) . "'; "; | ||
201 | + echo "window.opener.document.getElementById('hdnCustomizado').value = 'true'; "; | ||
202 | + echo "window.opener.document.getElementById('hdnIdInteressadoCadastrado').value = " . $objContatoDTO->getNumIdContato() . "; "; | ||
203 | + } else { | ||
204 | + SessaoSEIExterna::getInstance()->removerAtributo('janelaSelecaoPorNome'); | ||
205 | + } | ||
206 | + | ||
207 | + echo "window.close();"; | ||
208 | + echo "</script>"; | ||
209 | + die; | ||
210 | + | ||
211 | + } else { | ||
212 | + echo "<script>"; | ||
213 | + echo "window.opener.atualizarNomeRazaoSocial('". $cpfCnpjEditado ."', '". PaginaSEIExterna::tratarHTML($nome) ."');"; | ||
214 | + echo "window.close();"; | ||
215 | + echo "</script>"; | ||
216 | + die; | ||
217 | + } | ||
218 | + | ||
219 | + } | ||
220 | + | ||
221 | + //obtendo dados do contato que estiver sendo editado | ||
222 | + else if( isset( $_POST['hdnIdEdicaoAuxiliar'] ) ){ | ||
223 | + $objContatoRN = new ContatoRN(); | ||
224 | + $objContatoDTO = new ContatoDTO(); | ||
225 | + $objContatoDTO->retTodos(true); | ||
226 | + $objContatoDTO->setNumIdContato( $_POST['hdnIdEdicaoAuxiliar'] ); | ||
227 | + $objContatoDTO = $objContatoRN->consultarRN0324($objContatoDTO); | ||
228 | + $strItensSelSiglaEstado = UfINT::montarSelectSiglaRI0416('null',' ', $objContatoDTO->getNumIdUf()); | ||
229 | + $strItensSelCidade = CidadeINT::montarSelectIdCidadeNome('null',' ', $objContatoDTO->getNumIdCidade() , $objContatoDTO->getNumIdUf()); | ||
230 | + | ||
231 | + if( isset( $_GET['cpf'] )) { | ||
232 | + $_POST['txtNome'] = $objContatoDTO->getStrNome(); | ||
233 | + } | ||
234 | + | ||
235 | + if( isset( $_GET['cnpj'] )) { | ||
236 | + $_POST['txtRazaoSocial'] = $objContatoDTO->getStrNome(); | ||
237 | + } | ||
238 | + | ||
239 | + $_POST['numeroOab'] = $objContatoDTO->getStrMatriculaOab(); | ||
240 | + $_POST['txtCPF'] = $objContatoDTO->getDblCpf(); | ||
241 | + $_POST['txtCNPJ'] = $objContatoDTO->getDblCnpj(); | ||
242 | + $_POST['rg'] = $objContatoDTO->getDblRg(); | ||
243 | + $_POST['orgaoExpedidor'] = $objContatoDTO->getStrOrgaoExpedidor(); | ||
244 | + $_POST['telefone'] = $objContatoDTO->getStrTelefoneFixo(); | ||
245 | + $_POST['email'] = $objContatoDTO->getStrEmail(); | ||
246 | + $_POST['sitioInternet'] = $objContatoDTO->getStrSitioInternet(); | ||
247 | + $_POST['endereco'] = $objContatoDTO->getStrEndereco(); | ||
248 | + $_POST['bairro'] = $objContatoDTO->getStrBairro(); | ||
249 | + $_POST['estado'] = $objContatoDTO->getStrSiglaUfContatoAssociado(); | ||
250 | + $_POST['cidade'] = $objContatoDTO->getStrNomeCidade(); | ||
251 | + $_POST['pais'] = $objContatoDTO->getStrNomePais(); | ||
252 | + $_POST['cep'] = $objContatoDTO->getStrCep(); | ||
253 | + $_POST['tratamento'] = $objContatoDTO->getNumIdTratamentoCargo(); | ||
254 | + $_POST['vocativo'] = $objContatoDTO->getNumIdVocativoCargo(); | ||
255 | + $_POST['cargo'] = $objContatoDTO->getNumIdCargo(); | ||
256 | + $_POST['hdnIdEdicao'] = $_POST['hdnIdEdicaoAuxiliar']; | ||
257 | + $_POST['hdnIdContextoContato'] = $objContatoDTO->getNumIdContato(); | ||
258 | + | ||
259 | + $objContatoPJVinculadaDTO = new ContatoDTO(); | ||
260 | + $objContatoPJVinculadaDTO->retNumIdContato(); | ||
261 | + $objContatoPJVinculadaDTO->retStrNome(); | ||
262 | + $objContatoPJVinculadaDTO->retNumIdTipoContato(); | ||
263 | + $objContatoPJVinculadaDTO->setNumIdContato( $_POST['hdnIdContextoContato'] ); | ||
264 | + $objContatoPJVinculadaDTO = $objContatoRN->consultarRN0324( $objContatoPJVinculadaDTO ); | ||
265 | + $_POST['tipoInteressado'] = $objContatoDTO->getNumIdTipoContato(); | ||
266 | + | ||
267 | + if( $objContatoDTO->getStrStaNaturezaContatoAssociado() == ContatoRN::$TN_PESSOA_JURIDICA ){ | ||
268 | + $_POST['txtPjVinculada'] = $objContatoDTO->getStrNomeContatoAssociado(); | ||
269 | + } else { | ||
270 | + $_POST['txtPjVinculada'] = ""; | ||
271 | + } | ||
272 | + | ||
273 | + $numIdTipoContextoContato = $_POST['tipoInteressado']; | ||
274 | + $strItensSelTipoInteressado = MdPetTpCtxContatoINT::montarSelectTipoInteressado($strPrimeiroItemValor, $strPrimeiroItemDescricao, $numIdTipoContextoContato, $strTipo); | ||
275 | + | ||
276 | + if( isset( $_GET['cpf'] )) { | ||
277 | + $strItensSelTratamento = TratamentoINT::montarSelectExpressaoRI0467('null',' ', $_POST['tratamento'] ) ; | ||
278 | + $strItensSelVocativo = VocativoINT::montarSelectExpressaoRI0469('null',' ', $_POST['vocativo'] ); | ||
279 | + } | ||
280 | + } | ||
281 | + | ||
282 | + break; | ||
283 | + | ||
285 | default: | 284 | default: |
286 | throw new InfraException("Ação '".$_GET['acao']."' não reconhecida."); | 285 | throw new InfraException("Ação '".$_GET['acao']."' não reconhecida."); |
287 | } | 286 | } |
@@ -311,7 +310,8 @@ PaginaSEIExterna::getInstance()->fecharJavaScript(); | @@ -311,7 +310,8 @@ PaginaSEIExterna::getInstance()->fecharJavaScript(); | ||
311 | .sizeFieldset {height:auto; width: 88%;} | 310 | .sizeFieldset {height:auto; width: 88%;} |
312 | .fieldsetClear {border:none !important;} | 311 | .fieldsetClear {border:none !important;} |
313 | </style> | 312 | </style> |
314 | -<?php | 313 | + |
314 | +<?php | ||
315 | PaginaSEIExterna::getInstance()->fecharHead(); | 315 | PaginaSEIExterna::getInstance()->fecharHead(); |
316 | PaginaSEIExterna::getInstance()->abrirBody($strTitulo,'onload="inicializar();"'); | 316 | PaginaSEIExterna::getInstance()->abrirBody($strTitulo,'onload="inicializar();"'); |
317 | $urlBaseLink = ""; | 317 | $urlBaseLink = ""; |
@@ -322,185 +322,185 @@ $arrComandos[] = '<button type="button" accesskey="c" name="btnFechar" value="Fe | @@ -322,185 +322,185 @@ $arrComandos[] = '<button type="button" accesskey="c" name="btnFechar" value="Fe | ||
322 | $strLinkBaseFormEdicao = 'controlador_externo.php?edicaoExibir=true&acao='.$_GET['acao']; | 322 | $strLinkBaseFormEdicao = 'controlador_externo.php?edicaoExibir=true&acao='.$_GET['acao']; |
323 | 323 | ||
324 | if( isset( $_GET['cpf'] )) { | 324 | if( isset( $_GET['cpf'] )) { |
325 | - $strLinkBaseFormEdicao .= '&cpf=true'; | 325 | + $strLinkBaseFormEdicao .= '&cpf=true'; |
326 | } else if( isset( $_GET['cnpj'] )) { | 326 | } else if( isset( $_GET['cnpj'] )) { |
327 | - $strLinkBaseFormEdicao .= '&cnpj=true'; | 327 | + $strLinkBaseFormEdicao .= '&cnpj=true'; |
328 | } | 328 | } |
329 | 329 | ||
330 | $strLinkEdicaHash = PaginaSEIExterna::getInstance()->formatarXHTML( | 330 | $strLinkEdicaHash = PaginaSEIExterna::getInstance()->formatarXHTML( |
331 | - SessaoSEIExterna::getInstance()->assinarLink( $strLinkBaseFormEdicao )); | 331 | +SessaoSEIExterna::getInstance()->assinarLink( $strLinkBaseFormEdicao )); |
332 | 332 | ||
333 | -?> | 333 | +?> |
334 | 334 | ||
335 | <!-- Formulario usado para viabilizar fluxo de edição de contato --> | 335 | <!-- Formulario usado para viabilizar fluxo de edição de contato --> |
336 | <?php if( isset( $_GET['edicao'] )) { ?> | 336 | <?php if( isset( $_GET['edicao'] )) { ?> |
337 | 337 | ||
338 | - <form id="frmEdicaoAuxiliar" | ||
339 | - name="frmEdicaoAuxiliar" | ||
340 | - method="post" | ||
341 | - action="<?= $strLinkEdicaHash ?>"> | ||
342 | - | ||
343 | - <input type="hidden" name="hdnIdEdicaoAuxiliar" id="hdnIdEdicaoAuxiliar" value="" /> | ||
344 | - | ||
345 | - </form> | 338 | + <form id="frmEdicaoAuxiliar" |
339 | + name="frmEdicaoAuxiliar" | ||
340 | + method="post" | ||
341 | + action="<?= $strLinkEdicaHash ?>"> | ||
342 | + | ||
343 | + <input type="hidden" name="hdnIdEdicaoAuxiliar" id="hdnIdEdicaoAuxiliar" value="" /> | ||
344 | + | ||
345 | + </form> | ||
346 | 346 | ||
347 | <?php } else { ?> | 347 | <?php } else { ?> |
348 | 348 | ||
349 | - <form id="frmCadastro" name="frmCadastro" | ||
350 | - method="post" onsubmit="return OnSubmitForm();" | ||
351 | - action="<?=PaginaSEIExterna::getInstance()->formatarXHTML(SessaoSEIExterna::getInstance()->assinarLink('controlador_externo.php?acao='.$_GET['acao'].'&acao_origem='.$_GET['acao']))?>"> | ||
352 | - <?php | ||
353 | - PaginaSEIExterna::getInstance()->montarBarraComandosSuperior($arrComandos); | ||
354 | - PaginaSEIExterna::getInstance()->abrirAreaDados('auto'); | ||
355 | - ?> | ||
356 | - | ||
357 | - <fieldset id="field1" class="infraFieldset sizeFieldset"> | ||
358 | - | ||
359 | - <legend class="infraLegend"> Natureza </legend> | ||
360 | - | ||
361 | - <?php if( isset( $_GET['cpf'] )) { ?> | ||
362 | - | ||
363 | - <input type="radio" name="tipoPessoa" value="pf" id="rdPF" | ||
364 | - tabindex="<?=PaginaSEIExterna::getInstance()->getProxTabDados()?>" | ||
365 | - onclick="selecionarPF()" /> | ||
366 | - <label for="rdPF" class="infraLabelRadio">Pessoa Física</label> <br/> | ||
367 | - | ||
368 | - <input type="radio" name="tipoPessoaPF" value="0" id="rdPF1" | ||
369 | - style="display: none; margin-left: 20px;" | ||
370 | - tabindex="<?=PaginaSEIExterna::getInstance()->getProxTabDados()?>" | ||
371 | - onclick="selecionarPF1()" /> | ||
372 | - <label for="rdPF1" id="lblrdPF1" class="infraLabelRadio" style="display: none;">Sem vínculo com Pessoa Jurídica<br/></label> | ||
373 | - | ||
374 | - <input type="radio" name="tipoPessoaPF" value="1" id="rdPF2" | ||
375 | - style="display: none; margin-left: 20px;" onclick="selecionarPF2()" | 349 | + <form id="frmCadastro" name="frmCadastro" |
350 | + method="post" onsubmit="return OnSubmitForm();" | ||
351 | + action="<?=PaginaSEIExterna::getInstance()->formatarXHTML(SessaoSEIExterna::getInstance()->assinarLink('controlador_externo.php?acao='.$_GET['acao'].'&acao_origem='.$_GET['acao']))?>"> | ||
352 | + <?php | ||
353 | + PaginaSEIExterna::getInstance()->montarBarraComandosSuperior($arrComandos); | ||
354 | + PaginaSEIExterna::getInstance()->abrirAreaDados('auto'); | ||
355 | + ?> | ||
356 | + | ||
357 | + <fieldset id="field1" class="infraFieldset sizeFieldset"> | ||
358 | + | ||
359 | + <legend class="infraLegend"> Natureza </legend> | ||
360 | + | ||
361 | + <?php if( isset( $_GET['cpf'] )) { ?> | ||
362 | + | ||
363 | + <input type="radio" name="tipoPessoa" value="pf" id="rdPF" | ||
364 | + tabindex="<?=PaginaSEIExterna::getInstance()->getProxTabDados()?>" | ||
365 | + onclick="selecionarPF()" /> | ||
366 | + <label for="rdPF" class="infraLabelRadio">Pessoa Física</label> <br/> | ||
367 | + | ||
368 | + <input type="radio" name="tipoPessoaPF" value="0" id="rdPF1" | ||
369 | + style="display: none; margin-left: 20px;" | ||
370 | + tabindex="<?=PaginaSEIExterna::getInstance()->getProxTabDados()?>" | ||
371 | + onclick="selecionarPF1()" /> | ||
372 | + <label for="rdPF1" id="lblrdPF1" class="infraLabelRadio" style="display: none;">Sem vínculo com Pessoa Jurídica<br/></label> | ||
373 | + | ||
374 | + <input type="radio" name="tipoPessoaPF" value="1" id="rdPF2" | ||
375 | + style="display: none; margin-left: 20px;" onclick="selecionarPF2()" | ||
376 | tabindex="<?=PaginaSEIExterna::getInstance()->getProxTabDados()?>" /> | 376 | tabindex="<?=PaginaSEIExterna::getInstance()->getProxTabDados()?>" /> |
377 | - <label for="rdPF2" id="lblrdPF2" class="infraLabelRadio" style="display: none;">Com vínculo com Pessoa Jurídica<br/></label> | ||
378 | - | ||
379 | - <?php } ?> | ||
380 | - | ||
381 | - <?php if( isset( $_GET['cnpj'] )) { ?> | ||
382 | - <input type="radio" name="tipoPessoa" value="pj" id="rdPJ" | ||
383 | - tabindex="<?=PaginaSEIExterna::getInstance()->getProxTabDados()?>" | ||
384 | - onclick="selecionarPJ()" /> | ||
385 | - <label for="rdPJ" class="infraLabelRadio">Pessoa Jurídica</label> | ||
386 | - <?php } ?> | ||
387 | - | ||
388 | - </fieldset> | ||
389 | - | ||
390 | - <fieldset id="field2" class="infraFieldset sizeFieldset"> | ||
391 | - | ||
392 | - <legend class="infraLegend"> Formulário de Cadastro </legend> | ||
393 | - | ||
394 | - <br/> | ||
395 | - <label class="infraLabelObrigatorio">Tipo de Interessado:</label><br/> | ||
396 | - <select class="infraSelect" width="380" id="tipoInteressado" | ||
397 | - tabindex="<?=PaginaSEIExterna::getInstance()->getProxTabDados()?>" | ||
398 | - name="tipoInteressado" | ||
399 | - onchange="selecionarTipoInteressado()" style="width:380px;" > | ||
400 | - <?=$strItensSelTipoInteressado?> | ||
401 | - </select> <br/> | ||
402 | - | ||
403 | - <label id="lblNome" class="infraLabelObrigatorio" style="display:none;">Nome Completo:<br/> | ||
404 | - <input type="text" id="txtNome" name="txtNome" | ||
405 | - class="infraText" style="width: 580px;" | ||
406 | - value="<?=PaginaSEIExterna::tratarHTML($_POST['txtNome']) ?>" | ||
407 | - onkeypress="return infraMascaraTexto(this,event,250);" maxlength="250" | ||
408 | - tabindex="<?=PaginaSEIExterna::getInstance()->getProxTabDados()?>" /> | ||
409 | - <br/><br/> | ||
410 | - </label> | ||
411 | - | ||
412 | - <label id="lblRazaoSocial" class="infraLabelObrigatorio" style="display:none;">Razão Social:<br/> | ||
413 | - <input type="text" id="txtRazaoSocial" name="txtRazaoSocial" | ||
414 | - class="infraText" style="width: 580px;" | ||
415 | - value="<?=PaginaSEIExterna::tratarHTML($_POST['txtRazaoSocial']) ?>" | ||
416 | - onkeypress="return infraMascaraTexto(this,event,250);" maxlength="250" | ||
417 | - tabindex="<?=PaginaSEIExterna::getInstance()->getProxTabDados()?>" /> | ||
418 | - <br/><br/> | ||
419 | - </label> | ||
420 | - | ||
421 | - | ||
422 | - <?php if( $_POST['hdnIdContextoContato'] == '') {?> | ||
423 | - | ||
424 | - <label id="lblPjVinculada" style="display: none;" class="infraLabelObrigatorio">Razão Social da Pessoa Jurídica vinculada:<br/> | ||
425 | - | ||
426 | - <input type="text" class="infraText" | ||
427 | - tabindex="<?=PaginaSEIExterna::getInstance()->getProxTabDados()?>" | ||
428 | - onkeypress="return infraMascaraTexto(this,event,250);" maxlength="250" | ||
429 | - name="txtPjVinculada" id="txtPjVinculada" | ||
430 | - autocomplete="off" style="width: 580px; display: none;" /> | ||
431 | - | ||
432 | - <input type="hidden" name="hdnIdContextoContato" id="hdnIdContextoContato" | ||
433 | - value="<?php echo $_POST['hdnIdContextoContato']; ?>" /> | ||
434 | - | ||
435 | - <br/><br/> | ||
436 | - </label> | ||
437 | - | ||
438 | - <?php } else if( $_POST['txtPjVinculada'] != "" ) { ?> | ||
439 | - | ||
440 | - <label id="lblPjVinculada" style="display: none;" class="infraLabelObrigatorio">Razão Social da Pessoa Jurídica vinculada:<br/> | ||
441 | - | ||
442 | - <input type="text" class="infraText" | ||
443 | - value="<?=PaginaSEIExterna::tratarHTML($_POST['txtPjVinculada']) ?>" | ||
444 | - tabindex="<?=PaginaSEIExterna::getInstance()->getProxTabDados()?>" | ||
445 | - onkeypress="return infraMascaraTexto(this,event,250);" maxlength="250" | ||
446 | - name="txtPjVinculada" id="txtPjVinculada" | ||
447 | - autocomplete="off" style="width: 580px;" /> | ||
448 | - | ||
449 | - <input type="hidden" name="hdnIdContextoContato" id="hdnIdContextoContato" | ||
450 | - value="<?=$_POST['hdnIdContextoContato'] ?>" /> | ||
451 | - | ||
452 | - <br/><br/> | ||
453 | - </label> | ||
454 | - | ||
455 | - <?php } ?> | ||
456 | - | ||
457 | - <label id="lblCPF" style="display: none;" class="infraLabelObrigatorio">CPF:<br/> | ||
458 | - <input type="text" class="infraText" name="txtCPF" id="txtCPF" | ||
459 | - value="<?=PaginaSEIExterna::tratarHTML($_POST['txtCPF']) ?>" | ||
460 | - readonly="readonly" | ||
461 | - onkeypress="return infraMascaraCpf(this, event)" | ||
462 | - style="width: 280px;" /> | ||
463 | - <br/><br/> | ||
464 | - </label> | ||
465 | - | ||
466 | - <label id="lblCNPJ" style="display: none;" class="infraLabelObrigatorio">CNPJ:<br/> | ||
467 | - <input type="text" class="infraText" name="txtCNPJ" id="txtCNPJ" | ||
468 | - value="<?=PaginaSEIExterna::tratarHTML($_POST['txtCNPJ']) ?>" | ||
469 | - readonly="readonly" onkeypress="return infraMascaraCnpj(this, event)" | ||
470 | - style="width: 280px;" /> | ||
471 | - <br/><br/> | ||
472 | - </label> | ||
473 | - | ||
474 | - <div id="div1" style="float:left; width: auto; display: none;"> | ||
475 | - | ||
476 | - <div id="div1_2" style="float:left; width: auto;"> | ||
477 | - <label class="infraLabelObrigatorio">RG:</label><br/> | ||
478 | - <input type="text" class="infraText" | ||
479 | - value="<?=PaginaSEIExterna::tratarHTML($_POST['rg']) ?>" | ||
480 | - tabindex="<?=PaginaSEIExterna::getInstance()->getProxTabDados()?>" | ||
481 | - onkeypress="return infraMascaraNumero(this,event, 15);" | ||
482 | - name="rg" id="rg" /> | ||
483 | - </div> | ||
484 | - | ||
485 | - <div id="div1_3" style="float:left; margin-left:20px; width: auto;"> | ||
486 | - <label class="infraLabelObrigatorio">Órgão Expedidor do RG:</label><br/> | ||
487 | - <input type="text" class="infraText" name="orgaoExpedidor" | ||
488 | - tabindex="<?=PaginaSEIExterna::getInstance()->getProxTabDados()?>" | ||
489 | - value="<?=PaginaSEIExterna::tratarHTML($_POST['orgaoExpedidor']) ?>" | ||
490 | - onkeypress="return infraMascaraTexto(this,event, 50);" | ||
491 | - id="orgaoExpedidor" /> | ||
492 | - </div> | ||
493 | - | ||
494 | - <div id="div1_1" style="float:left; margin-left:20px; width: auto;"> | ||
495 | - <label class="infraLabel">Número da OAB:</label><br/> | ||
496 | - <input type="text" class="infraText" | ||
497 | - tabindex="<?=PaginaSEIExterna::getInstance()->getProxTabDados()?>" | ||
498 | - value="<?=PaginaSEIExterna::tratarHTML($_POST['numeroOab']) ?>" | ||
499 | - onkeypress="return infraMascaraTexto(this,event,10);" maxlength="10" | ||
500 | - name="numeroOab" id="numeroOab" /> | ||
501 | - </div> | ||
502 | - | ||
503 | - </div> | 377 | + <label for="rdPF2" id="lblrdPF2" class="infraLabelRadio" style="display: none;">Com vínculo com Pessoa Jurídica<br/></label> |
378 | + | ||
379 | + <?php } ?> | ||
380 | + | ||
381 | + <?php if( isset( $_GET['cnpj'] )) { ?> | ||
382 | + <input type="radio" name="tipoPessoa" value="pj" id="rdPJ" | ||
383 | + tabindex="<?=PaginaSEIExterna::getInstance()->getProxTabDados()?>" | ||
384 | + onclick="selecionarPJ()" /> | ||
385 | + <label for="rdPJ" class="infraLabelRadio">Pessoa Jurídica</label> | ||
386 | + <?php } ?> | ||
387 | + | ||
388 | + </fieldset> | ||
389 | + | ||
390 | + <fieldset id="field2" class="infraFieldset sizeFieldset"> | ||
391 | + | ||
392 | + <legend class="infraLegend"> Formulário de Cadastro </legend> | ||
393 | + | ||
394 | + <br/> | ||
395 | + <label class="infraLabelObrigatorio">Tipo de Interessado:</label><br/> | ||
396 | + <select class="infraSelect" width="380" id="tipoInteressado" | ||
397 | + tabindex="<?=PaginaSEIExterna::getInstance()->getProxTabDados()?>" | ||
398 | + name="tipoInteressado" | ||
399 | + onchange="selecionarTipoInteressado()" style="width:380px;" > | ||
400 | + <?=$strItensSelTipoInteressado?> | ||
401 | + </select> <br/> | ||
402 | + | ||
403 | + <label id="lblNome" class="infraLabelObrigatorio" style="display:none;">Nome Completo:<br/> | ||
404 | + <input type="text" id="txtNome" name="txtNome" | ||
405 | + class="infraText" style="width: 580px;" | ||
406 | + value="<?=PaginaSEIExterna::tratarHTML($_POST['txtNome']) ?>" | ||
407 | + onkeypress="return infraMascaraTexto(this,event,250);" maxlength="250" | ||
408 | + tabindex="<?=PaginaSEIExterna::getInstance()->getProxTabDados()?>" /> | ||
409 | + <br/><br/> | ||
410 | + </label> | ||
411 | + | ||
412 | + <label id="lblRazaoSocial" class="infraLabelObrigatorio" style="display:none;">Razão Social:<br/> | ||
413 | + <input type="text" id="txtRazaoSocial" name="txtRazaoSocial" | ||
414 | + class="infraText" style="width: 580px;" | ||
415 | + value="<?=PaginaSEIExterna::tratarHTML($_POST['txtRazaoSocial']) ?>" | ||
416 | + onkeypress="return infraMascaraTexto(this,event,250);" maxlength="250" | ||
417 | + tabindex="<?=PaginaSEIExterna::getInstance()->getProxTabDados()?>" /> | ||
418 | + <br/><br/> | ||
419 | + </label> | ||
420 | + | ||
421 | + | ||
422 | + <?php if( $_POST['hdnIdContextoContato'] == '') {?> | ||
423 | + | ||
424 | + <label id="lblPjVinculada" style="display: none;" class="infraLabelObrigatorio">Razão Social da Pessoa Jurídica vinculada:<br/> | ||
425 | + | ||
426 | + <input type="text" class="infraText" | ||
427 | + tabindex="<?=PaginaSEIExterna::getInstance()->getProxTabDados()?>" | ||
428 | + onkeypress="return infraMascaraTexto(this,event,250);" maxlength="250" | ||
429 | + name="txtPjVinculada" id="txtPjVinculada" | ||
430 | + autocomplete="off" style="width: 580px; display: none;" /> | ||
431 | + | ||
432 | + <input type="hidden" name="hdnIdContextoContato" id="hdnIdContextoContato" | ||
433 | + value="<?php echo $_POST['hdnIdContextoContato']; ?>" /> | ||
434 | + | ||
435 | + <br/><br/> | ||
436 | + </label> | ||
437 | + | ||
438 | + <?php } else if( $_POST['txtPjVinculada'] != "" ) { ?> | ||
439 | + | ||
440 | + <label id="lblPjVinculada" style="display: none;" class="infraLabelObrigatorio">Razão Social da Pessoa Jurídica vinculada:<br/> | ||
441 | + | ||
442 | + <input type="text" class="infraText" | ||
443 | + value="<?=PaginaSEIExterna::tratarHTML($_POST['txtPjVinculada']) ?>" | ||
444 | + tabindex="<?=PaginaSEIExterna::getInstance()->getProxTabDados()?>" | ||
445 | + onkeypress="return infraMascaraTexto(this,event,250);" maxlength="250" | ||
446 | + name="txtPjVinculada" id="txtPjVinculada" | ||
447 | + autocomplete="off" style="width: 580px;" /> | ||
448 | + | ||
449 | + <input type="hidden" name="hdnIdContextoContato" id="hdnIdContextoContato" | ||
450 | + value="<?=$_POST['hdnIdContextoContato'] ?>" /> | ||
451 | + | ||
452 | + <br/><br/> | ||
453 | + </label> | ||
454 | + | ||
455 | + <?php } ?> | ||
456 | + | ||
457 | + <label id="lblCPF" style="display: none;" class="infraLabelObrigatorio">CPF:<br/> | ||
458 | + <input type="text" class="infraText" name="txtCPF" id="txtCPF" | ||
459 | + value="<?=PaginaSEIExterna::tratarHTML($_POST['txtCPF']) ?>" | ||
460 | + readonly="readonly" | ||
461 | + onkeypress="return infraMascaraCpf(this, event)" | ||
462 | + style="width: 280px;" /> | ||
463 | + <br/><br/> | ||
464 | + </label> | ||
465 | + | ||
466 | + <label id="lblCNPJ" style="display: none;" class="infraLabelObrigatorio">CNPJ:<br/> | ||
467 | + <input type="text" class="infraText" name="txtCNPJ" id="txtCNPJ" | ||
468 | + value="<?=PaginaSEIExterna::tratarHTML($_POST['txtCNPJ']) ?>" | ||
469 | + readonly="readonly" onkeypress="return infraMascaraCnpj(this, event)" | ||
470 | + style="width: 280px;" /> | ||
471 | + <br/><br/> | ||
472 | + </label> | ||
473 | + | ||
474 | + <div id="div1" style="float:left; width: auto; display: none;"> | ||
475 | + | ||
476 | + <div id="div1_2" style="float:left; width: auto;"> | ||
477 | + <label class="infraLabelObrigatorio">RG:</label><br/> | ||
478 | + <input type="text" class="infraText" | ||
479 | + value="<?=PaginaSEIExterna::tratarHTML($_POST['rg']) ?>" | ||
480 | + tabindex="<?=PaginaSEIExterna::getInstance()->getProxTabDados()?>" | ||
481 | + onkeypress="return infraMascaraNumero(this,event, 15);" | ||
482 | + name="rg" id="rg" /> | ||
483 | + </div> | ||
484 | + | ||
485 | + <div id="div1_3" style="float:left; margin-left:20px; width: auto;"> | ||
486 | + <label class="infraLabelObrigatorio">Órgão Expedidor do RG:</label><br/> | ||
487 | + <input type="text" class="infraText" name="orgaoExpedidor" | ||
488 | + tabindex="<?=PaginaSEIExterna::getInstance()->getProxTabDados()?>" | ||
489 | + value="<?=PaginaSEIExterna::tratarHTML($_POST['orgaoExpedidor']) ?>" | ||
490 | + onkeypress="return infraMascaraTexto(this,event, 50);" | ||
491 | + id="orgaoExpedidor" /> | ||
492 | + </div> | ||
493 | + | ||
494 | + <div id="div1_1" style="float:left; margin-left:20px; width: auto;"> | ||
495 | + <label class="infraLabel">Número da OAB:</label><br/> | ||
496 | + <input type="text" class="infraText" | ||
497 | + tabindex="<?=PaginaSEIExterna::getInstance()->getProxTabDados()?>" | ||
498 | + value="<?=PaginaSEIExterna::tratarHTML($_POST['numeroOab']) ?>" | ||
499 | + onkeypress="return infraMascaraTexto(this,event,10);" maxlength="10" | ||
500 | + name="numeroOab" id="numeroOab" /> | ||
501 | + </div> | ||
502 | + | ||
503 | + </div> | ||
504 | 504 | ||
505 | <div id="divPessoaFisicaPublico1" class="infraAreaDados"> | 505 | <div id="divPessoaFisicaPublico1" class="infraAreaDados"> |
506 | <div style="clear: both;"></br></div> | 506 | <div style="clear: both;"></br></div> |
@@ -543,119 +543,119 @@ $strLinkEdicaHash = PaginaSEIExterna::getInstance()->formatarXHTML( | @@ -543,119 +543,119 @@ $strLinkEdicaHash = PaginaSEIExterna::getInstance()->formatarXHTML( | ||
543 | </div> | 543 | </div> |
544 | 544 | ||
545 | </div> | 545 | </div> |
546 | - | 546 | + |
547 | <div style="clear: both;"></br></div> | 547 | <div style="clear: both;"></br></div> |
548 | </div> | 548 | </div> |
549 | 549 | ||
550 | - <label class="infraLabelObrigatorio">Telefone:</label><br/> | ||
551 | - <input type="text" class="infraText" name="telefone" | ||
552 | - tabindex="<?=PaginaSEIExterna::getInstance()->getProxTabDados()?>" | ||
553 | - value="<?=PaginaSEIExterna::tratarHTML($_POST['telefone']) ?>" | ||
554 | - onkeydown="return infraMascaraTelefone(this,event);" maxlength="25" | ||
555 | - id="telefone" /><br/> | ||
556 | - | ||
557 | - <div style="clear: both;"></div> | ||
558 | - | ||
559 | - <div class="div2" style="float:left; width: auto;"> | ||
560 | - | ||
561 | - <br/> | ||
562 | - <div id="div2_1" style="float:left; width: 280px;"> | ||
563 | - <label class="infraLabel">E-mail:</label><br/> | ||
564 | - <input type="text" class="infraText" | ||
565 | - tabindex="<?=PaginaSEIExterna::getInstance()->getProxTabDados()?>" | ||
566 | - value="<?=PaginaSEIExterna::tratarHTML($_POST['email']) ?>" | ||
567 | - onkeypress="return infraMascaraTexto(this,event,50);" maxlength="50" | ||
568 | - name="email" id="email" style="width: 280px;" /> | ||
569 | - </div> | ||
570 | - | ||
571 | - <div id="div2_2" style="float:left; margin-left:20px; width: 280px;"> | ||
572 | - <label class="infraLabel">Sítio na Internet:</label><br/> | ||
573 | - <input type="text" class="infraText" style="width: 280px;" | ||
574 | - tabindex="<?=PaginaSEIExterna::getInstance()->getProxTabDados()?>" | ||
575 | - value="<?=PaginaSEIExterna::tratarHTML($_POST['sitioInternet']) ?>" | ||
576 | - onkeypress="return infraMascaraTexto(this,event,50);" maxlength="50" | ||
577 | - name="sitioInternet" id="sitioInternet" /> | ||
578 | - </div> | ||
579 | - | ||
580 | - </div> | ||
581 | - | ||
582 | - <div style="clear: both;"></div> | ||
583 | - | ||
584 | - <div class="div3" style="float:left; width: auto;"> | ||
585 | - | ||
586 | - <br/> | ||
587 | - | ||
588 | - <div id="div3_1" style="float:left; width: 280px;"> | ||
589 | - <label class="infraLabelObrigatorio">Endereço:</label><br/> | ||
590 | - <input type="text" class="infraText" style="width: 280px;" | ||
591 | - tabindex="<?=PaginaSEIExterna::getInstance()->getProxTabDados()?>" | ||
592 | - value="<?=PaginaSEIExterna::tratarHTML($_POST['endereco']) ?>" | ||
593 | - name="endereco" id="endereco" /> | ||
594 | - </div> | ||
595 | - | ||
596 | - <div id="div3_2" style="float:left; margin-left:20px; width: 280px;"> | ||
597 | - <label class="infraLabelObrigatorio">Bairro:</label><br/> | ||
598 | - <input type="text" class="infraText" style="width: 280px;" | ||
599 | - tabindex="<?=PaginaSEIExterna::getInstance()->getProxTabDados()?>" | ||
600 | - value="<?=PaginaSEIExterna::tratarHTML($_POST['bairro']) ?>" | ||
601 | - name="bairro" id="bairro" /> | ||
602 | - </div> | ||
603 | - | ||
604 | - </div> | ||
605 | - | ||
606 | - <div style="clear: both;"></div> | ||
607 | - | ||
608 | - <div class="div4" style="float:left; width: auto;"> | ||
609 | - | ||
610 | - <br/> | ||
611 | - | ||
612 | - <div id="div4_1" style="float:left; width: auto; display: none;"> | ||
613 | - <label class="infraLabelObrigatorio">País:</label><br/> | ||
614 | - <input type="text" class="infraText" | ||
615 | - onkeyup="paisEstadoCidade(this);" value="Brasil" | ||
616 | - onkeypress="return infraMascaraTexto(this,event,50);" | ||
617 | - maxlength="50" name="pais" id="pais" /> | ||
618 | - </div> | ||
619 | - | ||
620 | - <div id="div4_2" style="float:left; width: auto;"> | ||
621 | - <label class="infraLabelObrigatorio">Estado:</label><br/> | ||
622 | - | ||
623 | - <select class="infraSelect" tabindex="<?=PaginaSEIExterna::getInstance()->getProxTabDados()?>" | ||
624 | - name="selEstado" id="selEstado"> | ||
625 | - <?=$strItensSelSiglaEstado?> | ||
626 | - </select> | ||
627 | - | ||
628 | - </div> | ||
629 | - | ||
630 | - <div id="div4_3" style="float:left; margin-left:20px; width: auto;"> | ||
631 | - <label class="infraLabelObrigatorio">Cidade:</label><br/> | ||
632 | - | ||
633 | - <select class="infraSelect" tabindex="<?=PaginaSEIExterna::getInstance()->getProxTabDados()?>" | ||
634 | - name="selCidade" id="selCidade"> | ||
635 | - <?= $strItensSelCidade ?> | ||
636 | - </select> | ||
637 | - </div> | ||
638 | - | ||
639 | - <div id="div4_4" style="float:left; margin-left:20px; width: auto;"> | ||
640 | - <label class="infraLabelObrigatorio">CEP:</label><br/> | ||
641 | - <input type="text" class="infraText" | ||
642 | - onkeypress="return infraMascaraCEP(this,event);" | ||
643 | - maxlength="15" | ||
644 | - tabindex="<?=PaginaSEIExterna::getInstance()->getProxTabDados()?>" | ||
645 | - value="<?=PaginaSEIExterna::tratarHTML($_POST['cep']) ?>" | ||
646 | - name="cep" id="cep" /> | ||
647 | - </div> | ||
648 | - | ||
649 | - </div> | ||
650 | - | ||
651 | - <div style="clear: both;"></div> | ||
652 | - | ||
653 | - </fieldset> | ||
654 | - | ||
655 | - <input type="hidden" name="hdnCadastrar" value="" /> | ||
656 | - <input type="hidden" name="hdnIdEdicao" id="hdnIdEdicao" | ||
657 | - value="<?php echo $_POST['hdnIdEdicao']; ?>" /> | ||
658 | - </form> | 550 | + <label class="infraLabelObrigatorio">Telefone:</label><br/> |
551 | + <input type="text" class="infraText" name="telefone" | ||
552 | + tabindex="<?=PaginaSEIExterna::getInstance()->getProxTabDados()?>" | ||
553 | + value="<?=PaginaSEIExterna::tratarHTML($_POST['telefone']) ?>" | ||
554 | + onkeydown="return infraMascaraTelefone(this,event);" maxlength="25" | ||
555 | + id="telefone" /><br/> | ||
556 | + | ||
557 | + <div style="clear: both;"></div> | ||
558 | + | ||
559 | + <div class="div2" style="float:left; width: auto;"> | ||
560 | + | ||
561 | + <br/> | ||
562 | + <div id="div2_1" style="float:left; width: 280px;"> | ||
563 | + <label class="infraLabel">E-mail:</label><br/> | ||
564 | + <input type="text" class="infraText" | ||
565 | + tabindex="<?=PaginaSEIExterna::getInstance()->getProxTabDados()?>" | ||
566 | + value="<?=PaginaSEIExterna::tratarHTML($_POST['email']) ?>" | ||
567 | + onkeypress="return infraMascaraTexto(this,event,50);" maxlength="50" | ||
568 | + name="email" id="email" style="width: 280px;" /> | ||
569 | + </div> | ||
570 | + | ||
571 | + <div id="div2_2" style="float:left; margin-left:20px; width: 280px;"> | ||
572 | + <label class="infraLabel">Sítio na Internet:</label><br/> | ||
573 | + <input type="text" class="infraText" style="width: 280px;" | ||
574 | + tabindex="<?=PaginaSEIExterna::getInstance()->getProxTabDados()?>" | ||
575 | + value="<?=PaginaSEIExterna::tratarHTML($_POST['sitioInternet']) ?>" | ||
576 | + onkeypress="return infraMascaraTexto(this,event,50);" maxlength="50" | ||
577 | + name="sitioInternet" id="sitioInternet" /> | ||
578 | + </div> | ||
579 | + | ||
580 | + </div> | ||
581 | + | ||
582 | + <div style="clear: both;"></div> | ||
583 | + | ||
584 | + <div class="div3" style="float:left; width: auto;"> | ||
585 | + | ||
586 | + <br/> | ||
587 | + | ||
588 | + <div id="div3_1" style="float:left; width: 280px;"> | ||
589 | + <label class="infraLabelObrigatorio">Endereço:</label><br/> | ||
590 | + <input type="text" class="infraText" style="width: 280px;" | ||
591 | + tabindex="<?=PaginaSEIExterna::getInstance()->getProxTabDados()?>" | ||
592 | + value="<?=PaginaSEIExterna::tratarHTML($_POST['endereco']) ?>" | ||
593 | + name="endereco" id="endereco" /> | ||
594 | + </div> | ||
595 | + | ||
596 | + <div id="div3_2" style="float:left; margin-left:20px; width: 280px;"> | ||
597 | + <label class="infraLabelObrigatorio">Bairro:</label><br/> | ||
598 | + <input type="text" class="infraText" style="width: 280px;" | ||
599 | + tabindex="<?=PaginaSEIExterna::getInstance()->getProxTabDados()?>" | ||
600 | + value="<?=PaginaSEIExterna::tratarHTML($_POST['bairro']) ?>" | ||
601 | + name="bairro" id="bairro" /> | ||
602 | + </div> | ||
603 | + | ||
604 | + </div> | ||
605 | + | ||
606 | + <div style="clear: both;"></div> | ||
607 | + | ||
608 | + <div class="div4" style="float:left; width: auto;"> | ||
609 | + | ||
610 | + <br/> | ||
611 | + | ||
612 | + <div id="div4_1" style="float:left; width: auto; display: none;"> | ||
613 | + <label class="infraLabelObrigatorio">País:</label><br/> | ||
614 | + <input type="text" class="infraText" | ||
615 | + onkeyup="paisEstadoCidade(this);" value="Brasil" | ||
616 | + onkeypress="return infraMascaraTexto(this,event,50);" | ||
617 | + maxlength="50" name="pais" id="pais" /> | ||
618 | + </div> | ||
619 | + | ||
620 | + <div id="div4_2" style="float:left; width: auto;"> | ||
621 | + <label class="infraLabelObrigatorio">Estado:</label><br/> | ||
622 | + | ||
623 | + <select class="infraSelect" tabindex="<?=PaginaSEIExterna::getInstance()->getProxTabDados()?>" | ||
624 | + name="selEstado" id="selEstado"> | ||
625 | + <?=$strItensSelSiglaEstado?> | ||
626 | + </select> | ||
627 | + | ||
628 | + </div> | ||
629 | + | ||
630 | + <div id="div4_3" style="float:left; margin-left:20px; width: auto;"> | ||
631 | + <label class="infraLabelObrigatorio">Cidade:</label><br/> | ||
632 | + | ||
633 | + <select class="infraSelect" tabindex="<?=PaginaSEIExterna::getInstance()->getProxTabDados()?>" | ||
634 | + name="selCidade" id="selCidade"> | ||
635 | + <?= $strItensSelCidade ?> | ||
636 | + </select> | ||
637 | + </div> | ||
638 | + | ||
639 | + <div id="div4_4" style="float:left; margin-left:20px; width: auto;"> | ||
640 | + <label class="infraLabelObrigatorio">CEP:</label><br/> | ||
641 | + <input type="text" class="infraText" | ||
642 | + onkeypress="return infraMascaraCEP(this,event);" | ||
643 | + maxlength="15" | ||
644 | + tabindex="<?=PaginaSEIExterna::getInstance()->getProxTabDados()?>" | ||
645 | + value="<?=PaginaSEIExterna::tratarHTML($_POST['cep']) ?>" | ||
646 | + name="cep" id="cep" /> | ||
647 | + </div> | ||
648 | + | ||
649 | + </div> | ||
650 | + | ||
651 | + <div style="clear: both;"></div> | ||
652 | + | ||
653 | + </fieldset> | ||
654 | + | ||
655 | + <input type="hidden" name="hdnCadastrar" value="" /> | ||
656 | + <input type="hidden" name="hdnIdEdicao" id="hdnIdEdicao" | ||
657 | + value="<?php echo $_POST['hdnIdEdicao']; ?>" /> | ||
658 | + </form> | ||
659 | 659 | ||
660 | <?php } ?> | 660 | <?php } ?> |
661 | 661 | ||
@@ -668,4 +668,4 @@ PaginaSEIExterna::getInstance()->fecharHtml(); | @@ -668,4 +668,4 @@ PaginaSEIExterna::getInstance()->fecharHtml(); | ||
668 | 668 | ||
669 | //incluindo arquivo com funções JavaScript da página | 669 | //incluindo arquivo com funções JavaScript da página |
670 | require_once 'md_pet_interessado_cadastro_js.php'; | 670 | require_once 'md_pet_interessado_cadastro_js.php'; |
671 | -?> | ||
672 | \ No newline at end of file | 671 | \ No newline at end of file |
672 | +?> |