File "dispensa.php"
Full path: /home2/camaradearamari/public_html/integra/dispensa.php
File size: 3.26 KiB (3335 bytes)
MIME-type: text/x-php
Charset: utf-8
<?php include ('kernel/conn.php'); ?>
<?php include('integration/theme.php'); ?>
<?php
$sql = "Select * from tr_integra where tipo='dispensa' ORDER BY data_create asc" ;
$dispensa = mysqli_query($connect,$sql); ?>
<?php
$sql = "Select * from padrao_cores" ;
$cor = mysqli_query($connect,$sql); ?>
<!doctype html>
<html lang="pt-br">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>DISPENSA</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-Zenh87qX5JnK2Jl0vWa8Ck2rdkQ2Bzep5IDxbcnCeuOxjzrPF/et3URy9Bv1WTRi" crossorigin="anonymous">
</head>
<body>
<br>
<br>
<div class="row">
<div class="container-md">
<h4> DISPENSAS DE LICITAÇÃO NA ÍNTEGRA</h4>
<br>
<div class="row-xl-8">
<div class="card card-body">
<table id="myTable" class="table table-striped table-bordered" cellspacing="0" width="100%">
<thead>
<tr>
<th class="cabecalho titles" style="width:80px">TIPO</th>
<th class="cabecalho titles" style="width:850px">DESCRIÇÃO</th>
<th class="cabecalho titles" style="width:50px">ANEXO</th>
</tr>
</thead>
<tbody>
<?php while($row_dispensa = mysqli_fetch_assoc($dispensa)){ ?>
<tr>
<td>
<?php
$tipo = $row_dispensa['tipo'];
if($tipo == "dispensa"){
echo "DISPENSA DE LICITAÇÃO";
}?>
</td>
<td><?php echo $row_dispensa['descricao']; ?></td>
<td>
<a href="../documents/integra/<?php echo $row_dispensa["url_file"];?>" target="blank">VER</a>
</td>
</tr>
<?php }?>
</tfoot>
</table>
</tbody>
</table>
</div>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-OERcA2EqjJCMA+/3y+gxIOqMEjwtxJY7qPCqsdltbNJuaOe923+mo//f6V8Qbsw3" crossorigin="anonymous"></script>
</body>
</html>
<style>
<?php while($row_cor = mysqli_fetch_assoc($cor)){ ?>
.cabecalho{
background-color: <?php echo $row_cor['cor_hexa'];?> !important;<?php }?>
}
.titles{
color: #FFFFFF !important;
}
table{
padding: -10 rem !important;
}
.large-table{
width: 100%;
}
.size-global{
width: 100% !important;
}
.size{
bs-gutter-x: 7.5rem !important;
}
</style>
<script>
$(document).ready( function () {
$('#myTable').DataTable();
//Onde o #myTable é o ID da tabela que você quer estilizar
} );
$(document).ready(function () {
$('#datatable').DataTable({
"language": {
"lengthMenu": "Ver _MENU_ por pagina",
"zeroRecords": "Nenhum Dado encontrado, tente novamente",
"info": "Mostrando _PAGE_ de _PAGES_",
"infoEmpty": "Nenhum Registro Retornado",
"infoFiltered": "(filtered from _MAX_ total records)"
}
});
});
</script>