<? global $lang; ?>
<fieldset>
  <?
  if ( is_array( $this -> _articles ) ) 
  {
    ?>
    <table class='table_browse'>
      <thead>
        <tr>
          <td class='header' style='width:15px; text-align:center;'><?=$lang -> getTrans( 'T_LP' );?></td>
          <td class='header'><?=$lang -> getTrans( 'T_TYTUL' );?></td>
          <td class='header' style="text-align: center;"><?=$lang -> getTrans( 'T_DATA_MODYFIKACJI' );?></td>
          <td class='header' style='width:15px;'></td>
        </tr>
      </thead>
      <tbody>
      <?
      foreach ( $this -> _articles as $article )
      {
        ?>
        <tr>
          <td class='row' style='text-align:center;'><?=++$i;?>.</td>
          <td class='row'><?=$article -> get_title();?></td>
          <td class="row" style="text-align: center;"><?=$article -> get_date_modify();?></td>
          <td class='row'>
            <a href="./?page_type=page_articles&rw=edit&id=<?=$article -> get_id();?>">
              <span class='icon edit'></span>
            </a>
          </td>
        </tr>
        <?
      }
      ?>
      </tbody>
    </table>            
    <?
  }
  else
    echo '<div id="alert" class="alert" style="margin: 0px; width: 100%; border: 0px; text-align: center;">' . $lang -> getTrans( 'T_BRAK_PRZYPISANYCH_ARTYKULOW' ) . '</div>';
  ?>
</fieldset>