<?php
include_once('../class/class.mysql.php');
include_once('class.usuario.php');
include_once('../include/utilitarios.php');
$mysqlCom = new MysqlConnect();
extract($_POST);
$usuario = new Usuario();
$usuario->SelectUsuario($id); 

while($row = mysqli_fetch_object($usuario->qry)){
?>
<table width="700" border="0">
  <tr class="descricao">
    <th width="184" scope="col">Campos</th>
    <th width="506" scope="col">Dados</th>
  </tr>
  <tr>
    <td class="descricao">Nome Completo</td>
    <td class="dados"><div align="left" style="margin-left:5px"><?php echo $row->nome?></div></td>
  </tr>
  <tr>
    <td class="descricao">Login</td>
    <td class="dados"><div align="left" style="margin-left:5px"><?php echo $row->login?></div></td>
  </tr>
  <tr>
    <td class="descricao">CPF</td>
    <td class="dados"><div align="left" style="margin-left:5px"><?php echo $row->cpf?></div></td>
  </tr>
  <tr>
    <td class="descricao">Identidade RG</td>
    <td class="dados"><div align="left" style="margin-left:5px"><?php echo $row->rg?></div></td>
  </tr>
   <tr>
     <td class="descricao">Endereço</td>
     <td class="dados"><div align="left" style="margin-left:5px"><?php echo $row->endereco?></div></td>
   </tr>
   <tr>
    <td class="descricao">Bairro</td>
    <td class="dados"><div align="left" style="margin-left:5px"><?php echo $row->bairro?></div></td>
  </tr>
  
  <tr>
    <td class="descricao">Cidade</td>
    <td class="dados"><div align="left" style="margin-left:5px"><?php echo $row->cidade?></div></td>
  </tr>  
  
    <tr>
    <td class="descricao">CEP</td>
    <td class="dados"><div align="left" style="margin-left:5px"><?php echo $row->cep?></div></td>
  </tr>
  
   <tr>
    <td class="descricao">E-Mail</td>
    <td class="dados"><div align="left" style="margin-left:5px"><?php echo $row->email?></div></td>
  </tr>
  
   <tr>
    <td class="descricao">Telefone</td>
    <td class="dados"><div align="left" style="margin-left:5px"><?php echo $row->telefone?></div></td>
  </tr>
  
    <tr>
    <td class="descricao">Celular</td>
    <td class="dados"><div align="left" style="margin-left:5px"><?php echo $row->celular?></div></td>
  </tr>
  
    <tr>
    <td class="descricao">Admissão</td>
    <td class="dados"><div align="left" style="margin-left:5px"><?php echo InverterData($row->admissao)?></div></td>
  </tr>
    <tr>
      <td class="descricao">Senha</td>
      <td class="dados"><div align="left" style="margin-left:5px">**********</div></td>
    </tr>
    <tr>
      <td class="descricao">Função</td>
      <td class="dados"><div align="left" style="margin-left:5px"><?php echo $row->funcao?></div></td>
    </tr>
</table>
<input name="id_iten" id="id_iten" type="hidden" value="<?php echo $row->id_usuario?>">

<?php }?>
      
<!--    /*Script para mudar cor da linha de cada tabela*/-->
<script type="text/javascript" src="js/table.js"></script>
