Skip to content

Instantly share code, notes, and snippets.

@franklinbaldo
Last active June 21, 2021 18:56
Show Gist options
  • Save franklinbaldo/7e55ccf4adc25958305d8c6d6f602875 to your computer and use it in GitHub Desktop.
Save franklinbaldo/7e55ccf4adc25958305d8c6d6f602875 to your computer and use it in GitHub Desktop.
bt table
<!doctype html>
<html lang="pt-BR">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/bootstrap-table.min.css">
<title>Hello, world!</title>
</head>
<body>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
<script src="https://unpkg.com/[email protected]/dist/bootstrap-table.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/tableExport.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/libs/jsPDF/jspdf.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/libs/jsPDF-AutoTable/jspdf.plugin.autotable.js"></script>
<body>
<h1><a href="#">Dados da RFB</a></h1>
<div>
<table data-toggle="table"
data-show-export="true"
data-export-data-type = "all"
data-show-toggle="true"
data-show-columns="true"
data-export-types="['xlsx', 'pdf', 'doc', 'png', 'csv', 'txt']"
data-filter-control="true" border="1" class="dataframe display" id="rfb">
<thead>
<tr style="text-align: right;">
<th>cnpj</th>
<th>00394585000171</th>
</tr>
</thead>
<tbody>
<tr>
<th>matriz_filial</th>
<td>1</td>
</tr>
<tr>
<th>razao_social</th>
<td>ESTADO DE RONDONIA</td>
</tr>
<tr>
<th>nome_fantasia</th>
<td></td>
</tr>
<tr>
<th>situacao</th>
<td>02</td>
</tr>
<tr>
<th>data_situacao</th>
<td>2005-11-03 00:00:00</td>
</tr>
<tr>
<th>motivo_situacao</th>
<td>00</td>
</tr>
<tr>
<th>nm_cidade_exterior</th>
<td></td>
</tr>
<tr>
<th>cod_pais</th>
<td></td>
</tr>
<tr>
<th>nome_pais</th>
<td></td>
</tr>
<tr>
<th>cod_nat_juridica</th>
<td>1236</td>
</tr>
<tr>
<th>data_inicio_ativ</th>
<td>1974-11-29 00:00:00</td>
</tr>
<tr>
<th>cnae_fiscal</th>
<td>8411600</td>
</tr>
<tr>
<th>tipo_logradouro</th>
<td>RUA</td>
</tr>
<tr>
<th>logradouro</th>
<td>DOM PEDRO II</td>
</tr>
<tr>
<th>numero</th>
<td>608</td>
</tr>
<tr>
<th>complemento</th>
<td></td>
</tr>
<tr>
<th>bairro</th>
<td>CENTRO</td>
</tr>
<tr>
<th>cep</th>
<td>76801066</td>
</tr>
<tr>
<th>uf</th>
<td>RO</td>
</tr>
<tr>
<th>cod_municipio</th>
<td>0003</td>
</tr>
<tr>
<th>municipio</th>
<td>PORTO VELHO</td>
</tr>
<tr>
<th>ddd_1</th>
<td>69</td>
</tr>
<tr>
<th>telefone_1</th>
<td>32165273</td>
</tr>
<tr>
<th>ddd_2</th>
<td>69</td>
</tr>
<tr>
<th>telefone_2</th>
<td>32116100</td>
</tr>
<tr>
<th>ddd_fax</th>
<td>69</td>
</tr>
<tr>
<th>num_fax</th>
<td>32116100</td>
</tr>
<tr>
<th>email</th>
<td>[email protected]</td>
</tr>
<tr>
<th>qualif_resp</th>
<td>05</td>
</tr>
<tr>
<th>capital_social</th>
<td>0.00</td>
</tr>
<tr>
<th>porte</th>
<td>05</td>
</tr>
<tr>
<th>opc_simples</th>
<td>0</td>
</tr>
<tr>
<th>data_opc_simples</th>
<td>NaT</td>
</tr>
<tr>
<th>data_exc_simples</th>
<td>NaT</td>
</tr>
<tr>
<th>opc_mei</th>
<td>N</td>
</tr>
<tr>
<th>sit_especial</th>
<td></td>
</tr>
<tr>
<th>data_sit_especial</th>
<td>NaT</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment