<?php

include_once('../class/class.mysql.php');
include_once('class.empresa.php');
include_once('../linga/class.linga.php');
$mysqlCom = new MysqlConnect();
extract($_POST);
$empresa = new Empresa();

$empresa->SelectEmpresa($id_empresa);

while ($row = mysqli_fetch_object($empresa->qry)) {
?>
  <table width="700" border="0">
    <tr class="descricao">
      <th width="184" scope="col"><?php echo CAMPO65 ?></th>
      <th width="506" scope="col"><?php echo CAMPO66 ?></th>
    </tr>
    <tr>
      <td class="descricao">Logomarca</td>
      <td class="dados">
        <div id="pnIMGlogomarca" align="center">
          <?php if (!$empresa->VerificarSeTemLogoGrande()) { ?>
            <img src="img/sem_foto.jpg" /> <br />
            <a id="btnIncluirMarca" href="#">Incluir LogoMarca</a>
          <?php } else {
            $empresa->get_LogoGrande('');
          ?>
            <br />
            <a id="btnAlterarLogoMarca" href="#">Alterar</a> | <a id="btnDeletarLogoMarca" id_empresa="<?php echo $row->id_empresa ?>" href="#">Deletar</a>
          <?php } ?>
        </div>


      </td>
    </tr>
    <tr>
      <td class="descricao"><?php echo CAMPO50 ?></td>
      <td class="dados">
        <div align="left" style="margin-left:5px"><?php echo $row->cnpj ?></div>
      </td>
    </tr>
    <tr>
      <td class="descricao"><?php echo CAMPO51 ?></td>
      <td class="dados">
        <div align="left" style="margin-left:5px"><?php echo $row->inscricao_estadual ?></div>
      </td>
    </tr>
    <tr>
      <td class="descricao"><?php echo CAMPO52 ?></td>
      <td class="dados">
        <div align="left" style="margin-left:5px"><?php echo $row->razao ?></div>
      </td>
    </tr>
    <tr>
      <td class="descricao"><?php echo CAMPO53 ?></td>
      <td class="dados">
        <div align="left" style="margin-left:5px"><?php echo $row->nome_fantazia ?></div>
      </td>
    </tr>
    <tr>
      <td class="descricao"><?php echo CAMPO54 ?></td>
      <td class="dados">
        <div align="left" style="margin-left:5px"><?php echo $row->slogan ?></div>
      </td>
    </tr>
    <tr>
      <td class="descricao"><?php echo CAMPO55 ?></td>
      <td class="dados">
        <div align="left" style="margin-left:5px"><?php echo $row->endereco ?></div>
      </td>
    </tr>

    <tr>
      <td class="descricao"><?php echo CAMPO56 ?></td>
      <td class="dados">
        <div align="left" style="margin-left:5px"><?php echo $row->bairro ?></div>
      </td>
    </tr>

    <tr>
      <td class="descricao"><?php echo CAMPO57 ?></td>
      <td class="dados">
        <div align="left" style="margin-left:5px"><?php echo $row->cidade ?></div>
      </td>
    </tr>

    <tr>
      <td class="descricao"><?php echo CAMPO57 ?></td>
      <td class="dados">
        <div align="left" style="margin-left:5px"><?php echo $row->cep ?></div>
      </td>
    </tr>

    <tr>
      <td class="descricao"><?php echo CAMPO59 ?></td>
      <td class="dados">
        <div align="left" style="margin-left:5px"><?php echo $row->telefone ?></div>
      </td>
    </tr>

    <tr>
      <td class="descricao"><?php echo CAMPO60 ?></td>
      <td class="dados">
        <div align="left" style="margin-left:5px"><?php echo $row->site ?></div>
      </td>
    </tr>

    <tr>
      <td class="descricao"><?php echo CAMPO61 ?></td>
      <td class="dados">
        <div align="left" style="margin-left:5px"><?php echo $row->email ?></div>
      </td>
    </tr>
    <tr>
      <td class="descricao"><?php echo CAMPO62 ?></td>
      <td class="dados">
        <div align="left" style="margin-left:5px"><?php echo $row->banco ?></div>
      </td>
    </tr>
    <tr>
      <td class="descricao"><?php echo CAMPO63 ?></td>
      <td class="dados">
        <div align="left" style="margin-left:5px"><?php echo $row->agencia ?></div>
      </td>
    </tr>
    <tr>
      <td height="21" class="descricao"><?php echo CAMPO64 ?></td>
      <td class="dados">
        <div align="left" style="margin-left:5px"><?php echo $row->conta ?></div>
      </td>
    </tr>


  </table>
  <input name="id_iten" id="id_iten" type="hidden" value="<?php echo $row->id_empresa ?>">
<?php } ?>

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