<?php use_helper('I18N', 'tvtl', 'ModalBox'); ?>
<?php $sf_context->getResponse()->addJavascriptCommand('setCategory('.$cat_id.');'); ?>
<?php include_component('entry', 'listtabs', array('cat_id'=>$cat_id, 'tab'=>1)) ?>

<div class="nowrap document docgroup">
  <h2>
    <?php echo blogStore::getCategoryPath($cat_id) ?>
    &nbsp;<?php echo '('.count($pagers).' thư mục)' ?>
  </h2>
  <div class="content">
    <?php foreach ($pagers as $key=>$pager): ?>
      <hr/>
      <div style="float:right"><?php echo blogStore::getPostLink($key, 'present') ?></div>
      <div style="font-size:larger;font-weight:bold;">
        <?php echo link_to($categoryItems[$key]->name, '/present/list?cat_id='.$key) ?>
        &nbsp;<?php echo '('.$pager->getTotalRecordCount().' bài)' ?>
      </div>
      <?php foreach ($pager->getResult() as $id => $tblcatentry): ?>
        <?php echo $tblcatentry->getObject()->getGlobalThumb($categoryItem->getListType($id)) ?>
      <?php endforeach ?>
    <?php endforeach ?>
  </div>
</div>
