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

while($row = mysqli_fetch_object($class->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</td>
    <td class="dados"><div align="left" style="margin-left:5px"><?php echo $row->nome?></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">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">Site</td>
    <td class="dados"><div align="left" style="margin-left:5px"><?php echo $row->site?></div></td>
  </tr>
  <tr>
    <td class="descricao">Obs</td>
    <td class="dados"><div align="left" style="margin-left:5px"><?php echo $row->obs?></div></td>
  </tr>
</table>
<input name="id_iten" id="id_iten" type="hidden" value="<?php echo $row->id_local_previa?>">

<?php }?>
<script type="text/javascript" src="js/table.js"></script>
