<table id="tbl-Anunciosafiliados" class="table table-bordered table-hover table-responsive">
    <thead>
        <tr>
            <th width="1%" ><input type="checkbox" class="checkAnunciosAfiliados" id="chk-seleccionarTodosAnuncios" ></th>
            <th width="30%" >Título</th>
            <th width="60%" >Descripción</th>
            <th width="1%" title="Imagen" class="titulo-flotante" ></th>
            <th width="1%" title="Enlace Asociado" class="titulo-flotante" ><i class="fa fa-link" ></i></th>
            <th width="1%" title="Estado" class="titulo-flotante" ></th>
        </tr>
    </thead>
    <tbody> 
        {% if AnunciosAfiliados %}
            {% for AnuncioAfiliados in AnunciosAfiliados %}
                <tr>
                    <td>
                        <input type="checkbox" class="checkTable checkAnunciosAfiliados" name="check_afiliados_anuncios[]" 
                            value="{{ AnuncioAfiliados.anuncioID }}" data-titulo="{{ AnuncioAfiliados.anuncioTITULO }}" >
                    </td>
                    <td>{{ AnuncioAfiliados.anuncioTITULO  }}</td>
                    <td class="titulo-flotante" title="{{ AnuncioAfiliados.anuncioCONTENIDO|striptags[0:320] }}..." >
                        {{ AnuncioAfiliados.anuncioDESCRIPCION|striptags[0:140] }}...
                    </td>
                    <td>
                        {{ imagenTooltip( "anuncioIMAGEN-" ~ AnuncioAfiliados.anuncioID, AnuncioAfiliados.anuncioIMAGEN) }}
                    </td>
                    <td>{{ enlace( AnuncioAfiliados.anuncioENLACE ) }}</td>
                    <td>{{ labelEstado(AnuncioAfiliados.anuncioESTADO, AnuncioAfiliados.anuncioESTADO) }}</td>
                </tr>
            {% endfor %}
        {% endif %}
    </tbody>
    <tfoot>
    </tfoot>
</table>
<script >
    $(document).ready(function () {
       checkBoxSICAM(".checkAnunciosAfiliados");
       activarSeleccionarTodos("chk-seleccionarTodosAnuncios", "checkAnunciosAfiliados");
    });
    crearTablaScrollVertical("tbl-Anunciosafiliados", "320");
</script>
