<?php
if (empty($historicos)) {
    die('0');
}
?>
<div class="CSSTableGenerator" id="Logs">
    <table class="th">
        <tr style="height: 10px;">
            <td>EMP</td>
            <td>FECHA</td>
            <td>TIPO</td>
            <td>ERROR</td>
        </tr>
    </table>
    <table class="dt">
        <?php
        foreach ($historicos as $log) {
            echo '<tr class="sel2" data-local="' . $log["EMP"] . '" data-fecha="' . $log["FECHA"] . '" data-tipo="' . $log["EMP"] . '" data-err="' . $log["ERR"] . '" data-arch="' . $log["ARCHIVO"] . '">' .
            '<td>' . $log["EMP"] . '</td>' .
            '<td>' . $log["FECHA"] . '</td>' .
            '<td>' . $log["TIPO"] . '</td>' .
            '<td>' . $log["ERR"] . '</td>' .
            '</tr>';
        }
        ?>
    </table>
</div>