    <table class="table table-striped table-bordered table-condensed table-hover">
        <thead>
            <tr>
                <td colspan="5">
                    <span class="main-actions pull-right">
                        <a href="<?php echo $this->url( array( 'action' => 'save' ) ); ?>" rel="tooltip" title="<?php echo $this->translate( '#create#' ); ?>" class="btn btn-primary">
                            <span class="fa fa-plus"></span>
                            
                        </a>
                    </span>
                </td>
            </tr>

            <tr>
                <th><?php echo $this->translate( '#label#' ); ?></th>
                <th><?php echo $this->translate( '#types#' ); ?></th>
                <th><?php echo $this->translate( '#pages#' ); ?></th>
                <th><?php echo $this->translate( '#thumbnail#' ); ?></th>
                <th><?php echo $this->translate( '#translations#' ); ?></th>
                <th></th>
            </tr>
        </thead>

        <tbody>
<?php
    if ( count( $this->paginator ) ) {

        $P = Alfred_Hod::table('Page','Content');

        foreach ( $this->paginator as $item ) { ?>
            <tr class="<?php echo $this->cycle( array( 'odd', 'even' ) )->next(); ?>">
                <td><?php echo $item->label; ?></td>
                <td><?php echo $item->type; ?></td>
                <td><?php 
                    if( $prs = $P->rowset( $P->select()->where('banner = ?',$item->id) )){
                        $prsa = array();
                        foreach ($prs as $rr ) {
                            $prsa[] = $rr->title;
                        }
                       echo implode( ', ',$prsa);
                    }

                ?></td>
                <td><?php echo $this->image( $item->getThumbnail(),array( 'preset'=>'small') ); ?></td>

                <td class="translations" alfred:translated="<?php echo $item->translationRate(); ?>">
<?php           foreach ( $item->translations() as $locale => $translation ) {
                    if ( $translation->isTranslated() ) { ?>
                    <span class="tooltip ui-button ui-state-default ui-corner-all" title="<?php echo $translation->baseline; ?>"><?php echo $locale; ?></span>
<?php               }
                } ?>
                </td>

                <td class="actions">
                    <a href="<?php echo $this->url( array( 'action' => 'save', 'id' => $item->id ) ); ?>" class="btn btn-default">
                        <span class="fa fa-wrench"></span>
                        <?php echo $this->translate( '#edit#' ); ?>
                    </a>

                    <a href="<?php echo $this->url( array( 'action' => 'delete', 'id' => $item->id ) ); ?>" class="btn btn-danger">
                        <span class="fa fa-trash-o"></span>
                        <?php echo $this->translate( '#delete#' ); ?>
                    </a>
                </td>
            </tr>
<?php   }
    } else{?>
            <tr><td colspan="5"><?php echo $this->translate( '#this list is empty#' ); ?></td></tr>
    <?php } ?>
        </tbody>

        <tfoot>
            <tr>
                <td colspan="5">
                    <span class="main-actions pull-right">
                        <a href="<?php echo $this->url( array( 'action' => 'save' ) ); ?>" rel="tooltip" title="<?php echo $this->translate( '#create#' ); ?>" class="btn btn-primary">
                            <span class="fa fa-plus"></span>
                            
                        </a>
                    </span>
                    <?php echo $this->paginationControl( $this->paginator ); ?>
                </td>
            </tr>
        </tfoot>
    </table>
