| 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/juridico/pacajus/horizonte/modulos/pessoa/ |
Upload File : |
<?php
ini_set('display_errors', 'on');
$id = $_GET['id'];
//$conn = conexao::getInstance();
$tipo = $conn->query("select * from tipo_telefones ORDER by tipo");
$pess = $conn->query("select * from pessoas where codigo='$id'");
$p = $pess->fetch(PDO::FETCH_OBJ);
$tele = $conn->query("select * from v_lista_pessoas_telefone where cod_pessoa='$id'");
$t = $tele->fetch(PDO::FETCH_OBJ);
?>
<script src="js/mascara.js" type="text/javascript"></script>
<form id="form2" name="form2" OnSubmit="showCarga()" method="post" action="?page=pessoa/telefone_crud&var=incluir">
<div class="panel panel-primary active" align="center"><span style="font-size:18px; color: #060606">Telefone | <?php echo $p->nome ?></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-12'>
Tipo
<select name="cod_tipo_tel" class="form-control select2">
<?php while ($itipo = $tipo->fetch(PDO::FETCH_OBJ)) {?>
<option value="<?php echo $itipo->codigo ?>"><?php echo $itipo->tipo ?></option>
<?php } ?>
</select>
</div>
<div class='col-xs-12 col-sm-5 col-md-5 col-lg-5'>
<label for='telefone'>Telefone</label>
<input type='text' class='form-control' maxlength="14" onkeyup="formataTelefone(this,event)" name='telefone' id='telefone'/></div>
<div class='col-xs-2 col-sm-2 col-md-2 col-lg-2'>
<label for='ramal'>Ramal</label>
<input type='text' class='form-control' maxlength="10" name='ramal' id='ramal'"/></div>
<div class='col-xs-10 col-sm-10 col-md-10 col-lg-10'>
<label for='contato'>Contato</label>
<input style="text-transform:uppercase" type='text' class='form-control' maxlength="100" name='contato' id='contato'"/></div>
<div class='col-xs-12 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>