| Server IP : 20.75.53.88 / Your IP : 216.73.217.72 [ Web Server : Apache System : Linux VMRALP-3 4.4.0-256-generic #290~14.04.1-Ubuntu SMP Thu Jun 20 09:24:50 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 5.5.9-1ubuntu4.29+esm15 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, Domains : 3 Domains MySQL : ON | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/ouvidoria/cmbeberibe/cadastro/ |
Upload File : |
<?php
ini_set('display_errors', 'off');
?>
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<title>Cadastro usuário</title>
<script language="JavaScript" src="<?php echo URL_BASE_SISTEMA; ?>js/XmlHttpLookup.js"></script>
<script>
function selecionaTipoPessoa(tipo) {
if (tipo == "F") {
document.getElementById('lblNome').innerHTML = "Nome";
document.getElementById('lblCpfcnpj').innerHTML = "CPF";
//document.getElementById('lnEscolaridade').style.display = "none";
//document.getElementById('lnProfissao').style.display = "none";
//document.getElementById('lnFaixaEtaria').style.display = "none";
//document.getElementById('lendereco').style.display = "none";
//document.getElementById('lcomplemento').style.display = "none";
} else {
document.getElementById('lblNome').innerHTML = "Razão Social";
document.getElementById('lblCpfcnpj').innerHTML = "CNPJ";
document.getElementById('lnEscolaridade').style.display = "none";
document.getElementById('lnProfissao').style.display = "none";
}
}
</script>
</head>
<div class="container-fluid">
<div class="col-md-2">
<label for="tipopessoa">*Tipo de Pessoa:</label>
<div>
<fieldset>
<legend>
<input type="radio" name="tipopessoa" id="tipopessoa" value="F" <?php echo ($tipopessoa=="F") ? "checked" : ""; ?> onclick="selecionaTipoPessoa('F');">Fisica
<input type="radio" name="tipopessoa" id="tipopessoa" value="J" <?php echo ($tipopessoa=="J") ? "checked" : ""; ?> onclick="selecionaTipoPessoa('J');">Juridica
</legend>
</fieldset>
</div>
</div>
<div class="col-md-4">
<label for="nome">*<span id="lblNome"><?php echo ($tipopessoa=="J") ? "Razão Social" : "Nome"; ?></span>:</label>
<input class="form-control" autofocus required type="text" name="nome" id="nome" value="<?php echo $nome; ?>" maxlength="100"/></td>
</div>
<div class="col-md-3">
<label for="cpfcnpj"><span id="lblCpfcnpj"><?php echo ($tipopessoa=="J") ? "CNPJ" : "CPF"; ?></span>:</label>
<input class="form-control" required type="text" name="cpfcnpj" id="cpfcnpj" value="<?php echo $cpfcnpj; ?>" onkeyup="soNumero(this);" onblur="document.getElementById('span_usuario').innerHTML = this.value;" maxlength="14"/>
</div>
<div id="lnFaixaEtaria" class="col-md-3">
<label for="idfaixaetaria">Faixa Etária:</label>
<select class="form-control" name="idfaixaetaria" id="idfaixaetaria">
<option value="">----</option>
<?php $rsFxt = execQuery("select * from lda_faixaetaria order by nome"); ?>
<?php while ($rowfxt = mysql_fetch_array($rsFxt)) { ?>
<option value="<?php echo $rowfxt['idfaixaetaria']; ?>" <?php echo $rowfxt['idfaixaetaria']==$idfaixaetaria ? "selected" : ""; ?>><?php echo $rowfxt['nome']; ?></option>
<?php } ?>
</select>
</div>
<div id="lnEscolaridade" class="col-md-4">
<label for="idescolaridade">Escolaridade:</label>
<select class="form-control" name="idescolaridade" id="idescolaridade">
<option value="">----</option>
<?php $rsEsc = execQuery("select * from lda_escolaridade order by nome"); ?>
<?php while ($rowesc = mysql_fetch_array($rsEsc)) { ?>
<option value="<?php echo $rowesc['idescolaridade']; ?>" <?php echo $rowesc['idescolaridade']==$idescolaridade ? "selected" : ""; ?>><?php echo $rowesc['nome']; ?></option>
<?php } ?>
</select>
</div>
<div id="lnProfissao" class="col-md-3">
<label for="profissao">Profissão:</label>
<input class="form-control" required type="text" name="profissao" id="profissao" value="<?php echo $profissao; ?>" maxlength="50"/>
</div>
<div class="col-md-3">
<label for="idtipotelefone">Tipo Tel.:</label>
<select class="form-control" name="idtipotelefone" id="idtipotelefone">
<option value="">----</option>
<?php $rstel = execQuery("select * from lda_tipotelefone order by nome"); ?>
<?php while ($rowtel = mysql_fetch_array($rstel)) { ?>
<option value="<?php echo $rowtel['idtipotelefone']; ?>" <?php echo $rowtel['idtipotelefone']==$idtipotelefone ? "selected" : ""; ?>><?php echo $rowtel['nome']; ?></option>
<?php } ?>
</select>
</div>
<div class="col-md-1">
<label for="dddtelefone">DDD:</label>
<input class="form-control" required type="text" name="dddtelefone" id="dddtelefone" value="<?php echo $dddtelefone; ?>" onkeyup="soNumero(this);" maxlength="2"/>
</div>
<div class="col-md-3">
<label for="telefone">Telefone:</label>
<input class="form-control" required type="text" name="telefone" id="telefone" value="<?php echo $telefone; ?>" onkeyup="soNumero(this);" maxlength="15"/>
</div>
<div class="col-md-5">
<label for="email">*E-mail:</label>
<input class="form-control" type="text" required name="email" id="email" value="<?php echo $email; ?>" maxlength="150"/>
</div>
<div class="col-md-3">
<label for="confirmeemail">*Confirme E-mail:</label>
<input class="form-control" type="text" required name="confirmeemail" id="confirmeemail" value="<?php echo $confirmeemail; ?>" maxlength="150"/>
</div>
</div>
<div id="lendereco" class="container-fluid">
<input type="hidden" required name="idlogradouro" id="idlogradouro" value="<?php echo $idlogradouro; ?>">
<div class="col-md-2">
<label for="cep">CEP:</label>
<input class="form-control" required type="text" name="cep" id="cep" value="<?php echo $cep; ?>" autocomplete="off" onkeyup="busca(this.value,this.value.length==8,'<?php echo URL_BASE_SISTEMA; ?>inc/buscacep')" onclick="busca(this.value,this.value.length==8,'<?php echo URL_BASE_SISTEMA; ?>inc/buscacep')" maxlength="8"/>
</div>
<div class="col-md-4">
<label for="logradouro">Logradouro:</label>
<input class="form-control" required type="text" name="logradouro" id="logradouro" value="<?php echo $logradouro; ?>" maxlength="255"/>
</div>
<div class="col-md-3">
<label for="bairro">Bairro:</label>
<input class="form-control" required type="text" onmouseover="this.title=this.value" name="bairro" id="bairro" value="<?php echo $bairro; ?>" maxlength="100"/>
</div>
<div class="col-md-2">
<label for="cidade">Cidade:</label>
<input class="form-control" required type="text" name="cidade" onmouseover="this.title=this.value" id="cidade" value="<?php echo $cidade; ?>" maxlength="255"/>
</div>
<div class="col-md-1">
<label for="uf">UF</label>
<select class="form-control" name="uf" id="uf">
<option value="">UF</option>
<?php $rsuf = execQuery("select sigla from gen_estados order by sigla"); ?>
<?php while ($rowuf = mysql_fetch_array($rsuf)) { ?>
<option value="<?php echo $rowuf['sigla']; ?>" <?php echo $rowuf['sigla']==$uf ? "selected" : ""; ?>><?php echo $rowuf['sigla']; ?></option>
<?php } ?>
</select>
</div>
</div>
<div id="lcomplemento" class="container-fluid">
<div class="col-md-2">
<label for="numero">Número:</label>
<input class="form-control" required type="text" name="numero" id="numero" value="<?php echo $numero; ?>" maxlength="10"/>
</div>
<div class="col-md-4">
<label for="complemento">Complemento:</label>
<input class="form-control" type="text" name="complemento" id="complemento" value="<?php echo $complemento; ?>" maxlength="50" margin=10px;/>
</div>
<div class="col-md-3">
<label for="senha">*Senha:</label>
<input class="form-control" required type="password" name="senha" id="senha" value="<?php echo $senha; ?>"/>
</div>
<div class="col-md-2">
<label for="confirmasenha">*Confirme sua Senha:</label>
<input class="form-control" required type="password" name="confirmasenha" id="confirmasenha" value="<?php echo $confirmasenha; ?>"/>
</div>
<div class="col-md-1">
<label for="salvar">Salvar</label>
<input type="submit" title="salvar dados usuário" alt="salvar dados do usu�rio" class="form-control btn btn-primary" value="Salvar" name="acao" id="salvar"/>
</div>
</div>
<script>selecionaTipoPessoa('<?php echo $tipopessoa;?>');</script>