<div id="box1" class="box box-100">
  <?php $this->messenger(); ?>
  <div class="boxin">
    <div class="header">
      <h3>Backups</h3>
      <a class="button" href="<?=$this->linkTo("cms_backup", "add");?>">create new&nbsp;»</a>
    </div>
    <div class="content">
      <form class="plain" method="post" enctype="multipart/form-data">
        <fieldset>
          <table cellspacing="0">
            <thead>
              <tr>
                <td>File name</td>
                <th class="tc">Date</th>
                <td class="tc" width="100">Actions</td>
              </tr>
            </thead>
            <tbody>
              <? if(count($this->items) === 0): ?>
              <tr class="first">
                <td colspan="5">No records found</td>
              </tr>
              <? endif; ?>
              <? foreach($this->items as $item): ?>
              <tr class="first">
                <td><?=$item->name;?></td>
                <td class="tc"><?=date("F d, Y / H:i", $item->time);?></td>
                <td class="tc">
                  <ul class="actions">
                    <li><a class="ico" href="<?=$this->urlTo("uploads/backups/" . $item->name);?>" title="apply"><img src="css/img/led-ico/disk.png" alt="apply" /></a></li>
                    <li><a class="ico confirm" href="<?=$this->linkTo("cms_backup", "delete", array("name" => $item->name));?>" title="delete"><img src="css/img/led-ico/delete.png" alt="delete" /></a></li>
                  </ul>
                </td>
              </tr>
              <? endforeach; ?>
            </tbody>
          </table>
        </fieldset>
      </form>
      <!-- pagination -->
      <?=$this->paginationControl($this->items, null, '_paginator.phtml', array("filters" => $this->filters));?>
    </div>
  </div>
</div>
