<table id="table_afiliados" class="table table-bordered table-striped">
    <thead>
        <tr>
            <th></th>
            <th>Sección</th>
            <th>CIIU</th>
            <th>Identificacion</th>
            <th>Nombre Completo</th>
            <th>Tipo Organizacion</th>
            <th>Correo</th>
            <th>Telefono</th>
            <th>Celular</th>
            <th>Dirección</th>
        </tr>
    </thead>
    <tbody>
        <?php if (!empty($afiliados) and count($afiliados)): ?>
            <?php foreach ($afiliados as $afiliado): ?>
                <tr>
                    <td>
                        <input type="checkbox" class="checkTable" name="checkafiliado[]" value="<?php echo $afiliados->afiliadoID ?>">
                    </td>
                    <td class="titulo-flotante" title="<?php echo $afiliado->ciiuSeccionTITULO1 ?>" ><?php echo $afiliado->ciiuSeccionCODIGO1 ?></td>
                    <td class="titulo-flotante" title="<?php echo $afiliado->ciiuActividadTITULO1 ?>" ><?php echo $afiliado->ciiuActividadCODIGO1 ?></td>
                    <td><?php echo $afiliado->personaIDENTIFICACION ?></td>
                    <td><?php echo $afiliado->personaRAZONSOCIAL ?></td>
                    <td><?php echo $afiliado->tipoOrganizacionTITULO ?></td>
                    <td><?php echo $afiliado->personasCorreoPRINCIPAL ?></td>
                    <td><?php echo $afiliado->telefonoFIJO ?></td>
                    <td><?php echo $afiliado->telefonoCELULAR ?></td>
                    <td><?php echo $afiliado->direccionCOMERCIAL ?></td>
                </tr>
            <?php endforeach; ?>
        <?php endif; ?>
    </tbody>
    <tfoot>
    </tfoot>
</table>

<script>
    // $(document).ready(function () {

    //     $('input[type="checkbox"], input[type="radio"]').iCheck({
    //         checkboxClass: 'icheckbox_flat-blue',
    //         radioClass: 'iradio_flat-blue'
    //     });

    //     $('input[type="checkbox"]').on('ifChecked', function (event) {
    //         $(this).toggleClass('selected');
    //     });
    // });


    //$('#table_afiliados').DataTable();


</script>
