<?php
if (!defined('clavepanel')) :
exit();
endif;
?>
<html>
<head>
<title>LOGOS</title>
<link rel="stylesheet" type="text/css" href="/src/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="/src/css/fontawesome.min.css">
<link rel="stylesheet" type="text/css" href="/src/css/panel.css">
</head>
<body>
<div class="container-fluid mt-5">
<div class="row">
<div class="col">
<div class="row mb-2">
<div class="col-6">
<div style="width: 120px;">
<section>
<div class="slideThree">
<?php if ($panelestado == 0) : ?>
<input type="checkbox" value="" id="slideThree" name="check">
<label for="slideThree"></label>
<?php else : ?>
<input type="checkbox" value="" id="slideThree" name="check" checked>
<label for="slideThree"></label>
<?php endif; ?>
</div>
</section>
</div>
</div>
</div>
<table class="table text-center">
<thead class="thead-dark">
<tr>
<th><span>RUT</span></th>
<th><span>VER</span></th>
<th><span>DESCARGAR</span></th>
<th><span>BORRAR</span></th>
</tr>
</thead>
<tbody id="trlog">
<?php if (count($files) > 0) : ?>
<?php foreach ($files as $file){
?>
<?php $explode=explode("_",$file); ?>
<?php if (count($explode) > 1) : ?>
<tr id="tr<?= $explode[0]; ?>">
<td><?= $explode[0]; ?></td>
<td>
<a class="btn btn-primary" target=”_blank” href="/app/html/<?= $file; ?>">VER</a></td>
<td>
<div class="col-6 text-right">
<a class="btn btn-primary" href="/app/html/<?= $file; ?>" download>DESCARGAR</a>
</div>
</td>
<td>
<div class="col-6 text-right">
<a class="btn btn-primary" href="?del=<?= $file; ?>" >BORRAR</a>
</div>
</td>
</tr>
<?php endif; ?>
<?php } ?>
<?php endif; ?>
</tbody>
</table>
</div>
</div>
</div>
</body>