<div class="hastable">
    <table class="listing">
        <thead>
        	<tr>
                <td colspan="8">
                    <span class="float-right">
                        <a href="<?php echo $this->url( array( 'action' => 'save' ) ); ?>" class="btn ui-state-default ui-corner-all">
                            <span class="ui-icon ui-icon-plusthick"></span>
                            <?php echo $this->translate( '#create#' ); ?>
                        </a>
                    </span>

                    <?php echo $this->paginationControl( $this->paginator ); ?>
                </td>
            </tr>
            <tr>
                <th><?php echo $this->translate( '#id#' ); ?></th>
                <th><?php echo $this->translate( '#name#' ); ?></th>
               
               <th><?php echo $this->translate( '#status#' ); ?></th>
                
                <th></th>
            </tr>
            <form id="searchForm">
            <tr class="search-row">
            	<td><?= $this->formText('id',$this->search['id'],array('style'=>'width:96%'))?></td>
            	<td><?= $this->formText('name',$this->search['name'],array('style'=>'width:96%'))?></td>
            
            	<td><?= $this->formSelect('status',$this->search['status'],array('style'=>'width:96%'), array( '' => '' ) + Content_Model_Content_Table::$statuses )?></td>
            
            	<td><?= $this->formSubmit('search','#search#')?></td>
            </tr>
            </form>
        </thead>

        <tbody>
<?php   if ( count( $this->paginator ) ) {
            foreach ( $this->paginator as $entry ) {
                echo $this->partial( 'forms-admin/partials/items.phtml', array( 'entry' => $entry ) );
            }
		} else { ?>
    	<tr><td colspan="8"><?php echo $this->translate( '#this list is empty#' ); ?></td></tr>
<?php   } ?>
        </tbody>

        <tfoot>
            <tr>
                <td colspan="8">
                    <span class="float-right">
                        <a href="<?php echo $this->url( array( 'action' => 'save' ) ); ?>" class="btn ui-state-default ui-corner-all">
                            <span class="ui-icon ui-icon-plusthick"></span>
                            <?php echo $this->translate( '#create#' ); ?>
                        </a>
                    </span>

                    <?php echo $this->paginationControl( $this->paginator ); ?>
                </td>
            </tr>
        </tfoot>
    </table>
</div>
<a href="add">
