| Server IP : 20.75.53.88 / Your IP : 216.73.217.138 [ 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/juridico/pacajus/horizonte/modulos/pessoa/ |
Upload File : |
<?php
$id = $_GET['id'];
//$conn = conexao::getInstance();
//ENDERECO
$tipe = $conn->query("select * from tipo_enderecos");
$bair = $conn->query("select * from bairros");
$cida = $conn->query("select * from cidades");
?>
<script src="js/mascara.js" type="text/javascript"></script>
<form id="form2" name="form2" OnSubmit="showCarga()" method="post" action="?page=pessoa/endereco_crud&var=incluir">
<div class="panel panel-primary active" align="center"><span style="font-size:18px; color: #060606">Endereço</span></div>
<div id="action">
<input type="hidden" name="cod_pessoa" value="<?php echo $id ?>"/>
<div class='col-lg-2 col-md-2 col-sm-2 col-xs-6'>
Tipo
<select name="cod_tipo_end" class="form-control select2">
<?php while ($itipe = $tipe->fetch(PDO::FETCH_OBJ)) { ?>
<option value="<?php echo $itipe->codigo ?>"><?php echo $itipe->tipo ?></option>
<?php } ?>
</select>
</div>
<div class='col-lg-2 col-md-3 col-sm-3 col-xs-6'>
Bairro
<select name="cod_bairro" class="form-control select2">
<?php while ($ibair = $bair->fetch(PDO::FETCH_OBJ)) { ?>
<option value="<?php echo $ibair->codigo ?>"><?php echo $ibair->bairro ?></option>
<?php } ?>
</select>
</div>
<div class='col-lg-3 col-md-3 col-sm-3 col-xs-6'>
Cidade
<select name="cod_cidade" class="form-control select2">
<?php while ($icida = $cida->fetch(PDO::FETCH_OBJ)) { ?>
<option value="<?php echo $icida->codigo ?>"><?php echo $icida->cidade ?></option>
<?php } ?>
</select>
</div>
<div class='col-xs-6 col-sm-5 col-md-5 col-lg-5'>
<label for='endereco'>Endereço</label>
<input type='text' class='form-control upper' name='endereco' id='endereco'/></div>
<div class='col-xs-3 col-sm-2 col-md-2 col-lg-2'>
<label for='numero'>Número</label>
<input type='text' class='form-control' name='numero' id='numero'/></div>
<div class='col-xs-3 col-sm-2 col-md-2 col-lg-2'>
<label for='complemento'>Complemento</label>
<input type='text' class='form-control upper' maxlength="15" name='complemento' id='complemento'/></div>
<div class='col-xs-3 col-sm-2 col-md-2 col-lg-2'>
<label for='cep'>CEP</label>
<input type='text' maxlength="9" onkeyup="formataCEP(this,event)" class='form-control' name='cep' id='cep'/></div>
<div class='col-xs-3 col-sm-2 col-md-2 col-lg-2'>
<label for='principal'>Principal</label>
<input type='checkbox' class='checkbox' name='principal' id='principal' value="1"/></div>
<div class='col-xs-3 col-sm-2 col-md-2 col-lg-2'>
<label for='bt_novo'> </label>
<br>
<button type="submit" name="bt_novo" class="btn btn-primary form-control"><i class="glyphicon glyphicon-ok"></i></button>
</div>
</div>
</form>